DHCP配置举例
(本文转载自:91ccie.com/jishuwenzhang/sikehuaweipeizhi/heikejishugonglue/2012-09-25/1214.html
3.1 组网需求
客户端PC的网络接口卡,通过插有16口二层交换卡的路由器连接到DHCP服务器所在 的网络。
要求PC只能从合法的DHCP服务器Router1上动态申请到IP地址等相关配置信息,而不 能让网络Network1和Network2中私设的DHCP Server分配地址,或者一旦发生其它服 务器给客户端分配地址的情况,配置管理员需要及时知道。并且可以通过Router2访问 DHCP Server所在的Network1网络。
图 1 同一子网内动态地址分配组网图
3.2 使用版本
Router2、Router3和Router1使用相同的版本。
<Router1>display version
H3C Comware Platform Software
Comware software, Version 5.20, Release 1206, Standard
copyright (c) 2004-2007 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
H3C MSR30-60 uptime is 0 week, 1 day, 23 hours, 21 minutes
Last reboot 2007/07/02 09:30:14
System returned to ROM By Power-up
.
3.3 配置步骤
3.3.1 配置路由器Router1
1. 配置信息
<Router1>display current-configuration
#
version 5.20, Release 1206, Standard
#
sysname Router1
#
domain default enable system
#
VLAN 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 1
network 10.10.0.0 mask 255.255.0.0
gateway-list 10.10.0.1
dns-list 10.10.0.20
domain-name mydomain.com
nbns-list 10.10.1.1 10.10.2.2 10.10.3.3 10.10.4.4
expired day 2 hour 2 minute 30
#
interface Aux0
async mode flow
link-protocol PPP
#
interface Ethernet0/0
port link-mode route
ip address 2.1.1.1 255.255.255.0
#
interface Ethernet0/1
port link-mode route
#
interface NULL0
#
interface LoopBack0
ip address 6.6.0.1 255.255.255.255
#
ip route-static 10.10.0.0 255.255.0.0 2.1.1.2
(本文转载自:91ccie.com/jishuwenzhang/sikehuaweipeizhi/heikejishugonglue/2012-09-25/1214.html
|