HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Default Gateway precedence
Operating System - Linux
1829158
Members
2324
Online
109986
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
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
03-15-2004 03:57 AM
03-15-2004 03:57 AM
Default Gateway precedence
Just wanted to confirm an impression, based on reading other posts and replies, that a gateway setting in an ifcfg-ethX file will, if present, supercede a gateway setting in sysconfig/network.
So a "default" gateway depends on where you defined it....and if all the ifcfg-ethX scripts have gateways defined, there's no purpose in placing one in sysconfig/network.
thanks...
So a "default" gateway depends on where you defined it....and if all the ifcfg-ethX scripts have gateways defined, there's no purpose in placing one in sysconfig/network.
thanks...
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 05:25 AM
03-15-2004 05:25 AM
Re: Default Gateway precedence
lemme confuse u more
there r four way in linux to change ur network setting(IP address):
1. /etc/sysconfig/network-scripts/ifcfg-eth[n]
2. /etc/sysconfig/networking/devices/ifcfg-eth[n]]
3. /etc/sysconfig/networking/profiles/default/ifcfg-eth0
4. GUI redhat-network (redhat-config-network, redhat-config-network-cmd, redhat-config-network-druid, redhat-config-network-gui, redhat-config-network-tui,redhat-control-network)
and which ifcfg-ethX file r u pointing in ur question
regards
peeyush
http://geocities.com/peeyush_maurya/
there r four way in linux to change ur network setting(IP address):
1. /etc/sysconfig/network-scripts/ifcfg-eth[n]
2. /etc/sysconfig/networking/devices/ifcfg-eth[n]]
3. /etc/sysconfig/networking/profiles/default/ifcfg-eth0
4. GUI redhat-network (redhat-config-network, redhat-config-network-cmd, redhat-config-network-druid, redhat-config-network-gui, redhat-config-network-tui,redhat-control-network)
and which ifcfg-ethX file r u pointing in ur question
regards
peeyush
http://geocities.com/peeyush_maurya/
any suggestion for my site.. http://geocities.com/peeyush_maurya/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 06:09 AM
03-15-2004 06:09 AM
Re: Default Gateway precedence
In addition to the above ways which don't work on most linux boxes there is the correct way. And all the above ways are merely wrappers around this command.
"ifconfig"
Stick a few of those in your start up scripts and not only will you never be confused about which one to use again but you'll know that the way you have learnt will not only work on all Linux boxes but also 99% of unix boxes too.
"ifconfig"
Stick a few of those in your start up scripts and not only will you never be confused about which one to use again but you'll know that the way you have learnt will not only work on all Linux boxes but also 99% of unix boxes too.
Never preceed any demonstration with anything more predictive than "watch this"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 03:00 PM
03-15-2004 03:00 PM
Re: Default Gateway precedence
Hi,
I might not put is quite as harsh as Mark, but the information you've got in before certainly has been Redhat centric. From what I can see, I think /etc/sysconfig/network will be a good more general starting point to look for the network scripts in the various Linux distros.
And yes, familiarity with ifconfig is certainly usefull in general terms (also to check what settings your systems actually does use as opposed to what you think it should use ;-)
Greetings, Martin
I might not put is quite as harsh as Mark, but the information you've got in before certainly has been Redhat centric. From what I can see, I think /etc/sysconfig/network will be a good more general starting point to look for the network scripts in the various Linux distros.
And yes, familiarity with ifconfig is certainly usefull in general terms (also to check what settings your systems actually does use as opposed to what you think it should use ;-)
Greetings, Martin
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