Re: [Hampshire] Routing traffic

Top Page

Reply to this message
Author: Simon Capstick
Date:  
To: johnrhunt, Hampshire LUG Discussion List
CC: 
Subject: Re: [Hampshire] Routing traffic
Hi John,

John Hunt wrote:
> Still no luck for me I'm afraid.
>
> Just setting auto eth0 etc.. didn't work - the init script complained
> there wasn't enough conifg info, so I tried the following:
>
> auto lo
> iface lo inet loopback
>
> auto mybridge
> iface mybridge inet dhcp
> pre-up ifconfig eth0 down
> pre-up ifconfig eth1 down
> pre-up brctl addbr mybridge
> pre-up brctl addif mybridge eth0
> pre-up brctl addif mybridge eth1
> pre-up ifconfig eth0 up
> pre-up ifconfig eth1 up
> post-down ifconfig eth0 down
> post-down ifconfig eth1 down
> post-down brctl delbr mybridge
>
> auto eth0
> iface eth0 inet manual
> auto eth1
> iface eth1 inet manual
> essid hunts
> key s:my_secret_key
>
> john@feeg:~$ sudo /etc/init.d/networking restart
> * Reconfiguring network interfaces...
> There is already a pid file /var/run/dhclient.mybridge.pid with pid
> 134519120
> Internet Systems Consortium DHCP Client V3.0.5
> Copyright 2004-2006 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/sw/dhcp/
>
> Listening on LPF/mybridge/00:0a:e4:35:08:a3
> Sending on LPF/mybridge/00:0a:e4:35:08:a3
> Sending on Socket/fallback
> There is already a pid file /var/run/dhclient.mybridge.pid with pid
> 134519120
> Internet Systems Consortium DHCP Client V3.0.5
> Copyright 2004-2006 Internet Systems Consortium.
> All rights reserved.
> For info, please visit http://www.isc.org/sw/dhcp/
>
> Listening on LPF/mybridge/00:0a:e4:35:08:a3
> Sending on LPF/mybridge/00:0a:e4:35:08:a3
> Sending on Socket/fallback
> DHCPDISCOVER on mybridge to 255.255.255.255 port 67 interval 7
> DHCPDISCOVER on mybridge to 255.255.255.255 port 67 interval 12
> DHCPDISCOVER on mybridge to 255.255.255.255 port 67 interval 12
> No DHCPOFFERS received.
> No working leases in persistent database - sleeping.
>
> [ OK ]
> john@feeg:~$
>
>
> I tried this conf too:
> auto lo
> iface lo inet loopback
>
> auto mybridge
> iface mybridge inet dhcp
>    bridge-ports eth0 eth1

>
> That complains there's no eth0 or eth1..etc.
>
> Any suggestions?? Am I being stupid?
> Cheers!
>
> John.
>


That last config you tried was the correct one to try (from my previous
post). It works on my machine (admittedly I only have one Ethernet
interface). Make sure that there are no auto entries for eth0 or eth1
in the interfaces config. file.

However that doesn't explain why your PC is complaining that eth0 and
eth1 don't exist. They may have different names on your PC. Try
listing all your network interfaces to see if they have different names...

ifconfig -a

Look for the ones with 'Link encap:Ethernet'. You should have two of
those (the wireless and wired NIC) and they should be the ones in your
bridge-ports line. If you're unsure just post the output of 'ifconfig
-a' and we'll take a look.

Simon