Re: manually configuring bridging on FC4

From: Paul Howarth (paul_at_city-fan.org)
Date: 08/06/05

  • Next message: Arthur Pemberton: "Book to teach KTurtle?"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Sat, 06 Aug 2005 18:53:48 +0100
    
    

    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@city-fan.org>
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Arthur Pemberton: "Book to teach KTurtle?"

    Relevant Pages

    • Re: bridge issues with pf rules on OpenBSD/Sparc
      ... confused as to which physical interface traffic goes in and out on ... for the bridge, I was hoping to have the bridge tell it. ... >> router always appears to match rules for le2 outbound traffic from ... I want to be functional between the LAN and AP. ...
      (comp.unix.bsd.openbsd.misc)
    • Re: Paketfiler als Bridge (was: Stealth Gateway)
      ... >>der Hauptnachteil eines solchen Paketfilters. ... Eine Ethernet Bridge nimmt alle Ethernetpakete auf einem Interface ...
      (de.comp.security.firewall)
    • Re: Multiple pvcs on Cisco 878
      ... full bridge. ... interface BRI0 ... ip route 0.0.0.0 0.0.0.0 Dialer0 ... The gateway of last resort disappears, and the routing table is shut ...
      (comp.dcom.sys.cisco)
    • Re: If_bridge behaving as HUB
      ... I have a bridge setup with a number of vlan IF's as members. ... After a while traffic destined for one member IF are sent to all member IF's. ... A bridge works like a hub, forwarding traffic from one interface to ... Multicast and broadcast packets are always forwarded to all ...
      (freebsd-net)
    • bridge issues with pf rules on OpenBSD/Sparc
      ... I bridge two interfaces, wherein one interface has an IP address ... bridging causes pf to mis-apply frames to the wrong interface. ... @4 pass out log-all quick on le0 all ... packets that TRAVERSE the router from one host on le0 to another on le2, ...
      (comp.unix.bsd.openbsd.misc)