Date: Sun, 27 Feb 2000 12:57:56 -0500 From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: rene@xs4all.nl Cc: questions@FreeBSD.ORG, alexlh@funk.org, _@r4k.net Subject: Re: routing blues Message-ID: <20000227125756.C27458@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <18756.000227@xs4all.nl>; from rene@xs4all.nl on Sun, Feb 27, 2000 at 06:09:59PM %2B0100 References: <18756.000227@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 27, 2000 at 06:09:59PM +0100, rene@xs4all.nl wrote: > Hello questions, > > I've tried getting 2 NICs to work today, and sofar have failed to > get the second one to work. I'd like to be able to ping a device > attached to that second interface, ofcourse. > > > {DSL-modem} ----- [ FreeBSD-box.ep0 ] > [ FreeBSD-box.xl0 ] ---- [ HUB ] > | > | > [NT Workstation ] > > I know it's probably just my config, and I guess I don't quite grasp > yet how the kernel decides what NIC gets a certain packet. Can > someone explain? > > Here's the deal: > > [root@messenger:/ date/time: Sun Feb 27/17:50:38] > 1# dmesg | grep -e ep0 > ep0 at 0x300-0x30f irq 10 on isa > ep0: utp[*UTP*] address 00:20:af:92:f1:49 > > [root@messenger:/ date/time: Sun Feb 27/17:50:49] > 2# dmesg | grep -e xl0 > xl0: <3Com 3c905B-TX Fast Etherlink XL> rev 0x30 int a irq 10 on pci0.12.0 > xl0: Ethernet address: 00:10:5a:c0:33:b3 > xl0: autoneg complete, link status good (half-duplex, 100Mbps) > > [root@messenger:/ date/time: Sun Feb 27/17:50:52] > 3# netstat -nr > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > 10/24 link#1 UC 0 0 xl0 > 10.0.0.1 0:10:5a:c0:33:b3 UHLW 0 4 lo0 > 10.0.0.2 0:10:5a:c0:32:13 UHLW 3 177 xl0 1101 > 10.0.0.138 10.0.0.139 UHW3 0 11 ep0 3219 > 10.0.0.139 0:20:af:92:f1:49 UHLS 0 6 xl0 > 10.0.0.255 ff:ff:ff:ff:ff:ff UHLWb 2 59 xl0 > 127.0.0.1 127.0.0.1 UH 0 28 lo0 Please include your ifconfig(8) output next time. That seems to be where the problem lies. It looks like you have the xl0 interface configured as, # ifconfig xl0 inet 10.0.0.2 netmask 0xffffff00 But then you also have ep0 assigned 10.0.0.138. Now, clearly, the xl0 and ep0 interfaces are on different local networks, yet ep0 has an address which lies on xl0's local net. You should not do that. All you need to do is put xl0 and ep0 on different nets. Since you have the whole 10/8 space to play with, you could put 10.0.1.0/24 on one and 10.0.0.0/24 on the other. Or you could cut the one you are using in two and just give both netmasks of 0xffffff80 and not change any addresses. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000227125756.C27458>