SW1 DHCP SERVER配置:
dhcp server ip -pool 0
network 192.180.8.0 mask 255.255.0
vlan 2 :
interface vlan-interface :ip address 192.168.5.1 255.255.255.0
interface gigabitethernet 1/0/1:port access vlan 2
路由:ip route-static 192.180.1.0 255.255.255.0 192.168.5.2
SW2 DHCP RELAY配置:
<H3C>system-view
System View: return to User View with Ctrl Z.
[H3C]dhcp relay server-group 1 ip 192.168.5.1
[H3C]vlan 3
[H3C-vlan3]interface vlan-interface 3
[H3C-Vlan-interface3]ip address 192.180.1.1 255.25
[H3C-Vlan-interface3]dhcp select relay
[H3C-Vlan-interface3]dhcp relay server-select 1
[H3C-Vlan-interface3]quit
[H3C]vlan 2
[H3C-vlan2]interface vlan-interface 2
[H3C-Vlan-interface2]ip address 192.168.5.2 255.255.255.0
[H3C-Vlan-interface2]quit
[H3C]interface gigabitethernet 1/0/1
[H3C-GigabitEthernet1/0/1]port access vlan 2
[H3C-GigabitEthernet1/0/1]quit
[H3C-Vlan-interface3]vlan 3
[H3C-vlan3]port gigabitethernet 1/0/3 to gigabitethernet 1/0/4
[H3C-vlan3]interface vlan-interface 3
[H3C-Vlan-interface3]ip address dhcp-alloc
[H3C-Vlan-interface3]quit
以上为配置
暂无评论