Cisco之show ip arp 与 show mac-address-table

show ip arp命令可以得到IP地址与MAC地址的对应关系,show mac-address-table可以得到MAC地址与端口的对应关系,根据这两组对应关系,我们就可以得到IP地址与端口的对应关系。
 
命令总结:
1.静态绑定arp表项后,无老化时间
R2(config)# arp 192.168.1.2  cc01.0614.0000  arpa
 
2.show ip arp        ---查看arp表
R2# show ip arp 
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  192.168.1.1             1   cc00.0614.0000  ARPA   FastEthernet0/0
Internet  192.168.1.2             -   cc01.0614.0000  ARPA  
Internet  192.168.1.3             0   cc02.0614.0000  ARPA   FastEthernet0/0
Internet  192.168.1.4             1   cc03.0614.0000  ARPA   FastEthernet0/0
R2#
 
3. show mac-address-table     ---查看mac-address-table,适用于二层接口
 
4.修改arp老化时间
R2(config)#int f0/0
R2(config-if)# arp timeout ?
  <0-2147483>  Seconds
 
5.静态绑定mac-address-table
R1(config)# mac-address-table static cc01.0614.0000  interface fastEthernet 1/2  vlan 2
 
6.清除arp缓存,刷新arp表
R1# clear arp-cache ?
  A.B.C.D    IP address
  interface  Clear the entire ARP cache on the interface
  vrf        Clear entries for a VPN Routing/Forwarding instance
  <cr>
R1# clear arp-cache interface fastEthernet 1/2
R1#
 
7.no mac-address-table static 后需要刷新mac-address-table
  clear mac-address-table

From:http://www.cisco-club.com.cn/space-129343-do-blog-id-5263.html
<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script>
阅读(1186) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值