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

Notices


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

Rep: Reputation: Disabled
interface network gateway


Hi,

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

eth0 139.73.221.123/26
gw 139.73.221.65

eth1 139.73.221.148/27
gw 139.73.221.129

When I try to add using ip route add it does not allow me as the network route 139.73.221.64 & 139.73.221.128 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.
139.73.221.128. 0.0.0.0. 255.255.255.224. U
139.73.221.64. 0.0.0.0. 255.255.255.192. U
 
Old 08-11-2014, 09:00 PM   #2
notKlaatu
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
xor777
LQ Newbie
 
Registered: Aug 2014
Posts: 2

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

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

http://serverfault.com/questions/314...aces-on-rh-5-6
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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