manually configuring bridging on FC4

Paul Howarth paul at city-fan.org
Sat Aug 6 17:53:48 UTC 2005


On Sat, 2005-08-06 at 12:04 -0400, Jack Howarth wrote:
>    I have a wireless card currently configured such that I can enable its
> interface from the Network Configurator. The card is currently set up
> to do dhcp as is an inactive ethernet card in the same box. I have been
> trying to get bridging to work such that the ethernet can provide network
> access for a xbox. Trying the following script...
> 
> #!/bin/bash
> PATH="/sbin:/usr/sbin:/usr/local/sbin";
> slaveIfs="1 2 3 4 6 7 8 9 10";
> cmd="$1";
> [ -z "$cmd" ] && cmd="start";
> case "$cmd" in
>   start)
>     brctl addbr br0;
>     brctl stp br0 on;
>     brctl addif br0 wlan0;
>     brctl addif br0 eth0;
>     (ifdown wlan0 1>/dev/null 2>&1;);
>     (ifdown eth0 1>/dev/null 2>&1;);
>     ifconfig wlan0 0.0.0.0 up;
>     ifconfig eth0 0.0.0.0 up;
>     ifconfig br0 192.168.1.126 broadcast 192.168.1.255 netmask 255.255.255.0 up
> ### Adapt to your needs.
>     route add default gw 192.168.1.1; ### Adapt to your needs.
>     for file in br0 wlan0 eth0;
>     do
>       echo "1" > /proc/sys/net/ipv4/conf/${file}/proxy_arp;
>       echo "1" > /proc/sys/net/ipv4/conf/${file}/forwarding;
>     done;
>     echo "1" > /proc/sys/net/ipv4/ip_forward;
>     ;;
>   stop)
>     brctl delif br0 wlan0;
>     brctl delif br0 eth0;
>     ifconfig br0 down;
>     brctl delbr br0;
>     #ifup eth0; ### Adapt to your needs.
>     #ifup eth1; ### Adapt to your needs.
>     ;;
>   restart,reload)
>     $0 stop;
>     sleep 3;
>     $0 start;
>     ;;
> esac;
> 
> I am able to create the bridge but in the process the Network Configurator
> shows my wlan0 interface becomes disabled and doesn't come back up 
> automatically. If I enable the interface in the Network Configurator, I
> find that I am not able to reach the external internet through the 
> wireless card anymore unless I stop the bridge and reactive the wlan0
> again. The ip addresses above are the ip address dhcp had assigned
> (192.168.1.126) to the wireless card and the ip address of the wireless
> router (192.168.1.1).

A bridge is intended to transparently join two networks together. So if
you have interfaces A & B and bridge them together, interfaces A & B
should disappear (not have an IP address) and you should end up with an
address for just the bridge interface. That's my recollection of how
bridges work anyway.

Paul.
-- 
Paul Howarth <paul at city-fan.org>




More information about the fedora-list mailing list