华为三层交换机做DHCP Server

华为三层交换机做DHCP Server_第1张图片





vlan11:11.1.1.0

vlan12:12.1.1.0



L2(两台)
system-view

interface e0/0/1
 port link-type access
 undo shutdown

interface e0/0/2
 port link-type access
 undo shutdown
 quit

vlan 11
 port e0/0/1
vlan 12
 port e0/0/2
 quit

interface g0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
 undo shutdown
 quit

L3
system-view

port-group group-member g0/0/1 to g0/0/2
 port link-type trunk
 port trunk allow-pass vlan all
 undo shutdown
 quit

vlan 11
vlan 12
 quit

interface Vlanif 11
 ip add 11.1.1.1 255.255.255.0
 quit

interface Vlanif 12
 ip add 12.1.1.1 255.255.255.0
 quit



dhcp enable

ip pool vlan11
 network 11.1.1.0 mask 255.255.255.0
 gateway-list 11.1.1.1
 dns-list 11.1.1.1
 lease day 1

ip pool vlan12
 network 12.1.1.0 mask 255.255.255.0
 gateway-list 12.1.1.1
 dns-list 12.1.1.1
 lease day 1

interface Vlanif 11
 dhcp select global
 quit

interface Vlanif 12
 dhcp select global
 quit

你可能感兴趣的:(HUAWEI,R&S)