Debian (USB w/ DHCP and Bridging)
From OESF
Line 1: |
Line 1: | ||
| - | (firstly, DHCP server/client is not necessary) | + | ''(firstly, DHCP server/client is nice and easiest but 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''). | ||
Line 8: |
Line 9: | ||
* an ADSL Router/Hub/DHCP server connected to | * an ADSL Router/Hub/DHCP server connected to | ||
** a PPC Debian etch box via USB | ** a PPC Debian etch box via USB | ||
| - | ** and i386 Debain etch box via ethernet | + | ** and i386 Debain etch box via ethernet (also worked under sid) |
*** which is in turn connected to my 5500's USB cradle | *** which is in turn connected to my 5500's USB cradle | ||
| - | |||
== 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) ;) | * 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) ;) | ||
Line 23: |
Line 22: | ||
| - | * 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. | + | == Step #2 == |
| + | |||
| + | * 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, substituting the ''X'''s with your choice of IP. | ||
# The loopback network interface | # The loopback network interface | ||
Line 29: |
Line 30: | ||
iface lo inet loopback | iface lo inet loopback | ||
| - | # The primary network interface | + | # The primary network/internet interface |
auto eth0 | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
Line 35: |
Line 36: | ||
netmask 0.0.0.0 | netmask 0.0.0.0 | ||
| + | # The Virtual Bridging Interface linking usb0 to eth0 | ||
auto br0 | auto br0 | ||
iface br0 inet dhcp | iface br0 inet dhcp | ||
Line 41: |
Line 43: | ||
post-down brctl delbr br0 | post-down brctl delbr br0 | ||
| + | # The Zaurus's Connnection | ||
allow-hotplug usb0 | allow-hotplug usb0 | ||
mapping hotplug | mapping hotplug | ||
Line 46: |
Line 49: | ||
map usb0 | map usb0 | ||
iface usb0 inet static | iface usb0 inet static | ||
| - | address 192.168. | + | |
| - | netmask 255.255.255. | + | # The following is a dummy address/netmask, |
| + | # and is only used initially to create the usb0 interface, | ||
| + | # so it can then be set to 0.0.0.0 just like eth0 :) | ||
| + | |||
| + | address 192.168.''X''.''X'' | ||
| + | netmask 255.255.255.''X'' | ||
post-up ifconfig usb0 0.0.0.0 up | post-up ifconfig usb0 0.0.0.0 up | ||
post-up brctl addif br0 usb0 | post-up brctl addif br0 usb0 | ||
post-down brctl delif br0 usb0 | post-down brctl delif br0 usb0 | ||
| + | |||
| + | Optionally if you didn't want to use DHCP or dont have it running switch the setup code for br0 from above with the following, substituting the ''X'''s with your choice of IP. | ||
| + | |||
| + | |||
| + | # The Virtual Bridging Interface linking usb0 to eth0 | ||
| + | auto br0 | ||
| + | iface br0 inet static | ||
| + | address 192.168.''X''.''X'' | ||
| + | netmask 255.255.255.''X'' | ||
| + | pre-up brctl addbr br0 | ||
| + | pre-up brctl addif br0 eth0 | ||
| + | post-down brctl delbr br0 | ||
| + | |||
| + | |||
| + | == Step #3 == | ||
* Restart your networking system, without rebooting, by executing the following command line. | * Restart your networking system, without rebooting, by executing the following command line. | ||
/etc/init.d/networking restart | /etc/init.d/networking restart | ||
| + | |||
| + | |||
| + | == Step #4 == | ||
| + | |||
| + | * Configure your Zaurus | ||
| + | |||
| + | now depending on which ROM your running, the changes you may need to make may be different... | ||
| + | |||
| + | if you have an /etc/network/interfaces file, edit it as follows: | ||
| + | |||
| + | For auto dhcp assigned address add/edit: | ||
| + | |||
| + | iface usb0 inet dhcp | ||
| + | |||
| + | For a static IP address add/edit: | ||
| + | |||
| + | iface usb0 inet static | ||
| + | #your z's address | ||
| + | address 192.168.''X''.''X'' | ||
| + | #your computer's address (this will most likely be the address for br0, | ||
| + | #but may instead be usb0 if you needed to make usb0 static for some reason...) | ||
| + | pointopoint 192.168.''X''.''X'' | ||
| + | netmask 255.255.255.''X'' | ||
| + | |||
| + | |||
| + | |||
| + | NOT FINISHED, STILL EDITING | ||
Revision as of 12:36, 28 April 2006
(firstly, DHCP server/client is nice and easiest but 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 (also worked under sid)
- which is in turn connected to my 5500's USB cradle
Contents |
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)
Step #2
- 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, substituting the X's with your choice of IP.
# The loopback network interface auto lo iface lo inet loopback # The primary network/internet interface auto eth0 iface eth0 inet static address 0.0.0.0 netmask 0.0.0.0 # The Virtual Bridging Interface linking usb0 to eth0 auto br0 iface br0 inet dhcp pre-up brctl addbr br0 pre-up brctl addif br0 eth0 post-down brctl delbr br0 # The Zaurus's Connnection allow-hotplug usb0 mapping hotplug script grep map usb0 iface usb0 inet static # The following is a dummy address/netmask, # and is only used initially to create the usb0 interface, # so it can then be set to 0.0.0.0 just like eth0 :) address 192.168.X.X netmask 255.255.255.X post-up ifconfig usb0 0.0.0.0 up post-up brctl addif br0 usb0 post-down brctl delif br0 usb0
Optionally if you didn't want to use DHCP or dont have it running switch the setup code for br0 from above with the following, substituting the X's with your choice of IP.
# The Virtual Bridging Interface linking usb0 to eth0 auto br0 iface br0 inet static address 192.168.X.X netmask 255.255.255.X pre-up brctl addbr br0 pre-up brctl addif br0 eth0 post-down brctl delbr br0
Step #3
- Restart your networking system, without rebooting, by executing the following command line.
/etc/init.d/networking restart
Step #4
- Configure your Zaurus
now depending on which ROM your running, the changes you may need to make may be different...
if you have an /etc/network/interfaces file, edit it as follows:
For auto dhcp assigned address add/edit:
iface usb0 inet dhcp
For a static IP address add/edit:
iface usb0 inet static #your z's address address 192.168.X.X #your computer's address (this will most likely be the address for br0, #but may instead be usb0 if you needed to make usb0 static for some reason...) pointopoint 192.168.X.X netmask 255.255.255.X
NOT FINISHED, STILL EDITING

