??????????????????????

????????????????????????????????ü???????????????ü?????????????з????route?????????????????·????????????????

$ sudo route -n
Kernel IP routing table
Destination     Gateway      Genmask          Flags Metric Ref     Use Iface
10.1.1.0        *             255.255.255.0    U     0      0        0 eth0
default         10.1.1.1     0.0.0.0           UG    100    0        0 eth0

????????????????ù???????????У????default????????????????????????????????10.1.1.1.???????????????route??????????-n??????????????????ЩIP??????????????????????????????????????и???????????????????????????????鶴??????κ????DNS????????????????????????????????????????????????????????????????????????£?????web1?10.1.2.5???????????????????????????????????????????????????????Debian????/etc/network/interfaces·?????????????????/etc/-sysconfig/network_scripts/ifcfg-<interface>·???£????IP????DHCP?????????????????DHCP???????б???????á???Debian???У???????????????????ж???????
$ sudo service networking restart

???????????????????????????????????ж???????

$ sudo service network restart

??????????????????????????????????????????а?????????????

?????????????????????????????????ping???????????????????Ч????
$ ping -c 5 10.1.1.1
PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data.
64 bytes from 10.1.1.1: icmp_seq=1 ttl=64 time=3.13 ms
64 bytes from 10.1.1.1: icmp_seq=2 ttl=64 time=1.43 ms
64 bytes from 10.1.1.1: icmp_seq=3 ttl=64 time=1.79 ms
64 bytes from 10.1.1.1: icmp_seq=5 ttl=64 time=1.50 ms
--- 10.1.1.1 ping statistics ---
5 packets transmitted?? 4 received?? 20% packet loss?? time 4020ms
rtt min/avg/max/mdev = 1.436/1.966/3.132/0.686 ms

???????????????????????????ping??????????????ζ??????10.1.1.0?????????????????????ping???????????????????????????????????????????????????ICMP??????????????????????????????????ICMP??????????????????????????????????????????ping???????μ?????Linux?????????ICMP??б????????????????????????????VLAN??????????????????????????????????????

????DNS????????????

?????????????????????????????????????????????DNS?????????????nslookup??dig????????????????DNS??????????????????????д?????????????????????????????????nslookup???????????????web1????????IP?????

$ nslookup web1
Server: 10.1.1.3
Address: 10.1.1.3#53
Name: web1.example.net
Address: 10.1.2.5

?????????????????е?DNS???????????????????web1????????web1.example.net????????10.1.2.5????????????????????????????IP?????web1???????IP???????????????У????DNS????????????????????????????????????????DNS????????????