s5500交换机下面一条网线连接了一台D-link傻瓜交换机,d-link连接了很多网线,怎么在s5500上查看d-link上用的ip和mac地址。
(0)
最佳答案
如果S5500上有IP地址,display arp 才能看到对应网段的IP地址。如果S5560上没有IP地址,display arp是看不到任何IP地址的,只能通过display mac-address 来查看已经连接的终端mac地址。
如果想查看下联终端的IP地址,先在交换机上配置和终端同网段的一个IP地址,再display arp。
(0)
先在交换机上配置和终端同网段的一个IP地址 什么意思? 上层的s5500已经配置了ip地址啊。
# version 5.20, Release 2202 # sysname ZhengFuNW_XZFWZX # irf mac-address persistent timer irf auto-update enable undo irf link-delay # domain default enable system # telnet server enable # undo ip ttl-expires # vlan 1 # vlan 75 # vlan 91 to 92 # vlan 102 # vlan 202 # vlan 205 # vlan 210 # vlan 601 # vlan 899 # vlan 1001 # radius scheme system server-type extended primary authentication 127.0.0.1 1645 primary accounting 127.0.0.1 1646 user-name-format without-domain # domain system access-limit disable state active idle-cut disable self-service-url disable # user-group system # local-user admin password simple 8109899 authorization-attribute level 3 service-type telnet local-user huawei password simple 8109899 authorization-attribute level 3 service-type telnet # interface NULL0 # interface Vlan-interface1 ip address 192.168.168.1 255.255.255.0 # interface Vlan-interface91 # interface Vlan-interface92 # interface Vlan-interface102 ip address 10.16.71.200 255.255.255.0 # interface Vlan-interface202 # interface Vlan-interface205 # interface Vlan-interface210 # interface Vlan-interface899 # interface Vlan-interface1001 # interface GigabitEthernet1/0/1 port link-type trunk port trunk permit vlan all # interface GigabitEthernet1/0/2 port access vlan 92 # interface GigabitEthernet1/0/3 port access vlan 92 # interface GigabitEthernet1/0/4 port link-type trunk port trunk permit vlan all # interface GigabitEthernet1/0/5 # interface GigabitEthernet1/0/6 # interface GigabitEthernet1/0/7 # interface GigabitEthernet1/0/8 # # interface GigabitEthernet1/0/9 # interface GigabitEthernet1/0/10 # interface GigabitEthernet1/0/11 # interface GigabitEthernet1/0/12 # interface GigabitEthernet1/0/13 port access vlan 75 # interface GigabitEthernet1/0/14 # interface GigabitEthernet1/0/15 # interface GigabitEthernet1/0/16 # interface GigabitEthernet1/0/17 shutdown # interface GigabitEthernet1/0/18 shutdown # interface GigabitEthernet1/0/19 shutdown # interface GigabitEthernet1/0/20 shutdown # interface GigabitEthernet1/0/21 shutdown # interface GigabitEthernet1/0/22 shutdown # interface GigabitEthernet1/0/23 shutdown # interface GigabitEthernet1/0/24 shutdown # interface GigabitEthernet1/0/25 port access vlan 92 # interface GigabitEthernet1/0/26 port access vlan 92 # interface GigabitEthernet1/0/27 port access vlan 210 speed 100 duplex full # interface GigabitEthernet1/0/28 port access vlan 210 # interface GigabitEthernet1/0/29 port access vlan 210 # interface GigabitEthernet1/0/30 port access vlan 210 speed 100 # interface GigabitEthernet1/0/31 port access vlan 210 # interface GigabitEthernet1/0/32 port access vlan 210 # snmp-agent snmp-agent local-engineid 800063A2033822D6719536 snmp-agent community read adminread snmp-agent community write adminwrite snmp-agent sys-info version all # user-interface aux 0 8 user-interface vty 0 4 authentication-mode scheme # return
interface Vlan-interface1 ip address 192.168.168.1 255.255.255.0 interface Vlan-interface102 ip address 10.16.71.200 255.255.255.0 看了你的配置,这里有两个VLAN接口地址,那么display arp应该是可以看到这两个网段的终端IP地址。其他网段的终端IP地址都看不到。
请问 interface GigabitEthernet1/0/28 port access vlan 210 # interface GigabitEthernet1/0/29 port access vlan 210 # interface GigabitEthernet1/0/30 port access vlan 210 speed 100 # 这三个网口都在用,为什么 dis ip int b的时候 不显示vlan下的ip地址呢 <ZhengFuNW_XZFWZX>dis ip int b *down: administratively down (s): spoofing Interface Physical Protocol IP Address Description Vlan-interface1 up up 192.168.168.1 Vlan-inte... Vlan-interface91 up down unassigned Vlan-inte... Vlan-interface92 up down unassigned Vlan-inte... Vlan-interface102 up up 10.16.71.200 Vlan-inte... Vlan-interface202 up down unassigned Vlan-inte... Vlan-interface205 up down unassigned Vlan-inte... Vlan-interface210 up down unassigned Vlan-inte... Vlan-interface899 up down unassigned Vlan-inte... Vlan-interface1001 up down unassigned Vlan-inte...
1.这三个接口是二层口 2.int vlan 210 是vlan接口,是三层虚接口,为什么没有IP地址,因为你没配置IP地址。
是作为网关还是纯二层,网关的话用display arp,二层用dis mac
(0)
下层的d-link有很多口在用
dis arp 只显示了2条 但是 交换机上有很多网在用
下层的d-link有很多口在用
先在交换机上配置和终端同网段的一个IP地址 什么意思? 上层的s5500已经配置了ip地址啊。
(0)
假设某个终端IP地址是192.168.0.1/24,S5500上设置了该网段的网关192.168.0.254/24,那么在S5500上display arp即可看到终端的IP地址。但是如果终端IP地址是192.168.0.1/24,但是在S5500上设置了另一个网段的网关192.168.1.254/24,display arp是看不到这个终端的IP地址的。
假设某个终端IP地址是192.168.0.1/24,S5500上设置了该网段的网关192.168.0.254/24,那么在S5500上display arp即可看到终端的IP地址。但是如果终端IP地址是192.168.0.1/24,但是在S5500上设置了另一个网段的网关192.168.1.254/24,display arp是看不到这个终端的IP地址的。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
那请问,要看这三个接口的ip 要怎么看呢?