From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Townley Date: Mon, 12 Oct 2009 18:35:25 +0000 Subject: Re: PATCH: Network Device Naming mechanism and policy Message-Id: <7e84ed60910121135j656d1d9s8d84757e7e3d0078@mail.gmail.com> List-Id: References: <20091009140000.GA18765@mock.linuxdev.us.dell.com> <20091009210909.GA9836@auslistsprd01.us.dell.com> <20091009194401.036da080@nehalam> <20091010044056.GA5350@mock.linuxdev.us.dell.com> <20091010052308.GA12458@kroah.com> <7e84ed60910111410g52ffd52bjec62576570d4b460@mail.gmail.com> <20091012030008.GA8436@kroah.com> In-Reply-To: <20091012030008.GA8436@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Greg KH Cc: Matt Domsch , Stephen Hemminger , netdev@vger.kernel.org, linux-hotplug@vger.kernel.org, Narendra_K@dell.com, jordan_hargrave@dell.com On Sun, Oct 11, 2009 at 10:00 PM, Greg KH wrote: > On Sun, Oct 11, 2009 at 04:10:03PM -0500, Rob Townley wrote: >> So when an add-in PCI NIC has a lower MAC than the motherboard NICs, >> the add-in cards will come before the motherboard NICs. =A0 i don't like= it. > > Huh? =A0Have you used the MAC persistant rules? =A0If you add a new card, > what does it pick for it? i have a hp-dl360 (two nics) with a fibre optic add in nic. On a fresh install, the add-in is eth0. i didn't like it, but ran it for years. > >> But please whatever is done, make sure ping and tracert still works when >> telling it to use a ethX source interface: >> >> eth0 =3D 4.3.2.8, the default gateway is thru eth1. >> ping -I eth0 208.67.222.222 =A0 =A0 =A0 =A0 =A0 =A0 =A0FAILS >> ping -I 4.3.2.8 208.67.222.222 =A0 =A0 =A0 =A0 =A0WORKS >> tracert -i eth0 -I 208.67.222.222 =A0 =A0 =A0 =A0FAILS >> tracert -s 4.3.2.8 -I 208.67.222.222 =A0 WORKS >> tracert -i eth0 208.67.222.222 =A0 =A0 =A0 =A0 =A0 FAILS >> tracert -s 4.3.2.8 208.67.222.222 =A0 =A0 =A0WORKS > > Again, is what we currently have broken? =A0I am confused as to what this > is referring to. Yes, ping and traceroute are broken at least on Fedora, CentOS, and busybox. On a multinic, multigatewayed machine, passing ethX instead of the IP address will give the false result: "Destination Host Unreachable" when the machine's default gateway is reached thru the other nic. In the following example, the default gateway is thru eth1, not eth0. Pay attention to the text between the '*****'. ping -c 1 -B -I eth0 208.67.222.222 PING 208.67.222.222 (208.67.222.222) from ***** 4.3.2.8 eth0*****: 56(84) bytes of data. >From 4.3.2.8 icmp_seq=3D1 Destination Host Unreachable #ping -c 1 -B -I 4.3.2.8 208.67.222.222 PING 208.67.222.222 (208.67.222.222) from ***** 4.3.2.8 *****: 56(84) bytes of data. 64 bytes from 208.67.222.222: icmp_seq=3D1 ttlU timeV2 ms > > greg k-h >