华为ensp DHCP 完整实验,业务vlan配置DHCP,设备管理vlan不配置DHCP。



备注:vlan10和vlan20为业务vlan,vlan30为设备管理vlan。
S5700-LSW1:
ip pool vlan10
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
dns-list 8.8.8.8 144.144.144.144
ip pool vlan20
gateway-list 192.168.20.254
network 192.168.20.0 mask 255.255.255.0
dns-list 8.8.8.8 114.114.114.114
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
dhcp select global
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
dhcp select global
interface Vlanif30
description Device Manager VLAN
ip address 192.168.30.254 255.255.255.0
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30
s3700-LSW2:
interface Vlanif30
ip address 192.168.30.253 255.255.255.0
interface MEth0/0/1
interface Ethernet0/0/1
port link-type access
port default vlan 10
interface Ethernet0/0/2
port link-type access
port default vlan 20
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20 30
interface GigabitEthernet0/0/2
interface NULL0
user-interface con 0
user-interface vty 0 4
authentication-mode aaa
验证结果:DHCP功能正常。PC1 和 PC2能互相ping通,网络互联正常。


