当前位置:主页 > 路由器设置 > 华为路由器 >

跨广域网路由器后dhcp中继的配置方法

作者:jida2010 发布时间:2015-01-12 阅读: 转至微博:

首先你分支和总部之间路由没问题。

配饰思路如下:

1、在S9303上创建DHCP服务器组并为服务器组添加DHCP服务器IP地址。

2、在接口VLANIF下使能DHCP中继功能。

3、为接口VLANIF绑定创建的DHCP服务器组,指定中继指向的公司的主服务器。

参考配置命令如下:

创建DHCP服务器组并为服务器组添加DHCP服务器。
# 创建DHCP服务器组。
<Quidway> system-view
[Quidway] dhcp server group dhcpgroup1


# 为DHCP服务器组添加DHCP服务器。
[Quidway-dhcp-server-group-dhcpgroup1] dhcp-server 100.10.10.1
[Quidway-dhcp-server-group-dhcpgroup1] quit


在VLANIF接口下使能DHCP中继功能。
# 创建VLAN并将GE 1/0/1接口加入到VLAN中。
[Quidway] vlan 100
[Quidway-Vlan100] quit
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] port link-type trunk
[Quidway-GigabitEthernet1/0/1] port trunk allow-pass vlan 100
[Quidway-GigabitEthernet1/0/1] quit


# 使能全局DHCP功能,并使能VLANIF接口下DHCP中继功能。
[Quidway] dhcp enable
[Quidway] interface vlanif 100
[Quidway-Vlanif100] dhcp select relay 
[Quidway-Vlanif100] quit


为VLANIF接口绑定指定的DHCP服务器组。
# 为VLANIF接口配置IP地址。
[Quidway] interface vlanif 100
[Quidway-Vlanif100] ip address 20.20.20.1 24


# 为VLANIF接口指定DHCP服务器。
[Quidway-Vlanif100] dhcp relay server-select dhcpgroup1
[Quidway-Vlanif100] quit

本文由路由器网www.luyouqiwang.net站长编辑整理,转载请注明出处。