Network card issues

Chris Rodgers freebsd-users-uk at bulk.rodgers.org.uk
Wed Jun 16 09:04:28 BST 2004


I think that you are misunderstanding what a router does. A router will sit
on two different subnets (with different IP ranges on each, and hence a
different IP address on each) forwarding packets between them as necessary
and using its internal routing table. On the other hand, a BRIDGE has two
network cards (often with the same MAC address set) and sits between
segments of a single subnet. It forwards traffic at the Ethernet level
rather than at the IP level. With a bridge, you can do what you describe,
giving your machine zero, one, or more IP addresses within your subnet.
Bridges are also extremely useful for building firewalls and monitoring
traffic. Have at
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/filtering-bridges/article.html
for more inspiration...

HTH

Chris Rodgers
----- Original Message ----- 
From: "Ben Maynard" <bmaynard at voodoox.net>
To: <freebsd-users at uk.freebsd.org>
Sent: Tuesday, June 15, 2004 9:28 PM
Subject: Network card issues


> Hi
>
> I have a problem with a freebsd installation, the version is 5.2.1, the
> machine has 3 nic cards ste0, xl0, ndis0 (ndis0 being a wireless card).
>
> I am only using 2 of the cards, ste0 and ndis0, I am using the machine
> to route traffic from one half of my lan to the other.
>
> Using:
>
>    ifconfig ndis0 inet 192.168.1.50 netmask 255.255.255.0
>    ifconfig ste0 inet 192.168.0.1 netmask 255.255.255.0
>
>
> ifconfig -a
>
> ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.1.50 netmask 0xffffff00 broadcast 192.168.1.255
>         inet6 fe80::20c:41ff:fe64:83d8%ndis0 prefixlen 64 scopeid 0x1
>         ether 00:0c:41:64:83:d8
>         media: IEEE 802.11 Wireless Ethernet autoselect
>         status: associated
>         ssid default 1:default
>         channel 6 authmode OPEN powersavemode OFF powersavesleep 100
>         rtsthreshold 2312 protmode CTS
>         wepmode OFF weptxkey 1
> ste0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=8<VLAN_MTU>
>         inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
>         inet6 fe80::205:5dff:fee0:4971%ste0 prefixlen 64 scopeid 0x3
>         ether 00:05:5d:e0:49:71
>         media: Ethernet autoselect (10baseT/UTP <full-duplex>)
>         status: active
>
>
> Everything works perfectly, but if I attempt to assign both card
> addresses in the same range, the second card to get an address only
> accepts and ipv6 address. Ie:
>
>    ifconfig ndis0 inet 192.168.1.50 netmask 255.255.255.0
>    ifconfig ste0 inet 192.168.1.2 netmask 255.255.255.0
>
> ifconfig -a
>
> ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.1.50 netmask 0xffffff00 broadcast 192.168.1.255
>         inet6 fe80::20c:41ff:fe64:83d8%ndis0 prefixlen 64 scopeid 0x1
>         ether 00:0c:41:64:83:d8
>         media: IEEE 802.11 Wireless Ethernet autoselect
>         status: associated
>         ssid default 1:default
>         channel 6 authmode OPEN powersavemode OFF powersavesleep 100
>         rtsthreshold 2312 protmode CTS
>         wepmode OFF weptxkey 1
> ste0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=8<VLAN_MTU>
>         inet6 fe80::205:5dff:fee0:4971%ste0 prefixlen 64 scopeid 0x3
>         ether 00:05:5d:e0:49:71
>         media: Ethernet autoselect (10baseT/UTP <full-duplex>)
>         status: active
>
>
> Does anyone have any idea why this would be happening, I am wanting to
> bring the 2 halves of my lan to the same ip range but because of this I
> am unable to.
>
> Any help would be appreciated.
>
> Thanks
>
> Ben
>
>
>
> ------ FreeBSD UK Users' Group  -  Mailing List ------
> http://listserver.uk.freebsd.org/mailman/listinfo/freebsd-users
>





More information about the Ukfreebsd mailing list