H3C三層交換機DHCP服務(wù)器配置實例
H3C三層交換機作為DHCP服務(wù)器,那么其中DHCP服務(wù)器要怎么配置呢?下面yjbys小編為大家分享最新交換機作為DHCP服務(wù)器的配置實例,希望對同學(xué)們學(xué)習(xí)DHCP服務(wù)器配置有所幫助!
DHCP采樣UDP鏈接方式,服務(wù)器端口為67,客戶機端口為68.
實驗環(huán)境(H3C ENSP)
一、配置要點
a:在路由器上配置DHCPserver
第一步:(系統(tǒng)視圖)開啟DHCP :DHCP enable
第二步:(進入接口視圖)為與客戶端相連的端口配置ip地址
第三步:(系統(tǒng)視圖)建立DHCP地址池 :ip pool aaa
第四步:(pool模式下)配置network網(wǎng)段、Gateway-list網(wǎng)關(guān)、
dns-list DNS服務(wù)器地址、excluded-ip-address需要排除的ip地址
第五步:進入接口模式,在接口中啟動DHCP動態(tài)分配:dhcp select globle
第六步:將客戶端的dhcp啟動即可
實例:
路由器配置:
#
sysname Huawei
#
dhcp enable
#
ip pool aaa
gateway-list 192.168.1.1
network 192.168.1.0 mask 255.255.255.0
excluded-ip-address 192.168.1.10
dns-list 192.168.1.10 192.168.10.10
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
ip address 192.168.1.1 255.255.255.0
dhcp select global
#
interface Ethernet0/0/1
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
b:在三層交換機中為不同vlan配置不同DHCPserver
第一步:在三層交換機上建好vlan并分配好端口
第二步:(系統(tǒng)視圖)開啟DHCP :DHCP enable
第三步:為每一個vlan都建立一個相應(yīng)的DHCP地址池(命名可以隨意)
第四步:為每一個地址池配置好自己相應(yīng)vlan的.network網(wǎng)段、Gateway-list網(wǎng)關(guān)、
dns-list DNS服務(wù)器地址、excluded-ip-address需要排除的ip地址
第五步:進入每一個vlan接口,先配置好各自的ip地址,然后在啟動DHCP動態(tài)分配:dhcp select globle
第六步:將客戶端的dhcp啟動即可
實例:
三層交換機配置:
[Huawei]display current-configuration
#
sysname Huawei
#
vlan batch 2 to 3
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
dhcp enable
#
diffserv domain default
#
drop-profile default
#
ip pool aaa
network 192.168.1.0 mask 255.255.255.0
excluded-ip-address 192.168.1.1
dns-list 192.168.10.10
#
ip pool bbb
network 192.168.2.0 mask 255.255.255.0
excluded-ip-address 192.168.2.1
dns-list 192.168.10.10
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password simple admin
local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif2
ip address 192.168.1.1 255.255.255.0
dhcp select global
#
interface Vlanif3
ip address 192.168.2.1 255.255.255.0
dhcp select global
#
interface MEth0/0/1
#
interface Ethernet0/0/1
port link-type access
port default vlan 2
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
port link-type access
port default vlan 3
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface Ethernet0/0/8
#
interface Ethernet0/0/9
#
interface Ethernet0/0/10
#
interface Ethernet0/0/11
#
interface Ethernet0/0/12
#
interface Ethernet0/0/13
#
interface Ethernet0/0/14
#
interface Ethernet0/0/15
#
interface Ethernet0/0/16
#
interface Ethernet0/0/17
#
interface Ethernet0/0/18
#
interface Ethernet0/0/19
#
interface Ethernet0/0/20
#
interface Ethernet0/0/21
#
interface Ethernet0/0/22
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
【H3C三層交換機DHCP服務(wù)器配置實例】相關(guān)文章:
H3C配置三層交換機配置實例05-30
思科DHCP服務(wù)器配置實例解析11-15
h3c交換機dhcp配置10-11
三層交換機DHCP中繼配置05-27
H3C配置三層交換機配置10-31
H3C交換機配置實例10-10
H3C交換機配置DHCP的方法05-29
H3C交換機DHCP Relay的配置10-11