manually configuring bridging on FC4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   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). Of course I would rather not be setting these
at all but using dhcp. However I don't have a script showing that this
is possible. Any advice on what I might be doing wrong would be most
appreciated.
                    Jack
ps I got the example from above...

http://www.tldp.org/HOWTO/Ethernet-Bridge-netfilter-HOWTO-3.html#ss3.1


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux