| IP アドレス | 192.168.2.86 |
| ネットマスク | 255.255.255.0 |
| ブロードキャスト | 192.168.2.255 |
| デフォルトゲートウェイ | 192.168.2.1 |
| ネームサーバ | 192.168.2.39 |
良くわからない場合は、Windows のコマンドプロンプトで ipconfig /all を実行してみると良いだろう。
C:\>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : x31
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : yamasita.jp
Ethernet adapter ローカル エリア接続:
Connection-specific DNS Suffix . : yamasita.jp
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connecti
on
Physical Address. . . . . . . . . : 00-0D-60-xx-yy-zz
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.2.73
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
192.168.2.97
DHCP Server . . . . . . . . . . . : 192.168.2.39
DNS Servers . . . . . . . . . . . : 192.168.2.39
192.168.1.2
Lease Obtained. . . . . . . . . . : 2009年12月30日 20:58:57
Lease Expires . . . . . . . . . . : 2009年12月31日 2:58:57
C:\>
我が家のネットワークは、
root@debian:~# cd /etc/network
root@debian:/etc/network# mv interfaces interfaces.orig
root@debian:/etc/network# cp interfaces.orig interfaces
root@debian:/etc/network# ls -l interfaces*
-rw-r--r-- 1 root root 156 Feb 4 18:12 interfaces
-rw-r--r-- 1 root root 156 Jan 25 16:52 interfaces.orig
root@debian:/etc/network# vi interfaces
:
:
root@debian:/etc/network# cat !$
cat interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
#auto eth0
#iface eth0 inet dhcp
# /usr/share/doc/ifupdown/examples for more information.
auto eth0
iface eth0 inet static
address 192.168.2.86
network 192.168.2.0
netmask 255.255.255.0
broadcast 192.168.2.255
gateway 192.168.2.1
root@debian:/etc/network#
root@debian:/etc/network# vi /etc/resolv.conf : : root@debian:/etc/network# cat !$ cat /etc/resolv.conf domain yamasita.jp search yamasita.jp nameserver 192.168.2.39 root@debian:/etc/network#
root@debian:/etc/network# reboot : :
root@debian:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:43:01:69:3d
inet addr:192.168.2.86 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:1294 (1.2 KB) TX bytes:560 (560.0 B)
Interrupt:11
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:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@debian:~# ping www.yahoo.co.jp
PING www.ya.gl.yahoo.co.jp (124.83.147.205) 56(84) bytes of data.
64 bytes from f3.top.vip.ogk.yahoo.co.jp (124.83.147.205): icmp_seq=1 ttl=49 time=24.5 ms
64 bytes from f3.top.vip.ogk.yahoo.co.jp (124.83.147.205): icmp_seq=2 ttl=49 time=23.6 ms
64 bytes from f3.top.vip.ogk.yahoo.co.jp (124.83.147.205): icmp_seq=3 ttl=49 time=23.6 ms
64 bytes from f3.top.vip.ogk.yahoo.co.jp (124.83.147.205): icmp_seq=4 ttl=49 time=24.7 ms
64 bytes from f3.top.vip.ogk.yahoo.co.jp (124.83.147.205): icmp_seq=5 ttl=49 time=23.3 ms
64 bytes from f3.top.vip.ogk.yahoo.co.jp (124.83.147.205): icmp_seq=6 ttl=49 time=24.3 ms
--- www.ya.gl.yahoo.co.jp ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 7249ms
rtt min/avg/max/mdev = 23.303/24.043/24.725/0.554 ms
root@debian:~#
OK
|
|
←(前のページ) 不要な getty を止める |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ パッケージのアップデート |