迷彩 潜伏 隐蔽 伪装
分类:
2012-12-26 20:13:35
原文地址:ODR 路由配置实例 作者:net527127
CiscoODR优化大规模
五台路由均为2691 IOS为c2691-m-z.12.3-12a.bin
三台主机VPC
R1配置:
R1#show run
Building configuration...
Current configuration : 1061 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$6dVj$wDHFRE37AG97KBxz5/eiP/
!
no aaa new-model
ip subnet-zero
!
!
ip cef
no ip domain lookup
!
!
!
!
!
FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.1.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
ip classless
!
!
!
line con 0
password zefa
logging synchronous
login
no exec
transport preferred all
transport output all
line aux 0
transport preferred all
transport output all
line vty 0 4
password zefa
login
transport preferred all
transport input all
transport output all
!
end
R2配置:
R2#show run
Building configuration...
Current configuration : 1104 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$L4V6$vEuaUR5DKfnRMG3jnqbFa0
!
no aaa new-model
ip subnet-zero
!
!
ip cef
no ip domain lookup
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
ip address 192.168.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.1.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
ip address 10.2.2.1 255.255.255.0
serial restart-delay 0
!
interface Serial1/3
ip address 10.3.3.1 255.255.255.0
serial restart-delay 0
!
router odr
!
ip http server
ip classless
!
!
!
line con 0
password zefa
logging synchronous
login
no exec
transport preferred all
transport output all
line aux 0
transport preferred all
transport output all
line vty 0 4
password zefa
login
transport preferred all
transport input all
transport output all
!
end
R3配置:
R3#show run
Building configuration...
Current configuration : 1070 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.LCZ$aS/3Ue9aOdSIsl9wQCr0V/
!
no aaa new-model
ip subnet-zero
!
!
ip cef
no ip domain lookup
!
!
!
!
!
interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
ip address 10.1.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
ip classless
!
!
!
line con 0
password zefa
logging synchronous
login
no exec
transport preferred all
transport output all
line aux 0
transport preferred all
transport output all
line vty 0 4
password zefa
login
transport preferred all
transport input all
transport output all
!
end
R3#
R4配置:
interface FastEthernet0/0
ip address 172.16.2.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
ip address 10.2.2.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-delay 0
R5配置:
interface FastEthernet0/0
ip address 172.16.3.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial1/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial1/1
ip address 10.3.3.2 255.255.255.0
serial restart-delay 0
!
interface Serial1/2
no ip address
shutdown
serial restart-dela
路由验证:
R1#
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 192.168.1.2 to network 0.0.0.0
C 192.168.1.0/24 is directly connected, Serial1/0
o* 0.0.0.0/0 [160/1] via 192.168.1.2, 00:00:04, Serial1/0
R1#
-----------------------------------------------------------------
R2#
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 3 subnets
o 172.16.1.0 [160/1] via 10.1.1.2, 00:00:56, Serial1/1
o 172.16.2.0 [160/1] via 10.2.2.2, 00:00:07, Serial1/2
o 172.16.3.0 [160/1] via 10.3.3.2, 00:00:14, Serial1/3
10.0.0.0/24 is subnetted, 3 subnets
C 10.3.3.0 is directly connected, Serial1/3
C 10.2.2.0 is directly connected, Serial1/2
C 10.1.1.0 is directly connected, Serial1/1
C 192.168.1.0/24 is directly connected, Serial1/0
R2#
VPC的PING
VPCS 1 >1
VPCS 1 >ip 172.16.1.2 172.16.1.1 24
PC1 : 172.16.1.2 255.255.255.0 gateway
VPCS 1 >2
VPCS 2 >ip 172.16.2.2 172.16.2.1 24
PC2 : 172.16.2.2 255.255.255.0 gateway
VPCS 2 >3
VPCS 3 >ip 172.16.3.2 172.16.3.1 24
PC3 : 172.16.3.2 255.255.255.0 gateway
VPCS 3 >ping 172.16.1.1
172.16.1.1 icmp_seq=1 time=45.000 ms
172.16.1.1 icmp_seq=2 time=48.000 ms
172.16.1.1 icmp_seq=3 time=22.000 ms
172.16.1.1 icmp_seq=4 time=19.000 ms
172.16.1.1 icmp_seq=5 time=21.000 ms
VPCS 3 >2
VPCS 2 >ping 172.16.1.1
172.16.1.1 icmp_seq=1 time=21.000 ms
172.16.1.1 icmp_seq=2 time=53.000 ms
172.16.1.1 icmp_seq=3 time=18.000 ms
172.16.1.1 icmp_seq=4 time=52.000 ms
172.16.1.1 icmp_seq=5 time=20.000 ms
VPCS 2 >1
VPCS 1 >ping 192.168.1.1
192.168.1.1 icmp_seq=1 time=61.000 ms
192.168.1.1 icmp_seq=2 time=30.000 ms
192.168.1.1 icmp_seq=3 time=21.000 ms
192.168.1.1 icmp_seq=4 time=20.000 ms
192.168.1.1 icmp_seq=5 time=51.000 ms