華爲三層交換機做DHCP Server






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

發佈了60 篇原創文章 · 獲贊 14 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章