Hi Mike, I already found the problem, thanks for your help: The problem was that the Linux kernel has a LOT more routing capability then is normally discussed. It allows policy-based routing and lots of other options, along with -- and this is what killed me -- reverse path filtering. Reverse path filtering, when enabled, specifically tells the kernel to drop packets that have a source address that isn't appropriate for the network from which it is arriving. Dropping these packets is a BAD thing when multiple interfaces are used for the connection to the outside world, since this implies asymmetric routing, i.e. packets will often come in via one interface and the reply will be via the other interface. Reverse packet filtering is disabled by the following: for file in /proc/sys/net/ipv4/conf/*/rp_filter do echo "0" > $file done For lots more info (although the docs are still incomplete), see http://www.ds9a.nl/2.4Routing/ Grtz Ray
From: Mike Burger <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: IP aliassing and routing
Date: Mon, 2 Dec 2002 07:37:48 -0500 (EST)
First, remove the gateway statements from the ethx:0 files...the alias
files need very little actual info...the interface name, the ip address,
and whether or not to start the at boot.
On Mon, 2 Dec 2002, Raymond van den Houwen wrote:
> I'm trying to get 2 IP adresses on 2 different NIC's with IP aliassing.
> These NIC's have as default gateway the IP adress '62.150.201.1'.
> The problem is that my routing table contains 3 default gateways & I cannot
> ping ifcfg-eth1. I cannot find a document on the internet in which is
> explained where you must config your default gatway and where not in the
> ifcfg-eth files.
>
> My config files are as follows:
>
> [root@foxserver network-scripts]# cat ifcfg-eth0
> DEVICE='eth0'
> BOOTPROTO='none'
> ONBOOT='yes'
> IPADDR='62.150.201.110'
> GATEWAY='62.150.201.1'
> TYPE='Ethernet'
> USERCTL='no'
> NETMASK='255.255.255.0'
> NETWORK='62.150.201.0'
> BROADCAST='62.150.201.255'
>
> [root@foxserver network-scripts]# cat ifcfg-eth0:0
> DEVICE='eth0:0'
> BOOTPROTO='none'
> ONBOOT='yes'
> IPADDR='62.150.201.140'
> GATEWAY='62.150.201.1'
> TYPE='Ethernet'
> USERCTL='no'
> NETMASK='255.255.255.0'
> NETWORK='62.150.201.0'
> BROADCAST='62.150.201.255'
>
> [root@foxserver network-scripts]# cat ifcfg-eth1
> DEVICE=eth1
> ONBOOT=yes
> BOOTPROTO=none
> IPADDR=62.150.201.111
> NETMASK=255.255.255.0
> GATEWAY=62.150.201.1
>
> [root@foxserver network-scripts]# cat ifcfg-eth1:0
> DEVICE='eth1:0'
> ONBOOT=yes
> BOOTPROTO=none
> IPADDR=62.150.201.112
> NETMASK=255.255.255.0
> BROADCAST= 62.150.201.255
> GATEWAY=62.150.201.1
> TYPE='Ethernet'
>
> De routing tabel:
>
> [root@foxserver network-scripts]# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 62.150.201.0 * 255.255.255.0 U 0 0 0 eth1
> 62.150.201.0 * 255.255.255.0 U 0 0 0 eth1
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default 62.150.201.1 0.0.0.0 UG 0 0 0 eth0
> default 62.150.201.1 0.0.0.0 UG 1 0 0 eth1
> default 62.150.201.1 0.0.0.0 UG 1 0 0 eth0
>
>
> What is going wrong here ? 3 default gateways isn't OK I think. And why
> can't I ping ifcfg-eth1 62.150.201.111 ?
>
> Thanks,
>
> Raymond
>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
>
--
Mike Burger
http://www.bubbanfriends.org
Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org:2000
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list