Re: [gentoo-user] Automatic network configuration for USB connected device

2008-09-07 Thread Dan Johansson
On Saturday 06 September 2008, Dan Johansson wrote: On Saturday 06 September 2008, Daniel Pielmeier wrote: Hong Hao schrieb am 06.09.2008 15:29: Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0

[gentoo-user] Automatic network configuration for USB connected device

2008-09-06 Thread Dan Johansson
I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without problem ssh to the Freerunner. Now I want the above to be

Re: [gentoo-user] Automatic network configuration for USB connected device

2008-09-06 Thread Hong Hao
Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without problem ssh to the Freerunner. Now I

Re: [gentoo-user] Automatic network configuration for USB connected device

2008-09-06 Thread Daniel Pielmeier
Hong Hao schrieb am 06.09.2008 15:29: Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0 192.168.0.200 netmask 255.255.255.248 After that I can without

Re: [gentoo-user] Automatic network configuration for USB connected device

2008-09-06 Thread Dan Johansson
On Saturday 06 September 2008, Daniel Pielmeier wrote: Hong Hao schrieb am 06.09.2008 15:29: Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must configure the usb0 device on the Gentoo-box as follows: ifconfig usb0

Re: [gentoo-user] Automatic network configuration for USB connected device

2008-09-06 Thread Xav'
Le Saturday 06 September 2008 15:52:57 Dan Johansson, vous avez écrit : On Saturday 06 September 2008, Daniel Pielmeier wrote: Hong Hao schrieb am 06.09.2008 15:29: Dan Johansson wrote: I have bought me a new toy - an Openmoko Freerunner. Each time I connect it to my Gentoo-box I must

Re: [gentoo-user] Automatic network configuration for USB connected device

2008-09-06 Thread Neil Bothwick
On Sat, 6 Sep 2008 18:15:04 +0200, Xav' wrote: You can also use /etc/init.d/iptables script for saving iptables rules and restoring it at startup, and /etc/sysctl.conf for net.ipv4.ip_forward ;) Yes, but by putting them in the preup/down functions, the rules are only active when the devices