From owner-freebsd-net@FreeBSD.ORG Fri Aug 19 20:43:21 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5E4C16A41F for ; Fri, 19 Aug 2005 20:43:21 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E20543D45 for ; Fri, 19 Aug 2005 20:43:21 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j7JKhIZJ017392; Fri, 19 Aug 2005 13:43:18 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7JKhIcT017391; Fri, 19 Aug 2005 13:43:18 -0700 Date: Fri, 19 Aug 2005 13:43:18 -0700 From: Brooks Davis To: Daniel Valencia Message-ID: <20050819204318.GA17019@odin.ac.hmc.edu> References: <4305CF84.60409@mersin.edu.tr> <20050819192555.675.qmail@web53913.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <20050819192555.675.qmail@web53913.mail.yahoo.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: =?iso-8859-1?Q?=D6zkan?= KIRIK , freebsd-net@freebsd.org Subject: Re: multiple interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 20:43:22 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please don't top post.] On Fri, Aug 19, 2005 at 12:25:55PM -0700, Daniel Valencia wrote: >=20 > Hi >=20 > Yes, I tried that, and although I can ping the local > interface (10.0.1.2), I cant reach the remote > interface (10.0.0.2). This is expected. Only one of those interfaces has a network route so it will be used for all communications to that network. I'm guessing your route to 10.0/16 is via xl0 though I can't say for sure because you haven't provided the contents of your routing table as previously requested (use "netstat -f inet -rn"). If you want two interfaces to be on the same subnet and to provide the broadcast medium for that subnet, you need to bridge them. If you want the ability to alternate between the two connections to the same host, you may be able to use CARP or ng_one2many. -- Brooks > --- =D6zkan KIRIK wrote: >=20 > > You cannot define same network to more then one > > interface! > >=20 > > As you post below; > > xl0: inet 10.0.1.1 netmask 0xffff0000 broadcast > > 10.0.255.255 > > xl1: inet 10.0.1.2 netmask 0xffff0000 broadcast > > 10.0.255.255 > >=20 > > They are at the same network, so your freebsd > > searchs 10.0.1.2 at xl0. > > You should define your xl1 as inet 10.0.1.2 netmask > > 255.255.255.255 > >=20 > > With Best Regards, > > Ozkan KIRIK > > EnderUNIX SDT@Turkey > > Software Developer > >=20 > > Daniel Valencia wrote: > >=20 > > >Hi > > > > > >from the boot messages, i can see that the network > > >devices are started up properly. Strangely enough, > > >the one that doesnt seem to be assigned an IRQ# is > > not > > >having any problems, but one of the ones that is. > > > > > >Here are the boot messages > > > > > >de0: port > > 0x4000-0x407f > > >mem 0xf4a01000-0xf4a0107f at device 11.0 on pci2 > > >de0: SMC 9332BDT 21140A [10-100Mb/s] pass 2.0 > > >de0: Ethernet address: 00:00:c0:7f:a1:fd > > >de0: if_start running deferred for Giant > > >xl0: <3Com 3c905C-TX Fast Etherlink XL> port > > >0x4080-0x40ff mem 0xf4a01400-0xf4a0147f irq 10 at > > >device 13.0 on pci2 > > >miibus0: on xl0 > > >xlphy0: <3c905C 10/100 internal PHY> on miibus0 > > >xlphy0: 10baseT, 10baseT-FDX, 100baseTX, > > >100baseTX-FDX, auto > > >xl0: Ethernet address: 00:01:02:c1:ba:82 > > >xl1: <3Com 3c905C-TX Fast Etherlink XL> port > > >0x4400-0x447f mem 0xf4a01800-0xf4a0187f irq 11 at > > >device 15.0 on pci2 > > >miibus1: on xl1 > > >xlphy1: <3c905C 10/100 internal PHY> on miibus1 > > >xlphy1: 10baseT, 10baseT-FDX, 100baseTX, > > >100baseTX-FDX, auto > > >xl1: Ethernet address: 00:01:02:44:3c:22 > > > > > >Here goes my ifconfig > > > > > > =20 > > > > > >>ifconfig > > >> =20 > > >> > > >de0: > > > >flags=3D108843 > > >mtu 1500 > > > inet 128.200.38.140 netmask 0xffffff00 > > >broadcast 128.200.38.255 > > > inet6 fe80::200:c0ff:fe7f:a1fd%de0 > > prefixlen > > >64 scopeid 0x1 > > > ether 00:00:c0:7f:a1:fd > > > media: Ethernet autoselect (100baseTX > > >) > > > status: active > > >xl0: > > >flags=3D8843 > > mtu > > >1500 > > > options=3D9 > > > inet 10.0.1.1 netmask 0xffff0000 broadcast > > >10.0.255.255 > > > inet6 fe80::201:2ff:fec1:ba82%xl0 prefixlen > > 64 > > >scopeid 0x2 > > > ether 00:01:02:c1:ba:82 > > > media: Ethernet autoselect (100baseTX > > >) > > > status: active > > >xl1: > > >flags=3D8843 > > mtu > > >1500 > > > options=3D9 > > > inet 10.0.1.2 netmask 0xffff0000 broadcast > > >10.0.255.255 > > > inet6 fe80::201:2ff:fe44:3c22%xl1 prefixlen > > 64 > > >scopeid 0x3 > > > ether 00:01:02:44:3c:22 > > > media: Ethernet autoselect (100baseTX > > >) > > > status: active > > >lo0: flags=3D8049 mtu > > >16384 > > > inet 127.0.0.1 netmask 0xff000000 > > > inet6 ::1 prefixlen 128 > > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > > > =20 > > > > > > > > > > > >And, at last, a few ping attempts > > > > > > =20 > > > > > >>ping -c 1 128.200.38.140 > > >> =20 > > >> > > >PING 128.200.38.140 (128.200.38.140): 56 data bytes > > >64 bytes from 128.200.38.140: icmp_seq=3D0 ttl=3D64 > > >time=3D0.130 ms > > > > > >--- 128.200.38.140 ping statistics --- > > >1 packets transmitted, 1 packets received, 0% > > packet > > >loss > > >round-trip min/avg/max/stddev =3D > > >0.130/0.130/0.130/0.000 ms > > > =20 > > > > > >>ping -c 1 10.0.1.1 > > >> =20 > > >> > > >PING 10.0.1.1 (10.0.1.1): 56 data bytes > > >64 bytes from 10.0.1.1: icmp_seq=3D0 ttl=3D64 > > time=3D0.128 > > >ms > > > > > >--- 10.0.1.1 ping statistics --- > > >1 packets transmitted, 1 packets received, 0% > > packet > > >loss > > >round-trip min/avg/max/stddev =3D > > >0.128/0.128/0.128/0.000 ms > > > =20 > > > > > >>ping -c 1 10.0.1.2 > > >> =20 > > >> > > >PING 10.0.1.2 (10.0.1.2): 56 data bytes > > > > > >--- 10.0.1.2 ping statistics --- > > >1 packets transmitted, 0 packets received, 100% > > packet > > >loss > > > =20 > > > > > >>=20 > > >> =20 > > >> > > > > > > > > >Thank you very much, > > > > > >Daniel > > > > > > > > >--- Brooks Davis wrote: > > > > > > =20 > > > > > >>On Thu, Aug 18, 2005 at 11:36:55AM -0700, Daniel > > >>Valencia wrote: > > >> =20 > > >> > > >>>Hello, everybody > > >>> > > >>>Is there any limit as of how many interfaces can > > >>>freebsd handle? Im trying to build a switch in a > > >>> =20 > > >>> > > >>PC > > >> =20 > > >> > > >>>box, putting multiple NICs and some software... > > >>> =20 > > >>> > > >>The > > >> =20 > > >> > > >>>issue is, even though all of the cards work > > >>> =20 > > >>> > > >>correctly > > >> =20 > > >> > > >>>by themselves, once I put them together, it > > doesnt > > >>>matter what slots i use, I can never make more > > >>> =20 > > >>> > > >>than > >=20 > =3D=3D=3D message truncated =3D=3D=3D >=20 >=20 >=20 > =09 > ____________________________________________________ > Start your day with Yahoo! - make it your home page=20 > http://www.yahoo.com/r/hs=20 > =20 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDBkRlXY6L6fI4GtQRAkKeAJwNA/UO9d67vH1z99N3QkqJeafvjQCcCN6k iC7DJoWgx/YVUwxJO59ZUG4= =rdsJ -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--