Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

Re: [rhelv5-list] delete default route and add custom one

Ahmed Kamal

2008-03-01

Replies:

Author LoginPost Reply
oops, the eth1 IP/mask is 172.30.0.3/16.

Also let me mention the needed configuration
- eth0 IP 196.x.x.3
- System default gateway is 196.x.x.1 and is connected to eth0
- eth1 IP 172.30.0.3/16. This interface needs to have a static route for routing 172.30.0.0/16 through 172.30.0.1 (a router) and not "directly"

Any pointers on what "GATEWAY"s need to go into ifcfg-eth0, ifcfg-eth1 and /etc/sysconfig/network ? to get the described effect ?

Regards

On Sat, Mar 1, 2008 at 6:54 PM, Tom Sightler <ttsig@tuxyturvy.com> wrote:
Ahmed Kamal wrote:
> Hi List,
> I'm fighting with a small problem. My eth1 NIC has IP 172.30.0.0/16,
> whenever the interface is started, an automatic route is added
> 172.30.0.0   0.0.0.0   255.255.0.0     U     0      0    0 eth1
> The thing is, this would generally be right for most people, but
> not for me.

Actually, it probably wouldn't be right for anybody.  If you've really
assigned your eth1 NIC the IP address of 172.30.0.0/16 then you're
likely in error.  That would be the network address.  The first usable
address in that network is 172.30.0.1.

> The question is how do I get rid of that automatically added route,
> and add mine! I need to do this the redhat way (i.e not rc.local).
> Any help is highly appreciated :)
> Regards

Assign the interface an actual valid host address, not a network
address.  If you don't understand IP addressing then look at this link:

http://jodies.de/ipcalc?host=172.30.0.0&mask1=16&mask2=

Pay particular attention to the Hostmin and Hostmax lines.  Those are
the valid IP addresses that can be used for an interface.  Notice that
172.30.0.0 is not in the range.

Later,
Tom


_______________________________________________
rhelv5-list mailing list
rhelv5-list@redhat.com
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.