免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1208 | 回复: 0
打印 上一主题 下一主题

cisco中DHCP配置案例 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-30 15:34 |只看该作者 |倒序浏览

设备:凯创 smart switch router 2000(xp2000,12个eth)
           思科  cisco2600(一个eth0/0)
最初配置:cisco2600作为dhcp,地址为10.0.2.2。xp2000 划3个vlan,地址分别是10.0.2.1   10.0.3.1    10.0.4.1。在凯创上开启ipaddress-helper。
结果:只能在10.0.2.0这个网段获得地址。
改进配置:cisco2600通过dot1q封装,同时与xp2000的三个vlan通信。xp2000上,将同cisco2600直连的端口配制成trunk口。
下面是cisco配置文件:
cisco2600#show run
Building configuration...
Current configuration : 1299 bytes
!
version 12.1
no service single-slot-reload-enable
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname cisco2600
!
boot system flash cisco
!
!
!
!
!
clock timezone china 16 24
ip subnet-zero
!
ip dhcp pool global
   network 10.0.0.0 255.255.0.0
   dns-server 10.7.0.247
   lease 90
!
ip dhcp pool vlan1
   network 10.0.2.0 255.255.255.0
   default-router 10.0.2.1
!
ip dhcp pool vlan2
   network 10.0.3.0 255.255.255.0
   default-router 10.0.3.1
!
ip dhcp pool vlan3
   network 10.0.4.0 255.255.255.0
   default-router 10.0.4.1
!
!
!
!
!
!
interface Ethernet0/0
no ip address
!
interface Ethernet0/0.1
encapsulation dot1Q 2
ip address 10.0.2.2 255.255.255.0
!
interface Ethernet0/0.2
encapsulation dot1Q 3
ip address 10.0.3.2 255.255.255.0
!
interface Ethernet0/0.3
encapsulation dot1Q 4
ip address 10.0.4.2 255.255.255.0
!
interface Serial0/0
ip address 10.10.0.2 255.255.255.0
no ip mroute-cache
no fair-queue
!
interface Virtual-Template1
no ip address
!
interface Virtual-TokenRing33
no ip address
ring-speed 16
!
ip classless
ip route 10.7.8.0 255.255.248.0 10.7.0.1
ip route 192.168.0.0 255.255.255.0 10.7.0.1
no ip http server
!
!
line con 0
password 123
login
line aux 0
password 123
login
line vty 0 4
login
!
end


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4779/showart_453534.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP