Операционная система Linux




Пример 15.1


[root@sakura root]# ifconfig

[root@sakura root]# ifconfig eth0 inet 192.168.102.125 netmask

255.255.255.0\

broadcast 192.168.102.255

[root@sakura root]# ifconfig lo inet 127.0.0.1 netmask 255.0.0.0\

broadcast 127.255.255.255

[root@sakura root]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:0C:29:56:C1:36

inet addr:192.168.102.125 Bcast:192.168.102.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:34 errors:0 dropped:0 overruns:0 frame:0

TX packets:32 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:6765 (6.6 Kb) TX bytes:8753 (8.5 Kb)

Interrupt:17 Base address:0x1080

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@sakura root]# ping -c1 192.168.102.1

PING 192.168.102.1 (192.168.102.1) 56(84) bytes of data.

64 bytes from 192.168.102.1: icmp_seq=1 ttl=64 time=0.613 ms

--- 192.168.102.1 ping statistics ---

1 packets transmitted, 1 received, 0% packet loss, time 0ms

rtt min/avg/max/mdev = 0.613/0.613/0.613/0.000 ms




Содержание  Назад  Вперед