- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: probelem adding default gateway
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
06-07-2005 08:10 AM
06-07-2005 08:10 AM
route add default gw (ip address) dev eth0
and when I do a netstat -nar to see the routing tables. I see instead of default and the ip address, it gives 0.0.0.0, the ip address and a genmask of 0.0.0.0.. I even tried adding the gateway through netconf to no avai.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 09:10 AM
06-07-2005 09:10 AM
SolutionIn RedHat, the default gateway is written in /etc/sysconfig/network. After you edit that file, restart network (/etc/init.d/network restart).
If you don't write the default gateway in that file, then after reboot, it wont be configured.
Max.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 10:44 AM
06-07-2005 10:44 AM
Re: probelem adding default gateway
0.0.0.0
using that format.
The Destination is be 0.0.0.0 with a genmask (netmask) of 0.0.0.0 as it has to match *EVERYTHING*.
It's also why the route will always appear at the end of the routing list.
If you have multiple lines with the destination of '0.0.0.0', then you have multiple default routes. Make sure to remove the incorrect ones.
The file 'maxim' mentions is if you use 'netconf' and only have one interface. If you have multiple interfaces, the keyword 'DEFAULT' can appear within the individual interface's configuration file (usually '/etc/sysconfig/network-scripts/ifcfg-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 07:03 PM
06-07-2005 07:03 PM
Re: probelem adding default gateway
see whether this is what you are getting:
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 x.x.x.x 0.0.0.0 UG 0 0 0 eth0
as you see the first entry is destination IP address range match. 0.0.0.0 is a wild card which will match all ip address ranges and x.x.x.x shows the gateway server ip address.
Hope this helps,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2005 10:14 PM
06-07-2005 10:14 PM
Re: probelem adding default gateway
Look for the Flags column. an UG in the row containing 0.0.0.0 0.0.0.0 shows that the IP present in the Gateway column is indeed the default gateway.
You may check this by issuing a traceroute command to an unknown IP, and see what is the first hop in the o/p.
eg, traceroute 1.2.3.4
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2005 06:47 AM
06-08-2005 06:47 AM