- 论坛徽章:
- 0
|
设备:凯创 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 |
|