- 论坛徽章:
- 0
|
本实验是在dynamips上做的,2台7200通过帧中继交换机互联,各自的F0/0连接VPC,2台VPC分别配置同一网段的地址,配置如下:
============网络配置============
[localhost]
[[7200]]
image = D:\IOS\C7200-IP.BIN
npe = npe-400
ram = 160
[[ROUTER R1]]
s1/0 = F1 1
f0/0 = NIO_udp:22222:127.0.0.1:33333
#udp 22222为 VPCS的rport,33333为lport
[[router R2]]
s1/0 = F1 2
f0/0 = NIO_udp:22220:127.0.0.1:33330
#udp 22220为 VPCS的rport,33330为lport
[[FRSW F1]]
1:102 = 2:201
# Tell the FRSW to switch from port 1, DLCI 102 to port 2, DLCI 201.
============虚拟PC配置===================
1
ip 192.168.1.11 192.168.1.1 24
conf rport 22222
conf lport 33333
2
ip 192.168.1.12 192.168.1.1 24
conf rport 22220
conf lport 33330
1
============路由器1配置========================
R1#sh run
Building configuration...
Current configuration : 1700 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
no ip routing
no ip cef
!
!
!
username admin privilege 15 secret 5 $1$CIFx$wDVjvrk5AKc6Owh28l5cq/
!
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
no ip route-cache
duplex auto
speed auto
bridge-group 1
!
interface FastEthernet0/1
no ip address
no ip route-cache
shutdown
duplex auto
speed auto
!
interface Serial1/0
no ip address
encapsulation frame-relay
no ip route-cache
serial restart-delay 0
bridge-group 1
!
interface Serial1/0.102 point-to-point
ip address 192.168.2.1 255.255.255.0
no ip route-cache
frame-relay interface-dlci 102
bridge-group 1
!
interface Serial1/1
no ip address
no ip route-cache
shutdown
serial restart-delay 0
.。。。。。。
interface Serial1/7
no ip address
no ip route-cache
shutdown
serial restart-delay 0
!
no ip http server
no ip http secure-server
!
!
logging alarm informational
!
!
!
control-plane
!
bridge 1 protocol ieee
!
!
!
gatekeeper
shutdown
!
!
line con 0
stopbits 1
line aux 0
line vty 0 4
login local
!
!
end
==================路由器2配置==========================
R2#sh run
Building configuration...
Current configuration : 1808 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
no ip routing
no ip cef
!
!
username admin privilege 15 secret 5 $1$5DOh$EAxMq7vCZPM6En1izX.id1
!
!
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
no ip route-cache
duplex auto
speed auto
bridge-group 1
bridge-group 1 spanning-disabled
!
interface FastEthernet0/1
no ip address
no ip route-cache
shutdown
duplex auto
speed auto
!
interface Serial1/0
no ip address
encapsulation frame-relay
no ip route-cache
serial restart-delay 0
frame-relay lmi-type ansi
bridge-group 1
bridge-group 1 spanning-disabled
!
interface Serial1/0.201 point-to-point
ip address 192.168.2.2 255.255.255.252
no ip route-cache
frame-relay interface-dlci 201
bridge-group 1
bridge-group 1 spanning-disabled
!
interface Serial1/1
no ip address
no ip route-cache
shutdown
serial restart-delay 0
。。。。。。
interface Serial1/7
no ip address
no ip route-cache
shutdown
serial restart-delay 0
!
no ip http server
no ip http secure-server
!
!
logging alarm informational
!
!
!
control-plane
!
!
!
gatekeeper
shutdown
!
!
line con 0
stopbits 1
line aux 0
line vty 0 4
login local
!
!
end
2台路由器输入一样的配置命令但是出来的配置不一样,第2台自动生成了几条配置,不明白是什么原因。配好后2台VPC实现互相ping通。 |
|