Oh that worked beautifully :)
Thanks a million man. Big thanks as well to everyone who tried to help

On Sat, Mar 1, 2008 at 11:40 PM, Doug Weimer <[EMAIL PROTECTED]> wrote:

> Just to make sure I understand what you want:
>
> 1. eth1 has an IP Address of 172.30.0.3
> 2. All communication to 172.30.0.0/16 goes through the 172.30.0.1 gateway.
>
> If this is correct, I think the setup you want is:
>
> 1. /etc/sysconfig/network-scripts/ifcfg-eth1
> DEVICE=eth1
> BOOTPROTO=static
> IPADDR=172.30.0.3
> NETMASK=255.255.255.255
> ONBOOT=yes
>
> 2. /etc/sysconfig/network-scripts/route-eth1
> ADDRESS0=172.30.0.1
> NETMASK0=255.255.255.255
> ADDRESS1=172.30.0.0
> NETMASK1=255.255.0.0
> GATEWAY1=172.30.0.1
>
> The NETMASK=255.255.255.255 in ifcfg-eth1 will prevent a route from being
> created and the route-eth1 settings establish both the route to 172.30.0.1
> and the route to 172.30.0.0/16 via the 172.30.0.1 gateway.
>
> Thanks,
>
> Doug
>
> On Sat, 01 Mar 2008, Ahmed Kamal wrote:
>
> > 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 <[EMAIL PROTECTED]>
> 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
> > > [email protected]
> > > https://www.redhat.com/mailman/listinfo/rhelv5-list
> > >
>
> > _______________________________________________
> > rhelv5-list mailing list
> > [email protected]
> > https://www.redhat.com/mailman/listinfo/rhelv5-list
>
> _______________________________________________
> rhelv5-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/rhelv5-list
>
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to