华为交换机的一些配置命令
[S5720S]dhcp enable
[S5720S]ip pool vlan10
[S5720S]network 10.10.1.0 mask 255.255.255.0
[S5720S]gateway-list 10.10.1.1
[S5720S]dns-list 114.114.114.114
[S5720S]excluded-ip-address 10.10.1.220 10.10.1.230
[S5720S]static-bind ip-address 10.10.1.189 mac-address 0000-9900-c9h0 //配置固定的IP地址
三层交换上配置
[S5720S]interface vlanif 10
[S5720S]ip address 10.10.1.1 24
[S5720S]dhcp select global
[S5720S]ip route-static 0.0.0.0 0 10.10.100.1
[S5720S]dis ip pool name 6 all //显示本地址池所有配置
AR路由器上配置
[Router]dns resolve
[Router]dns server 218.2.2.2
[Router]dns proxy enable