H3C三层交换机配置IP
1.直接在物理端口上设置IP地址。
int f1/0/1
port link-mode route #链路模式采用路由
ip add 192.168.10.1 24
ospf network0type p2p #OSPF采用点到点
2.通过逻辑VLAN设置IP地址,先给VLAN设置IP,然后将物理端口配置在VLAN下
int vlan 100
ip add 192.168.10.1 24
ospf network0type p2p
int g1/0/1
port link-mode route
port access vlan 100
H3C交换机的端口、H3C交换机终端设备IP、MAC地址互相查询
1、简单几条命令:
1)、查看MAC地址表
display mac-address
2)、根据MAC查端口
display mac-address <mac-address>
display mac-address | include <key-mac-addr>
3)、根据端口查MAC
display mac-address interface <int-type int-number>
dispaly mac-address | include <key-int-num>
4)、查看ARP缓存表
display arp
5)、根据MAC查IP
display arp | include <key-mac-addr>
6)、根据IP查MAC
display arp <ip-addr>
dipaly arp | include <key-ip-addr>
2、如何查看H3C交换机每个上行端口上接的设备
1)、设备上开启NDP 协议
ndp enable
2)查看上行设备的接口display
H3C核心交换机获取所有IP地址和MAC地址
1、登录交换机

2、显示arp信息
如图所示,所有IP和mac地址都可以显示

3、保存结果
保存结果到文件,arp_20180928.txt

4、下载数据
H3C交换机内置了tftp客户端,可以将数据上传到tftp服务器上

评论前必须登录!
注册