Network bridge, but assigned IP address



I am creating a simple network bridge (as described in
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-bridging.html)
which consists of 5 network interface cards. Function-wise, it's
basically acting as a switch. However, I want to assign an IP address
to the machine with the 5 NICs.

So far without the bridge everything is working perfectly, and my
/etc/rc.conf looks like this:

gateway_enable="YES"
hostname="speedy.i"
ifconfig_fxp4="DHCP"
ifconfig_em0="inet 192.168.0.254 netmask 255.255.255.0"

And I have a NAT (using pf) to allow the 192.168.0.x hosts to directly
reach the outside internet. fxp4 is the external network card. My
other network cards that I want to make part of the internal network
(acting as a switch) are fxp0 through fxp3. So I'm not sure what to
do with my rc.conf. In the handbook it says to add these lines:

cloned_interfaces="bridge0"
ifconfig_bridge0="addm em0 addm fxp0 addm fxp1 addm fxp2 addm fxp3 up"
ifconfig_fxp0="up"
ifconfig_fxp1="up"
ifconfig_fxp2="up"
ifconfig_fxp3="up"
ifconfig_em0="up"

How should I intermingle these lines with my existing rc.conf, and/or
which lines should I remove? I want em0, fxp0, fxp1, fxp2, and fxp3
to be a bridge and be assigned the IP address 192.168.0.254.
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Senao 2611CB3+Deluxe setup issue, network configuration issue, or both?
    ... Given success with the coverage provided by the 3054CB3, I acquired a 2611CB3+Deluxe as a wireless ethernet adapter (wireless client bridge), ... I have set up the 2611CB3+Deluxe as a point-to-point client bridge at 192.168.1.1, also on Channel 10, with the office SSID and WEP key. ... The problem is I cannot get network connectivity from the desktop via the 2611CB3+Deluxe bridge. ... The network worked fine with the 3054 in AP mode, serving only laptops running the 2511CD cards. ...
    (alt.internet.wireless)
  • Re: IDS using Taps & network bridging
    ... Bridged network cards - sniffing the bridged interface has been ... It works but there seems to be an ARP DoS - any ideas on ... Of course bridge has the additional ... I have used their 4 port cards under FreeBSD, ...
    (Focus-IDS)
  • Re: can an access point connect through an access point?
    ... >> connecting the LAN to wireless devices. ... >>> In order for the WAN port to be on the same network as the LAN side it ... >>> must be able to function in a bridge mode instead of routing. ... > others), the LAN side is a switch, *not bridged*. ...
    (Fedora)
  • Re: What does "bridge" mean?
    ... > different network technology, ethernet, token ring, T1, etc. ... A Bridge is nothing more than a device that ... The most common Bridge found on a LAN now days is a simple Switch. ...
    (microsoft.public.win2000.networking)
  • Re: Configure FC2 as Bridge
    ... I have a custom init.d script which starts my bridge. ... where $CARDS contains a list of the cards I'm adding into the bridge. ... will put it into promiscuous mode, ... As to network cards, you only need 2 to make a bridge. ...
    (Fedora)

Quantcast