HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Default Gateway
Operating System - Linux
1834488
Members
3554
Online
110067
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2002 07:05 AM
10-04-2002 07:05 AM
Which file in linux (RH 7.2) needs to be edited to configure default gateway ? What is the syntax ?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2002 07:19 AM
10-04-2002 07:19 AM
Solution
here you go...
/etc/sysconfig/network has the default gateway and some other entries... here are the contents of mine:
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=devlx0.triu.com
DOMAINNAME=domain.com
GATEWAY=xxx.xxx.32.1
GATEWAYDEV=eth0
the file that contains config details for the cards are in /etc/sysconfig/network-scripts
example for eth0 is ifcfg-eth0 in that directory... here are my contents for that:
DEVICE=eth0
BROADCAST=xxx.xxx.32.255
IPADDR=xxx.xxx.32.47
NETMASK=255.255.255.0
NETWORK=xxx.xxx.32.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
hope that helps
Ted
/etc/sysconfig/network has the default gateway and some other entries... here are the contents of mine:
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=devlx0.triu.com
DOMAINNAME=domain.com
GATEWAY=xxx.xxx.32.1
GATEWAYDEV=eth0
the file that contains config details for the cards are in /etc/sysconfig/network-scripts
example for eth0 is ifcfg-eth0 in that directory... here are my contents for that:
DEVICE=eth0
BROADCAST=xxx.xxx.32.255
IPADDR=xxx.xxx.32.47
NETMASK=255.255.255.0
NETWORK=xxx.xxx.32.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
hope that helps
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2002 07:27 AM
10-04-2002 07:27 AM
Re: Default Gateway
Hi Ted,
Thanks a lot.
Inder
Thanks a lot.
Inder
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP