How to switch from dynamic IP to static IP in grml

Hi,
I use dynamic IP previously, now I need to use static IP for my ether card, which had been automatically configured by grml:
$ cat /etc/networks default 0.0.0.0 loopback 127.0.0.0 link-local 169.254.0.0
$ ifconfig eth0 Link encap:Ethernet HWaddr 00:11:2f:be:4b:ba inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1313320 errors:0 dropped:0 overruns:0 frame:0 TX packets:1179010 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:697520612 (665.2 MiB) TX bytes:782279263 (746.0 MiB) Interrupt:17
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:803382 errors:0 dropped:0 overruns:0 frame:0 TX packets:803382 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:233726809 (222.8 MiB) TX bytes:233726809 (222.8 MiB)
How can I switch from dynamic IP to static IP now?
$ grep -i network /etc/grml/autoconfig CONFIG_DEBNET='yes' # search for /etc/network/interfaces on partitions and set up network afterwards CONFIG_DISTCC='yes' # activate and setup distcc through bootparam distcc=$NETWORK,$INTERFACE
Neither seems to me is the correct switch.
Please help.
Thanks

On Mon, 07 Feb 2011 20:34:12 +0000, T o n g wrote:
How can I switch from dynamic IP to static IP now?
$ grep -i network /etc/grml/autoconfig CONFIG_DEBNET='yes' # search for /etc/network/interfaces on partitions and set up network afterwards
That's the one, is it?

* T o n g wrote [07.02.11 21:59]: Hi Tong,
How can I switch from dynamic IP to static IP now?
$ grep -i network /etc/grml/autoconfig CONFIG_DEBNET='yes' # search for /etc/network/interfaces on partitions and set up network afterwards
That's the one, is it?
Grml 2010.12 does not automatically start pump but uses /etc/network/interfaces. This means it is enough to just configure your ip configuration via /etc/network/interfaces
Ulrich
participants (2)
-
T o n g
-
Ulrich Dangel