红联Linux门户
Linux帮助

arp问题

发布时间:2010-11-23 18:07:41来源:红联作者:ubuntu-9.10
yq@yq-laptop:~$ arp -a
? (192.168.1.150) 位于 00:24:21:db:5a:93 [ether] 在 eth0
? (192.168.1.250) 位于 00:1f:d0:3d:23:e7 [ether] 在 eth0
? (192.168.1.1) 位于 00:25:86:72:24:54 [ether] 在 eth0
yq@yq-laptop:~$ sudo arp -d 192.168.1.250
yq@yq-laptop:~$ sudo arp -d 192.168.1.150
yq@yq-laptop:~$ sudo arp -s 192.168.1.150 00:1f:d0:3d:23:e7
yq@yq-laptop:~$ arp -a
? (192.168.1.150) 位于 00:1f:d0:3d:23:e7 [ether] PERM 在 eth0
? (192.168.1.250) 位于 在 eth0
? (192.168.1.1) 位于 00:25:86:72:24:54 [ether] 在 eth0
yq@yq-laptop:~$ ping 192.168.1.150
PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data.ping不通
按照我到理解,在最后ping192.168.1.150的时候应该会连接到192.168.1.250上,应该所能ping通到,求达人解释下
文章评论

共有 1 条评论

  1. ubuntu-9.10 于 2010-11-23 20:03:55发表:

    yq@yq-laptop:~$ arp -a
    ? (192.168.1.150) 位于 00:24:21:db:5a:93 [ether] 在 eth0
    ? (192.168.1.250) 位于 00:1f:d0:3d:23:e7 [ether] 在 eth0
    ? (192.168.1.1) 位于 00:25:86:72:24:54 [ether] 在 eth0
    yq@yq-laptop:~$ sudo arp -d 192.168.1.250
    yq@yq-laptop:~$ sudo arp -d 192.168.1.150
    yq@yq-laptop:~$ sudo arp -s 192.168.1.150 00:1f:d0:3d:23:e7
    yq@yq-laptop:~$ arp -a
    ? (192.168.1.150) 位于 00:1f:d0:3d:23:e7 [ether] PERM 在 eth0
    ? (192.168.1.250) 位于 在 eth0
    ? (192.168.1.1) 位于 00:25:86:72:24:54 [ether] 在 eth0
    yq@yq-laptop:~$ ping 192.168.1.150
    PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data.ping不通
    按照我到理解,在最后ping192.168.1.150的时候应该会连接到192.168.1.250上,应该所能ping通到,求达人解释下