华为S5700配置2--VLAN

在上一篇http://ciscowu.blog.51cto.com/2602251/1122728配置了VLAN的基础上,在本篇中对相应VLAN设置DHCP

1. 启动DHCP服务。
2. <Quidway> system-view
[Quidway] dhcp enable
3. 创建地址池并配置相关属性。
# 配置IP地址池1的属性(地址池范围、DNS地址、出口网关和地址池租期)。
[Quidway] ip pool 1
[Quidway-ip-pool-1] network 192.168.10.0 mask 255.255.255.0
[Quidway-ip-pool-1] dns-list 61.177.7.1
[Quidway-ip-pool-1] gateway-list 192.168.10.1
[Quidway-ip-pool-1] excluded-ip-address 192.168.10.254
[Quidway-ip-pool-1] lease day 10
[Quidway-ip-pool-1] quit
# 配置IP地址池2的属性(地址池范围、DNS地址、出口网关和地址池租期)
[Quidway] ip pool 2
[Quidway-ip-pool-2] network 192.168.30.0 mask 255.255.255.0
[Quidway-ip-pool-2] dns-list 8.8.8.8
[Quidway-ip-pool-2] gateway-list 192.168.30.1
[Quidway-ip-pool-2] lease day 5
[Quidway-ip-pool-2] quit

# 配置IP地址池3的属性(地址池范围、DNS地址、出口网关和地址池租期)
[Quidway] ip pool 3
[Quidway-ip-pool-3] network 192.168.50.0 mask 255.255.255.0
[Quidway-ip-pool-3] dns-list 8.8.8.8
[Quidway-ip-pool-3] gateway-list 192.168.50.1
[Quidway-ip-pool-3] lease day 5
[Quidway-ip-pool-3] quit
# 配置VLANIF10接口下的客户端从全局地址池中获取IP地址。
[Quidway] interface vlanif 10
[Quidway-Vlanif10] ip address 192.168.10.1 255.255.255.0
[Quidway-Vlanif10] dhcp select global
[Quidway-Vlanif10] quit
# 配置VLANIF30接口下的客户端从全局地址池中获取IP地址。
[Quidway] interface vlanif 30
[Quidway-Vlanif30] ip address 192.168.30.1 255.255.255.0
[Quidway-Vlanif30] dhcp select global
[Quidway-Vlanif30] quit
# 配置VLANIF50接口下的客户端从全局地址池中获取IP地址。
[Quidway] interface vlanif 50
[Quidway-Vlanif50] ip address 192.168.50.1 255.255.255.0
[Quidway-Vlanif50] dhcp select global
[Quidway-Vlanif50] quit

你可能感兴趣的:(华为,DHCP,S5700)