[Grml] How to switch from dynamic IP to static IP in grml

T o n g mlist4suntong at yahoo.com
Mon Feb 7 21:34:12 CET 2011


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


-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/




More information about the Grml mailing list