arp表与mac表区别

1、arp表是三层设备才有的,如:路由器、主机电脑,arp:地址解析协议,已知目标ip地址来获取目标mac地址。mac表二层设备才有,如交换机。

2、arp表:阐述ip地址与mac地址的对应关系,而mac表:阐述mac地址与接口的对应关系。

3、arp表与mac表的表现形式:

 arp表:

IP ADDRESS      MAC ADDRESS     EXPIRE(M) TYPE        INTERFACE   ×××-INSTANCE

                                          VLAN/CEVLAN PVC                     
------------------------------------------------------------------------------
 
192.168.1.1    5189-4801-d0ce            I -         GE2/0/0     本接口的mac与ip对应
192.168.1.2    3cd5-a382-f47e 13        D-2         GE2/0/0   本接口目标mac与ip对应
192.168.2.1    5189-9201-d0d0            I -         GE2/0/1
192.168.2.2    020f-d2e1-b64a 17        D-2         GE2/0/1
192.168.3.1    5489-9801-c0d1            I -         GE2/0/2
192.168.3.2    88d2-17ab-17c1 20        D-2         GE2/0/2
192.168.4.1    80fa-24d3-1418            I -         GE3/1/2
192.168.5.1    5189-9702-a543            I -         Eth-Trunk1
192.168.5.2    5259-8402-b57b 3         D-2         Eth-Trunk1
192.168.6.1    5419-9302-b543            I -         Vlanif500
192.168.6.2    0012-5de0-1122 16        DF3         GE3/1/0
                                         -
------------------------------------------------------------------------------
Total:11        Dynamic:5       Static:0    Interface:6   
 
mac表:
 
MAC ADDR        VLAN ID    STATE            PORT INDEX             AGING TIME(s)
0011-5d54-ae4a   200       Learned          GigabitEthernet2/1/1    AGING    接口与目标mac对应
020d-e2d1-b24d    12       Learned          GigabitEthernet2/1/1    AGING
021d-0ba2-0eb0    11       Learned          GigabitEthernet2/1/1    AGING
0529-a29c-85c2   300       Learned          GigabitEthernet2/1/3    AGING
0012-5123-349e   13       Learned          GigabitEthernet2/2/1    AGING
5421-9701-cd18 2305       Learned          GigabitEthernet2/2/3    AGING
83fb-0448-4b51 2306       Learned          GigabitEthernet2/2/4    AGING
721d-bdce-3a57 2303       Learned          GigabitEthernet2/3/2    AGING