Debian (USB w/ DHCP and Bridging)

From OESF

(Difference between revisions)
Jump to: navigation, search

Line 1:

Line 1:

 +
(firstly, DHCP server/client is not necessary)
 +
Taken from a post i made in the following [http://www.oesf.org/forums/index.php?showtopic=11785&st=0 thread], inspired by an earlier post in the same thread by ''NickNak'' introducing me to this method, but whose guide didnt work for me (''telemetric_au'').
Taken from a post i made in the following [http://www.oesf.org/forums/index.php?showtopic=11785&st=0 thread], inspired by an earlier post in the same thread by ''NickNak'' introducing me to this method, but whose guide didnt work for me (''telemetric_au'').
-
The setup i got it working under was fairly common:
+
The setup i got it working under is fairly common, but im confident it would also work with many others...
* an ADSL Router/Hub/DHCP server connected to
* an ADSL Router/Hub/DHCP server connected to

Line 12:

Line 14:

== Step #1 ==
== Step #1 ==
 +
 +
 +
* On your Z's "Host Box" run from a command prompt (ctrl+alt+F1); ctrl+alt+F7 switch's to X, and ctrl+alt+F10 switch's to System Messages (handy for checking your z is recognized apon plugging in) ;)
 +
 +
apt-get install bridge-utils
 +
 +
(which gives you the "brctl" command used bellow)
 +
 +
 +
* Edit the file ''/etc/network/interfaces'' using a text editor running with root (su) access as shown below, without changing anything else (i.e. other interfaces) which are allready there but are not mentioned or adjusted in the following box of code.
 +
 +
# The loopback network interface
 +
auto lo
 +
iface lo inet loopback
 +
 +
# The primary network interface
 +
auto eth0
 +
iface eth0 inet static
 +
address 0.0.0.0
 +
netmask 0.0.0.0
 +
 +
auto br0
 +
iface br0 inet dhcp
 +
pre-up brctl addbr br0
 +
pre-up brctl addif br0 eth0
 +
post-down brctl delbr br0
 +
 +
allow-hotplug usb0
 +
mapping hotplug
 +
script grep
 +
map usb0
 +
iface usb0 inet static
 +
address 192.168.1.105
 +
netmask 255.255.255.0
 +
post-up ifconfig usb0 0.0.0.0 up
 +
post-up brctl addif br0 usb0
 +
post-down brctl delif br0 usb0
 +
 +
 +
* Restart your networking system, without rebooting, by executing the following command line.
 +
 +
/etc/init.d/networking restart

Revision as of 11:47, 28 April 2006

(firstly, DHCP server/client is not necessary)

Taken from a post i made in the following thread, inspired by an earlier post in the same thread by NickNak introducing me to this method, but whose guide didnt work for me (telemetric_au).


The setup i got it working under is fairly common, but im confident it would also work with many others...

  • an ADSL Router/Hub/DHCP server connected to
    • a PPC Debian etch box via USB
    • and i386 Debain etch box via ethernet
      • which is in turn connected to my 5500's USB cradle


Step #1

  • On your Z's "Host Box" run from a command prompt (ctrl+alt+F1); ctrl+alt+F7 switch's to X, and ctrl+alt+F10 switch's to System Messages (handy for checking your z is recognized apon plugging in) ;)
apt-get install bridge-utils

(which gives you the "brctl" command used bellow)


  • Edit the file /etc/network/interfaces using a text editor running with root (su) access as shown below, without changing anything else (i.e. other interfaces) which are allready there but are not mentioned or adjusted in the following box of code.
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 0.0.0.0
netmask 0.0.0.0

auto br0
iface br0 inet dhcp
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
post-down brctl delbr br0

allow-hotplug usb0
mapping hotplug
script grep
map usb0
iface usb0 inet static
address 192.168.1.105
netmask 255.255.255.0
post-up ifconfig usb0 0.0.0.0 up
post-up brctl addif br0 usb0
post-down brctl delif br0 usb0


  • Restart your networking system, without rebooting, by executing the following command line.
/etc/init.d/networking restart
Personal tools