核心交换机清除dhcp重新获取
clear ip dhcp binding *
clear ip dhcp binding +ip 地址 //清除某个ip地址
DHCP排除地址
ip dhcp excluded-address 6.184.228.3 6.184.228.55
查看相邻设备信息
sho lldp neighbors detail
设置本真vlan
switchport trunk native vlan 120
设置路由
ip route 0.0.0.0 0.0.0.0 192.168.200.254
设置DHCP动态自动分配
ip dhcp pool zhuanglaoshi
hardware-address 7081.eb04.2cf8
host 192.168.165.221 255.255.255.0
dns-server 60.191.244.5 60.191.244.2
default-router 192.168.165.254
设置DHCP信任
Ruijie#configure terminal
Ruijie(config)#ip dhcp snooping
连接DHCP服务器的接口配置为可信任口
interface gigabitEthernet 0/49
ip dhcp snooping trust
查状态看对应ip
show ac-c cl | inc 6.184.231
show ip dhcp bin | inc 6.164.231
设置防环路
configure t
rldp enable
interface range g0/1-23
rldp port loop-detect shutdown-port
exit
errdisable recovery int