思路是在核心上面找映射表及接口,然后通过物理地址找对应的接入交换机及终端所在的端口,是这样吗(但以下查到的mac信息是ip地址所对应的终端mac地址,通过这个mac地址也查不到,最后想通过接口找下去)
# 连上核心,查询ip 192.168.135.6的arp映射
<HX_S12510>dis arp 192.168.135.6
Type: S-Static D-Dynamic O-Openflow M-Multiport I-Invalid
IP address MAC address VLAN Interface Aging Type
192.168.135.6 88ae-1d24-a28c 135 BAGG101 20 D
# 然后用过dis mac,查到的还是一样无可用的信息,
<HX_S12510>dis mac-address 88ae-1d24-a28c
MAC Address VLAN ID State Port/NickName Aging
88ae-1d24-a28c 135 Learned BAGG101 Y
# 已知终端的下游接口,想通过聚合接口直接查下游的状态,
<HX_S12510>dis link-aggregation verbose Bridge-Aggregation 101
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregate Interface: Bridge-Aggregation101
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, 3c8c-400e-1c14
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
XGE1/4/0/1 S 32768 51 {ACDEF}
XGE2/4/0/1 S 32768 51 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
XGE1/4/0/1 136 32768 1 0x8000, 3ce5-a688-4a00 {ACDEF}
XGE2/4/0/1 194 32768 1 0x8000, 3ce5-a688-4a00 {ACDEF}
然后就卡在这里了。。。不知道本来很简单的事情,变得复杂化了,求大佬们指教一二
(0)
最佳答案
#通过dis lldp nei list查询到的
<HX_S12510>dis lldp neighbor-information list
CH3C9512E_A XGE1/4/0/1 3ce5-a688-4a00 Ten-GigabitEthernet1/0/0/3
CH3C9512E_A XGE2/4/0/1 3ce5-a688-4a00 Ten-GigabitEthernet2/0/0/3
#然后查询地址表 得到以下信息
<HX_S12510>dis mac-address 3ce5-a688-4a00
MAC Address VLAN ID State Port/NickName Aging
3ce5-a688-4a00 2 Learned BAGG101 Y
3ce5-a688-4a00 10 Learned BAGG101 Y
3ce5-a688-4a00 20 Learned BAGG101 Y
3ce5-a688-4a00 25 Learned BAGG101 Y
3ce5-a688-4a00 45 Learned BAGG101 Y
3ce5-a688-4a00 51 Learned BAGG101 Y
3ce5-a688-4a00 80 Learned BAGG101 Y
3ce5-a688-4a00 90 Learned BAGG101 Y
3ce5-a688-4a00 128 Learned BAGG101 Y
3ce5-a688-4a00 130 Learned BAGG101 Y
3ce5-a688-4a00 131 Learned BAGG101 Y
3ce5-a688-4a00 133 Learned BAGG101 Y
3ce5-a688-4a00 135 Learned BAGG101 Y
3ce5-a688-4a00 136 Learned BAGG101 Y
3ce5-a688-4a00 202 Learned BAGG101 Y
3ce5-a688-4a00 252 Learned BAGG101 Y
3ce5-a688-4a00 253 Learned BAGG101 Y
3ce5-a688-4a00 254 Learned BAGG101 Y
3ce5-a688-4a00 1001 Learned BAGG101 Y
3ce5-a688-4a00 1005 Learned BAGG101 Y
3ce5-a688-4a00 1015 Learned BAGG101 Y
3ce5-a688-4a00 1111 Learned BAGG101 Y
3ce5-a688-4a00 1115 Learned BAGG101 Y
3ce5-a688-4a00 1125 Learned BAGG101 Y
3ce5-a688-4a00 2000 Learned BAGG101 Y
(0)
您好,请知:
如果对端设备开启了lldp功能,可以在本端使用如下命令查看LLDP邻居信息:
dis lldp nei list
知道对端设备信息后,登陆到对端设备上继续dis mac-address查询MAC学习上来的信息。
(1)
通过dis lldp nei list查询到的 CH3C9512E_A XGE1/4/0/1 3ce5-a688-4a00 Ten-GigabitEthernet1/0/0/3 CH3C9512E_A XGE2/4/0/1 3ce5-a688-4a00 Ten-GigabitEthernet2/0/0/3 然后dis mac 下面得到一堆与此mac关联的信息 dis mac-address 3ce5-a688-4a00 MAC Address VLAN ID State Port/NickName Aging 3ce5-a688-4a00 2 Learned BAGG101 Y 3ce5-a688-4a00 10 Learned BAGG101 Y 3ce5-a688-4a00 20 Learned BAGG101 Y 3ce5-a688-4a00 25 Learned BAGG101 Y 3ce5-a688-4a00 45 Learned BAGG101 Y 3ce5-a688-4a00 51 Learned BAGG101 Y 3ce5-a688-4a00 80 Learned BAGG101 Y 3ce5-a688-4a00 90 Learned BAGG101 Y 3ce5-a688-4a00 128 Learned BAGG101 Y 3ce5-a688-4a00 130 Learned BAGG101 Y 3ce5-a688-4a00 131 Learned BAGG101 Y 3ce5-a688-4a00 133 Learned BAGG101 Y 3ce5-a688-4a00 135 Learned BAGG101 Y 3ce5-a688-4a00 136 Learned BAGG101 Y 3ce5-a688-4a00 202 Learned BAGG101 Y 3ce5-a688-4a00 252 Learned BAGG101 Y 3ce5-a688-4a00 253 Learned BAGG101 Y 3ce5-a688-4a00 254 Learned BAGG101 Y 3ce5-a688-4a00 1001 Learned BAGG101 Y 3ce5-a688-4a00 1005 Learned BAGG101 Y 3ce5-a688-4a00 1015 Learned BAGG101 Y 3ce5-a688-4a00 1111 Learned BAGG101 Y 3ce5-a688-4a00 1115 Learned BAGG101 Y 3ce5-a688-4a00 1125 Learned BAGG101 Y 3ce5-a688-4a00 2000 Learned BAGG101 Y
麻烦看下,我已经回复到楼下了,查询mac是得到关联的所有信息
这个是对端的设备名称,可以去到这台设备上dis mac-address信息
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明