LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-21-2009, 05:48 PM   #1
royce2020
Member
 
Registered: Jan 2003
Posts: 81

Rep: Reputation: 15
bridging a wireless and wired network causes wired to stop working


at seems to bee Hello all.
I have a desktop machine running Ubuntu Hardy Heron with two network cards and a wireless PCI card. It acts as a headless DHCP, web proxy/firewall and file server, eth1 is attached to my PPPOE internet provider, and eth0 is attached to the hub containing the rest of my network. This set-up has been working well for me for some time. The wireless card has always been in the machine and worked correctly during its previous life as a windows desktop, but I've only just got around to setting it up.

I've installed madwifi, and got it set up correctly (well, I think so: no errors) as an access point. I've set up the SSCID and WEP security and both my intrepid ibex laptop and windows XP desktop can detect and connect to the wireless so long as they're given static IP addresses, but without the bridge they can't ping each other nor receive DHCP.

The problem is, when I bridge ath0 into eth0, eth0 just stops. No errors, no messages, it just stops replying until both eth0 and br0 are taken down using ifdown and eth0 is brought back up. During bringing the bridge up, the br0 interface looks for a DHCP sever and fails (even though eth0 should be doing this)

I've never bridged a network before (nor set up wireless, but that seems to be working), and I've googled the problem and can't find anything, so the problem is I've done something ridiculously stupid, or inherently over complex. Any help would be apreciated.

this is my /etc/network/interfaces file:

Code:
auto lo
iface lo inet loopback

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider

auto eth0
iface eth0 inet static
address 10.1.10.1
netmask 255.255.255.0

iface ath0 inet static
address 10.1.10.2
netmask 255.255.255.0
pre-up wlanconfig ath0 destroy || true
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
post-down wlanconfig destroy
wireless-mode master
wireless-channel auto
wireless-essid tetoromadhouse
wireless-key xxxxxxxxxx

iface br0 inet dhcp
bridge_ports ath0 eth0
and this is the output of iwconfig:

Code:
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wifi0     no wireless extensions.

ppp0      no wireless extensions.

ath0      IEEE 802.11g  ESSID:"tetoromadhouse"  Nickname:""
          Mode:Master  Frequency:2.412 GHz  Access Point: 00:0F:B5:F6:2A:18   
          Bit Rate:0 kb/s   Tx-Power:18 dBm   Sensitivity=1/1  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:78CA-FEBA-BE   Security mode:restricted
          Power Management:off
          Link Quality=53/70  Signal level=-43 dBm  Noise level=-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
and ifconfig:
Code:
ath0      Link encap:Ethernet  HWaddr 00:0f:b5:f6:2a:18  
          inet addr:10.1.10.2  Bcast:10.1.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:b5ff:fef6:2a18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:676 errors:0 dropped:0 overruns:0 frame:0
          TX packets:702 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:46542 (45.4 KB)  TX bytes:49282 (48.1 KB)

eth0      Link encap:Ethernet  HWaddr 00:50:8b:f0:b1:2a  
          inet addr:10.1.10.1  Bcast:10.1.10.255  Mask:255.255.255.0
          inet6 addr: fe80::250:8bff:fef0:b12a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17128188 errors:1 dropped:0 overruns:0 frame:1
          TX packets:17298867 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1993413720 (1.8 GB)  TX bytes:1133086983 (1.0 GB)

eth1      Link encap:Ethernet  HWaddr 00:0e:2e:59:22:96  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:269530 errors:0 dropped:0 overruns:0 frame:0
          TX packets:277403 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:171686486 (163.7 MB)  TX bytes:52846757 (50.3 MB)
          Interrupt:18 Base address:0x1000 

eth1:avahi Link encap:Ethernet  HWaddr 00:0e:2e:59:22:96  
          inet addr:169.254.4.236  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:18 Base address:0x1000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:216400 errors:0 dropped:0 overruns:0 frame:0
          TX packets:216400 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:174205839 (166.1 MB)  TX bytes:174205839 (166.1 MB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:203.152.126.84  P-t-P:203.152.96.95  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:68732 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69638 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:27478605 (26.2 MB)  TX bytes:12163319 (11.5 MB)

wifi0     Link encap:UNSPEC  HWaddr 00-0F-B5-F6-2A-18-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4943 errors:0 dropped:0 overruns:0 frame:243764
          TX packets:45026 errors:319 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:199 
          RX bytes:247174 (241.3 KB)  TX bytes:2254052 (2.1 MB)
          Interrupt:19
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems when bridging wireless and wired networks Rostfrei Linux - Networking 0 10-22-2008 03:04 PM
Bridging a wired network to a (managed by network manager) wireless one jemenake Linux - Wireless Networking 2 09-09-2008 10:18 PM
Bridging a Wifi and Wired Network... sancho Linux - Wireless Networking 8 07-18-2008 07:31 PM
Neither wireless or wired network is working hsimah Linux - Wireless Networking 9 04-12-2006 06:58 AM
Bridging Wireless interface with the Wired one hohenzolern Linux - Wireless Networking 3 04-04-2006 04:49 PM


All times are GMT -5. The time now is 01:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration