ude:/etc/network# mv interfaces interfaces.orig ude:/etc/network# cp interfaces.orig interfaces ude:/etc/network# vi interfaces : : ude:/etc/network# diff -c interfaces.orig interfaces *** interfaces.orig Tue Sep 26 10:32:35 2006 --- interfaces Tue Sep 26 11:11:12 2006 *************** *** 1,4 **** auto lo iface lo inet loopback auto eth0 ! iface eth0 inet dhcp --- 1,10 ---- auto lo iface lo inet loopback auto eth0 ! #iface eth0 inet dhcp ! iface eth0 inet static ! address 192.168.1.38 ! network 192.168.1.0 ! netmask 255.255.255.0 ! broadcast 192.168.1.255 ! gateway 192.168.1.1 ude:/etc/network#
ude:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:16:01:35:06:7A
          inet addr:192.168.1.38  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:512
          RX bytes:1174 (1.1 KiB)  TX bytes:1634 (1.5 KiB)
          Interrupt:21
ude:~# netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     *               255.255.255.0   U         0 0          0 eth0
default         192.168.1.1     0.0.0.0         UG        0 0          0 eth0
ude:~# cat /etc/resolv.conf search yamasita.jp nameserver 192.168.1.32 nameserver 192.168.1.2 ude:~#
| ← LS-GL:アンマウントできない?loop デバイス | ハックの記録 LinkStation/玄箱 をハックしよう | → LS-GL:debian:カーネルモジュールのコピー |