[ensp自学]5.dhcp select relay中继_dhcp select relay

AR1:创建两个ip pool vlan10和20,g0口ip add 10.0.0.1 24,静态路由两条:ip route-static 192.168.10.0 24 10.0.0.2

ip route-static 192.168.20.0 24 10.0.0.2

s1:创建vlan 10 20,开通trunk口,dhcp server group r1

[Huawei]dhcp server group r1
Info:It's successful to create a DHCP server group.
[Huawei-dhcp-server-group-r1]dhcp-server 10.0.0.1
[Huawei]interface vlan 1
[Huawei-Vlanif1]ip add 10.0.0.2 24
[Huawei-Vlanif1]q

vlanif10:ip add 192.168.10.254 24

dhcp select relay

vlanif20同理。

s2和s3,创建vlan10 20,开启对应trunk端口。

pc1开启dhcp,正常获得ip,pc2和3

[ensp自学]5.dhcp select relay中继_dhcp select relay_02