Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-11-2014, 05:58 AM   #1
LQ Newbie
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
interface network gateway


I have a RHEL 6.5 host which I need to add gateways for the interface networks



When I try to add using ip route add it does not allow me as the network route & already gets added when firing up the interfaces even tried persistently adding to route-eth? but does not add it to the routing table as it sees that the route is already present

It does allow me to add manually with 'route add -net' but I need this to be persistent and if the network route is already going to sit in the routing table put in there by the interface when they are fired up how to add the gateways

These are the 2 routes created when interface gets fired up, can't specify GATEWAY= in ifcfg-eth? as this will set default gateway for the 1st interface with this set and I net separate gateways for each interface network not default gateway

Destination. Gateway. Genmask. Flags. U U
Old 08-11-2014, 09:00 PM   #2
Senior Member
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733Reputation: 733
Are these interfaces being handled by networkmanager?
Old 08-12-2014, 05:08 PM   #3
LQ Newbie
Registered: Aug 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Old 08-16-2014, 05:04 PM   #4
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 358

Rep: Reputation: 60
Perhaps this link could assist you in solving the problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set ip, netmask,gateway for a network interface ghoshdastidar1980 Linux - Newbie 2 10-03-2012 01:22 AM
setting gateway for network interface (newbie question) Arrowx7 Linux - Networking 1 03-04-2007 10:06 AM
Help me cant assign gateway to interface shueib Linux - Networking 10 01-02-2006 11:34 AM
ip + interface + gateway alaios Debian 3 11-12-2004 04:35 PM
Why does my internet interface keep getting a gateway silence Linux - Networking 2 06-18-2004 11:34 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration