- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- adding default gateway on redhat 8
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-10-2003 01:09 AM
тАО04-10-2003 01:09 AM
adding default gateway on redhat 8
Iam trying to add default gateway to my redhat 8 server.
I can do it by adding route add default gw xxx.xx.xx.xx dev ethx
it works fine and iam on network.
But once i reboot the default gateway info vanishes.hence want to know how to set it permanently.
I know in HPUX u can do it by adding to netconf file.Is there anysuch file for redhat 8
Please help, thanxs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2003 01:17 AM
тАО04-10-2003 01:17 AM
Re: adding default gateway on redhat 8
There is even a gui for it! From the statrmenu, choose systemconfiguration -> network
You can also start it by hand: /usr/bin/redhat-config-network
From there you can choose the edit button and there is a filed with DG.
Greetzz
Donald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2003 01:32 AM
тАО04-10-2003 01:32 AM
Re: adding default gateway on redhat 8
You can also do it by hand : your default gateway is in /etc/sysconfig/network file. Check it, or edit it to add : GATEWAY=xxx.xx.xx.xx.
You can also echo GATEWAY=xxx.xx.xx.xx > /etc/sysconfig/network if you do not like vi or other editor !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2003 02:10 AM
тАО04-10-2003 02:10 AM
Re: adding default gateway on redhat 8
So if server ip is 10.9.10.100
and gatway ip is 10.9.10.1
Then if i add
route add default gw 10.9.10.100 dev eth1
then it works and i can connect to network.
so now i tried putting this gateway in via GUI and network file but after reboot i have to again run the route add command to get on network.
In HPUX we can specify in netconf whether it is remote or local route by setting 1 or 0.
How do i do it in redhat?.
I tried adding the gateway info in /etc/default-route but it seems it gets erased after reboot.
Any clue ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2003 06:18 AM
тАО04-10-2003 06:18 AM
Re: adding default gateway on redhat 8
Nevertheless, your configuration still needs to be precised more :
do you use dynamic routing or static ?
If you use dynamic, then it is normal that gateway disapears on reboot as the routed daemon deals it for you. Check that in /etc/gateways your default gw is set (name and ip). Have a man routed for details.
If you use static route, check that in /etc/hosts, your gw is set (name and ip), otherwise this active setiing you are putting isn't recognised on reboot.
Whatever, you can add an external default gw on linux, for sure. This 1 you are talking about has a 'looks like' in dynamic routing by precising in /etc/gatewas 'external' when it is the case, it has no 'looks like' in static routing.
Try this, if it doesn't work, let us know about your netmask, and position of DNS on your network (which should be set properly according tou your question level ! :-))
Yours
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2003 07:14 AM
тАО04-10-2003 07:14 AM
Re: adding default gateway on redhat 8
2 var. You can add "eth1 net 0.0.0.0 gw 10.9.10.100" to the "/etc/sysconfig/static-routes" file.
After configuring you need restart a Linux box.
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2003 09:44 PM
тАО04-10-2003 09:44 PM
Re: adding default gateway on redhat 8
Before doing so, check that your /etc/sysconfig/network contains GATEWAY=10.0.0.100 (your gateway), which should be there accordingly with your route add. It happens that route adds does not set it up permanently in this file in some red hat distro. Just do it by hand.
rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2003 08:58 PM
тАО04-13-2003 08:58 PM
Re: adding default gateway on redhat 8
Thanxs i was able to correctly add static IP to network file and now itis working fine.I think is was mostly due to incorrect info in network file.
Thanxs a lot ,
Rgds,