Re: [Hampshire] Routing traffic

Top Page

Reply to this message
Author: John Hunt
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Routing traffic
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.