青蛙學堂
IT博客网
首页
新随笔
联系
聚合
管理
数据加载中……
关于VLAN中DHCP域的问题
关于
VLAN
中
DHCP
域的问题
我的问题就是如何给每个
VLAN
指定各自的
DHCP
域。比如
vlan 2
对应
dhcp test2 vlan3
对应
dhcp test3.
假如
:
情况
1
: 现在有一个
router
上做了多个
DHCP
域
.
然后在
switch
上划
VLAN
。那么那个交换机上的
ip help-address
的
IP
是什么呢
?
是
router
上哪个口的
IP
呢
?
如:在
router
上的配制:
ip dhcp excluded-address 10.0.199.200 10.0.199.254 ! ip dhcp pool test 1 network 10.0.199.0 255.255.255.0 default-router 10.0.199.1 dns-server 10.0.199.252 lease 0 0 5
ip dhcp pool test 2 network 10.0.200.0 255.255.255.0 default-router 10.0.200.1 dns-server 10.0.199.252 lease 0 0 5
在交换机上:
interface Vlan199 ip address 10.0.199.1 255.255.255.0 ip helper-address ???????????????
int vlan 200
ip address 10.0.200.1 255.255.255.0 ip helper-address ???????????
这时在这里指定的
helper-address
是什么呢
?
才能把
vlan199
和
vlan200
里的电脑取得相
应
DHCP
scope???
第二种情况:利用局域网中的
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.
交换机划分
VLAN
之后,如何保证
DHCP
服务器使用仍然在其它区域起作用。即
VLAN
10
里的机器取得第一个
scope
里的
ip:
即从
192.168.10.10 -----192.168.10.255
同样,
vlan20
取得相应第二个
scope
里的
IP.
这时在这里指定的
helper-address
是什么呢
?
才能把
vlan199
和
vlan200
里的电脑取得相应
DHCP
scope???
第三种情况:假如在一个
3550emi
上划分多个
DHCP
域。由于它本身就可路由。并能划
VLAN
。那么这时在这里指定的
helper-address
是什么呢
?
才能把
vlan199
和
vlan200
里的电脑取得相应
DHCP
scope???
FW:ip dhcp pool valn x
network x.x.x.x x.x.x.x
default-router x.x.x.x
其中
vlan x
这个
pool
是全局
pool
的子集
interface vlan x
ip helper-address x.x.x.x
The helper address can be a specific
DHCP
server address, or it can be the network address
if other
DHCP
servers are on the destination network segment. Using the network address enables other servers to respond to
DHCP
requests.
If you have multiple servers, you can configure one helper address for each server.
DHCP
relay:
http://www.cisco.com/en/US/products...00800c6ed2.html
FW:
以一个配置案例来做总结吧:
router1
的
int fa0/0
上接有
dhcp server
。和
router2
通过
s0/0
连接
IP
地址方案如下:
route1:
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:
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
配置:
router1: ! ip forward-protocol udp
! int fa0/0 ip addr 10.1.1.254 255.255.255.0
no shutdown ! int fa0/1 ip addr 10.1.2.254 255.255.255.0
ip helper-address 10.1.1.1 no shut !
int s0/0 ip addr 192.168.0.1 255.255.255.252 no shut
encap ppp
!
ip route 10.2.0.0 255.255.0.0 192.168.0.2
! router2: !
ip forward-protocol udp ! int fa0/0 ip addr 10.2.1.254 255.255.255.0
ip helper-address 10.1.1.1 no shutdown !
int fa0/1 ip addr 10.2.2.254 255.255.255.0 ip helper-address 10.1.1.1 no shut
! int s0/0 ip addr 192.168.0.2 255.255.255.252
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
scope 12: router:10.1.2.254 scope 21: router:10.2.1.254
scope 22:
router:10.2.2.254
使用
VLAN
的情况配置与此相同。只不过把
int fa
换成
int vlan
而已。
转:
你只需要将
VLAN
当做是第
N
个
SCOPE
的
ROUTE
选项就行了。
在你的交换机上按常规划分好
VLAN
:
假设有:
VLAN
20
和
VLAN
30
, 你先在交换机上划分好
(
这步应该都会做
)
, 然后
在路由器上设置
VLAN
网关
(
假设是
FA0/0.1
:
192.168.20.254/24
和
FA0/0.2
:
192.168.30.254/24)
, 在
VLAN
20
接口和
VLAN
30
接口下分别设置
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
通。
posted on 2006-02-11 11:00
青蛙學堂
阅读(81)
评论(0)
编辑
收藏
引用
所属分类:
硬件百科
标题
姓名
主页
验证码
*
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)
Remember Me?
登录
使用高级评论
新用户注册
返回页首
恢复上次提交
[使用Ctrl+Enter键可以直接提交]
相关链接:
相关文章:
ROUTE----DHCP
switch--trunck
switch命令大全
cisco-command
vlan-dhcp
AUTO RESET
AD
通信端口基础常识大全
route command
交换机VLAN
博客园
BlogJava
博客生活
IT博客网
C++博客
PHP博客
博客园社区
管理博客
教师博客
天文博客
汽车博客
足球博客
股票博客
电子技术博客
<
2006年9月
>
日
一
二
三
四
五
六
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
4
5
6
7
统计
随笔 - 193
文章 - 1
评论 - 96
引用 - 0
常用链接
我的随笔
我的评论
我参与的随笔
留言簿
(4)
给我留言
查看公开留言
查看私人留言
随笔分类
哈哈資料庫(1)
(rss)
數據庫(25)
(rss)
百寶箱(4)
(rss)
硬件百科(44)
(rss)
經濟論壇(15)
(rss)
網頁(5)
(rss)
軟件布袋(57)
(rss)
酷站收藏(3)
(rss)
雜談怪論(2)
(rss)
随笔档案
2007年11月 (2)
2007年10月 (5)
2007年8月 (1)
2007年7月 (7)
2007年4月 (1)
2007年3月 (1)
2006年12月 (7)
2006年11月 (5)
2006年9月 (12)
2006年8月 (5)
2006年7月 (1)
2006年6月 (5)
2006年5月 (11)
2006年4月 (7)
2006年3月 (3)
2006年2月 (33)
2006年1月 (33)
2005年12月 (7)
2005年11月 (47)
文章分类
廢紙屋
(rss)
殘文簍
(rss)
無心小筑
(rss)
青蛙議堂
(rss)
收藏夹
無量洞
(rss)
百納川
(rss)
BBS
大富翁
IT
CSDN
外語
America
引擎
百度
搜索
最新评论
1. re: DBCHART
请教,怎样把数据库中多个同类表格中的三种属性的量通过三个dbchart显示曲线呢?
--请教
2. re: TTimer : Delphi编写获取和设置系统时间程序
你好,你的方法很好,但是在设置时间的时候,还需要设置控件DateTimePicker的事件吗?我用你介绍的方法程序运行不了,我想我是某些步骤落下了,请指教,很急! 谢谢!
--yangguiqiu
3. euzftekw
评论内容较长,点击标题查看
--euzftekw
4. eyuespun
评论内容较长,点击标题查看
--eyuespun
5. re: Access Violation at address 0048A36D in module 'sww063-2.exe',Read of Address D13BD123.
这是个什么问题呢!麻烦帮忙解决一下,急!
--黄鹤
阅读排行榜
1. 双网卡故障解决方法(2776)
2. 綁定網卡(2261)
3. TTimer : Delphi编写获取和设置系统时间程序(1634)
4. 如何访问局域网(1618)
5. BAT命令(1593)
评论排行榜
1. vlan-dhcp(11)
2. 木馬(9)
3. 双网卡故障解决方法(8)
4. 筆記(6)
5. Edit Excel 2(5)