锐捷网管交换机DHCP静态绑定地址配置举例

一、 组网需求
如图所示,Host作为DHCP客户端,从DHCP服务器Device A获取静态绑定的IP地址。Host的MAC地址为:0050.56b0.2f50。
静态绑定地址配置举例

二、 配置要点
配置Device A:
●配置接口的IP地址。
● 开启DHCP Server服务,配置地址池参数。

三、 配置步骤
(1) 配置Device A。
# 配置接口的IP地址。
DeviceA> enable
DeviceA # configure terminal
DeviceA(config)# interface gigabitethernet 0/1
DeviceA(config-if-GigabitEthernet 0/1)# ip address 192.1.1.1 255.255.255.0
DeviceA(config-if-GigabitEthernet 0/1)# exit

# 开启DHCP Server服务。
DeviceA(config)# service dhcp

# 创建地址池pool1。
DeviceA(config)# ip dhcp pool pool1

# 配置采用静态绑定方式为客户端Host分配IP地址。
DeviceA(dhcp-config)# host 192.1.1.99 255.255.255.0
DeviceA(dhcp-config)# hardware-address 0050.56b0.2f50

(2) 配置Host。
# 配置Host启动DHCP获取地址的功能。

四、验证配置结果
# Host申请到IP地址192.1.1.99/24。

五、配置文件
Device A的配置文件
hostname DeviceA
!
interface gigabitethernet 0/1
ip address 192.1.1.1 255.255.255.0
!
service dhcp

!
ip dhcp pool pool1
host 192.1.1.99 255.255.255.0
hardware-address 0050.56b0.2f50
!

六、 常见错误
● 未配置地址池。
● 未开启DHCP Server服务。

ICP备案号:晋ICP备18007549号-1
站长微信:13613567205