华为交换机配置练习
一、交换配dhcp
[S1]dhcp enable
[S1]ip pool 1
[S1-ip-pool-1] gateway-list 10.1.1.1
[S1-ip-pool-1] network 10.1.1.0 mask 255.255.255.0
[S1-ip-pool-1] excluded-ip-address 10.1.1.2 10.1.1.5
[S1-ip-pool-1] lease day 1 hour 2 minute 3
[S1-ip-pool-1] dns-list 8.8.8.8 221.199.171.105
[S1-ip-pool-1]q
[S1]int vlan1
[S1-Vlanif1]ip address 10.1.1.2 24
[S1-Vlanif1]dhcp select global
[S1-Vlanif1]q