a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 122|回复: 0

[综合] 思科认证之浅析DHCPserver应用问题详解(2)

[复制链接]
发表于 2012-8-3 20:03:30 | 显示全部楼层 |阅读模式
思科认证之浅析DHCPserver应用问题详解(2); p  S* P) s0 B
第二种情况:利用局域网中的win2000’s DHCP server 假如dhcp server 的ip 192.168.10.1 在DHCP 上划分两个scope.第一个scope 192.168.10.10 -----192.168.10.255 第二个scope 192.16.20.10 ------192.16.20.255.3 A0 B9 T5 w" |/ B6 d. ]
交换机划分VLAN 之后,如何保证DHCP 服务器使用仍然在其它区域起作用。即VLAN10 里的机器取得第一个scope 里的ip: 即从192.168.10.10 -----192.168.10.255 同样,vlan20 取得相应第二个scope 里的IP. 这时在这里指定的helper-address 是什么呢? 才能把vlan199 和vlan200 里的电脑取得相应DHCP scope???
! w, l3 z- B( i第三种情况:假如在一个3550emi 上划分多个DHCP 域。由于它本身就可路由。并能划VLAN。那么这时在这里指定的helper-address 是什么呢?才能把vlan199 和vlan200 里的电脑取得相应DHCP scope???
" u" n! j% b0 c. [  ?1.FW:ip dhcp pool valn x
; S7 O7 s1 E5 D; q. W, i2.network x.x.x.x x.x.x.x
+ u9 k3 b: l4 s+ }# v& I3.default-router x.x.x.x! c  T, a1 n* t7 V5 }9 b7 H8 E. h5 a
其中vlan x 这个pool 是全局pool 的子集
6 q  d' E/ a$ v( `) l: W1.interface vlan x
+ k! L* j  y9 i- b2.ip helper-address x.x.x.x
5 }3 W- a5 Y# W* q2 f# c6 F& ?7 \3.The helper address can be a specific DHCP server address, or it can be the network address2 E6 k* R  ~6 L6 k/ c
4.if other DHCP servers are on the destination network segment. Using the network address enables other servers to respond to DHCP requests.5 Q% I2 V% `7 ^# O) E: |
5.If you have multiple servers, you can configure one helper address for each server.# @" s6 [) P7 {( ]" v* G! {
DHCP relay:& G" U7 Y; k, z- _
http://www.cisco.com/en/US/products.。.00800c6ed2.html! S( _+ S4 n' i
FW: 以一个配置案例来做总结吧:
5 m2 x" u2 s4 L/ _8 Jrouter1 的int fa0/0 上接有dhcp server 。和router2 通过s0/0 连接IP 地址方案如下:
) q2 u8 {; r6 D- j1 H' O! v: g
7 D% y& R0 m7 ^1 e; m& F5 n( h, E9 L
1.route1:
1 K% D" F; B9 Z9 u( o- r2.int fa0/0 10.1.1.254/24 int fa0/1 10.1.2.254/24 int s0/0 192.168.0.1/30 route2:
: R0 i/ v' U; \1 ^2 `3 [3.int fa0/0 10.2.1.254/24 int fa0/1 10.2.2.254/24 int s0/0 192.168.0.2/30 dhcp server adderss:10.1.1.1* z  j! [4 {) [- L
配置:' A0 C5 R$ D; B& t% P
1.router1: ! ip forward-protocol udp0 B( j% |  k2 x: ?9 a
2.! int fa0/0 ip addr 10.1.1.254 255.255.255.0
$ r+ O& t0 {. D/ E3.no shutdown ! int fa0/1 ip addr 10.1.2.254 255.255.255.0, Q8 L; D. w1 K* U8 \
4.ip helper-address 10.1.1.1 no shut !% k. f' U# ~+ O0 p6 x4 e7 w
5.int s0/0 ip addr 192.168.0.1 255.255.255.252 no shut7 \3 |$ r( M! Y6 S3 e" k1 K- s
6.encap ppp2 @$ j+ p% w) U/ ^1 W
7.!8 G+ ^% k7 B: }1 M+ C& c
8.ip route 10.2.0.0 255.255.0.0 192.168.0.2  
  I0 ~6 C* h6 \! n; r* l# G6 E9.! router2: !! |0 J+ b4 H) V' F7 y
10.ip forward-protocol udp ! int fa0/0 ip addr 10.2.1.254 255.255.255.0
! @) I& P1 z9 P5 m0 g5 z/ {11.ip helper-address 10.1.1.1 no shutdown !
; y$ z& O7 u' z% h& j12.int fa0/1 ip addr 10.2.2.254 255.255.255.0 ip helper-address 10.1.1.1 no shut
0 q3 i7 c  `0 ?0 o& M7 j0 _" C13.! int s0/0 ip addr 192.168.0.2 255.255.255.252/ y7 T' G8 e% r/ c& I- D
14.no shut encap ppp ! ip route 10.1.0.0 255.255.0.0 192.168.0.1 ! dhcp server: scope 11: router:10.1.1.254
  C  ^) ~) U* V1 o# Z* X15.scope 12: router:10.1.2.254 scope 21: router:10.2.1.254
9 D$ w& Z% |# E; R16.scope 22:3 n& i7 `$ B( M  b9 a
17.router:10.2.2.2549 T) a: C$ d& s3 X; W
使用VLAN 的情况配置与此相同。只不过把int fa 换成int vlan 而已。你只需要将VLAN 当做是第N 个SCOPE 的ROUTE 选项就行了。在你的交换机上按常规划分好VLAN:
' I, V: C+ F1 D8 P7 t. z假设有:VLAN20 和VLAN30, 你先在交换机上划分好(这步应该都会做), 然后在路由器上设置VLAN 网关(假设是FA0/0.1:192.168.20.254/24 和FA0/0.2:192.168.30.254/24), 在VLAN20 接口和VLAN30 接口下分别设置ip help-address DHCP_SERVER_ADD,IP FORWARD UDP 等,其实DHCP_SERVER 接在哪里无所谓,只要能够ROUTE 通,就行。关键是DHCP_SERVER 上设置SCOPE 时,你分两个,其中一个为192.168.20.0 网段的,它的相应ROUTE 选项为192.168.20.254, 另一个SCOPE 为192.168.30.0 网段的,它的相应ROUTE 选项为192.168.30.254 。上述设置完成后,记得在两个网段都要能和DHCP_SERVER 通。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-6-9 08:36 , Processed in 0.377918 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表