Router1 F0/0 <----> Router2 F0/0
Router2 F3/0 <----> Router3 F0/0
Router2 F1/0 <----> Switch1 F0/0
Router2 F2/0 <----> Switch2 F0/0
Switch1 F0/1 <----> Switch2 F0/1
Switch1 F0/2 <----> Switch2 F0/2
Switch3 F0/2 <----> VPCS V0/2
Switch4 F0/3 <----> VPCS V0/3
Switch4 F0/4 <----> VPCS V0/4
Switch5 F0/5 <----> VPCS V0/5
Switch5 F0/6 <----> VPCS V0/6
Switch6 F0/7 <----> VPCS V0/7
Switch6 F0/8 <----> VPCS V0/8
Switch2 F0/15 <----> Switch6 F0/15
Switch2 F0/14 <----> Switch5 F0/14
Switch2 F0/13 <----> Switch4 F0/13
Switch2 F0/12 <----> Switch3 F0/12
Switch1 F0/10 <----> Switch6 F0/10
Switch1 F0/9 <----> Switch5 F0/9
Switch1 F0/8 <----> Switch4 F0/8
Switch1 F0/7 <----> Switch3 F0/7
核心路由上的配置:
!
!
ip dhcp pool v2
network 20.0.0.0 255.0.0.0
default-router 20.0.0.10
!
ip dhcp pool v3
network 30.0.0.0 255.0.0.0
default-router 30.0.0.10
!
ip dhcp pool v4
network 40.0.0.0 255.0.0.0
default-router 40.0.0.10
!
ip dhcp pool v5
network 50.0.0.0 255.0.0.0
default-router 50.0.0.10
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
ip address 60.0.0.2 255.0.0.0
duplex auto
speed auto
!
interface FastEthernet2/0
ip address 70.0.0.2 255.0.0.0
duplex auto
speed auto
!
interface FastEthernet3/0
no ip address
shutdown
duplex auto
speed auto
!
router rip
version 2
network 60.0.0.0
network 70.0.0.0
no auto-summary
!
核心交换机1上的配置:
!
spanning-tree vlan 2 priority 8192
spanning-tree vlan 3 priority 8192
spanning-tree vlan 4 priority 16384
spanning-tree vlan 5 priority 16384
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
no switchport
ip address 60.0.0.1 255.0.0.0
!
interface FastEthernet0/1
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/2
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/3
switchport mode trunk
!
interface FastEthernet0/4
switchport mode trunk
!
interface FastEthernet0/5
switchport mode trunk
!
interface FastEthernet0/6
switchport mode trunk
!
interface FastEthernet0/7
switchport mode trunk
!
interface FastEthernet0/8
switchport mode trunk
!
interface FastEthernet0/9
switchport mode trunk
!
interface FastEthernet0/10
switchport mode trunk
!
interface FastEthernet0/11
switchport mode trunk
!
interface FastEthernet0/12
switchport mode trunk
!
interface FastEthernet0/13
switchport mode trunk
!
interface FastEthernet0/14
switchport mode trunk
!
interface FastEthernet0/15
switchport mode trunk
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 20.0.0.11 255.0.0.0
ip helper-address 60.0.0.2
standby 2 ip 20.0.0.10
standby 2 priority 200
standby 2 preempt
!
interface Vlan3
ip address 30.0.0.11 255.0.0.0
ip helper-address 60.0.0.2
standby 3 ip 30.0.0.10
standby 3 priority 200
standby 3 preempt
!
interface Vlan4
ip address 40.0.0.11 255.0.0.0
ip helper-address 60.0.0.2
standby 4 ip 40.0.0.10
standby 4 priority 150
standby 4 preempt
!
interface Vlan5
ip address 50.0.0.11 255.0.0.0
ip helper-address 60.0.0.2
standby 5 ip 50.0.0.10
standby 5 priority 150
standby 5 preempt
!
router rip
version 2
network 20.0.0.0
network 30.0.0.0
network 40.0.0.0
network 50.0.0.0
network 60.0.0.0
no auto-summary
!
核心交换交换机2:
!
spanning-tree vlan 2 priority 16384
spanning-tree vlan 3 priority 16384
spanning-tree vlan 4 priority 8192
spanning-tree vlan 5 priority 8192
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
no switchport
ip address 70.0.0.1 255.0.0.0
!
interface FastEthernet0/1
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/2
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/3
switchport mode trunk
!
interface FastEthernet0/4
switchport mode trunk
!
interface FastEthernet0/5
switchport mode trunk
!
interface FastEthernet0/6
switchport mode trunk
!
interface FastEthernet0/7
switchport mode trunk
!
interface FastEthernet0/8
switchport mode trunk
!
interface FastEthernet0/9
switchport mode trunk
!
interface FastEthernet0/10
switchport mode trunk
!
interface FastEthernet0/11
switchport mode trunk
!
interface FastEthernet0/12
switchport mode trunk
!
interface FastEthernet0/13
switchport mode trunk
!
interface FastEthernet0/14
switchport mode trunk
!
interface FastEthernet0/15
switchport mode trunk
!
interface Vlan1
no ip address
!
interface Vlan2
ip address 20.0.0.12 255.0.0.0
ip helper-address 70.0.0.2
standby 2 ip 20.0.0.10
standby 2 priority 150
standby 2 preempt
!
interface Vlan3
ip address 30.0.0.12 255.0.0.0
ip helper-address 70.0.0.2
standby 3 ip 30.0.0.10
standby 3 priority 150
standby 3 preempt
!
interface Vlan4
ip address 40.0.0.12 255.0.0.0
ip helper-address 70.0.0.2
standby 4 ip 40.0.0.10
standby 4 priority 200
standby 4 preempt
!
interface Vlan5
ip address 50.0.0.12 255.0.0.0
ip helper-address 70.0.0.2
standby 5 ip 50.0.0.10
standby 5 priority 200
standby 5 preempt
!
router rip
version 2
network 20.0.0.0
network 30.0.0.0
network 40.0.0.0
network 50.0.0.0
network 70.0.0.0
no auto-summary
!
R
1上做rip学习到的网段:
Router(config)# do 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 not set
R 50.0.0.0/8 [120/1] via 70.0.0.1, 00:00:26, FastEthernet2/0
[120/1] via 60.0.0.1, 00:00:21, FastEthernet1/0
C 70.0.0.0/8 is directly connected, FastEthernet2/0
R 20.0.0.0/8 [120/1] via 70.0.0.1, 00:00:26, FastEthernet2/0
[120/1] via 60.0.0.1, 00:00:21, FastEthernet1/0
R 40.0.0.0/8 [120/1] via 70.0.0.1, 00:00:26, FastEthernet2/0
[120/1] via 60.0.0.1, 00:00:21, FastEthernet1/0
C 60.0.0.0/8 is directly connected, FastEthernet1/0
R 30.0.0.0/8 [120/1] via 70.0.0.1, 00:00:26, FastEthernet2/0
[120/1] via 60.0.0.1, 00:00:21, FastEthernet1/0
获取dhcp:
VPCS 2 >dhcp
DORA, IP 20.0.0.1/8 GW 20.0.0.10
VPCS 2 >dhcp
DORA, IP 20.0.0.1/8 GW 20.0.0.10
VPCS 2 >3
VPCS 3 >dhcp
DDORRR
Can't get ip address from dhcp server
VPCS 3 >dhcp
DORA, IP 20.0.0.2/8 GW 20.0.0.10
这个实验运用到的知识点:以太网通道、vtp、hsrp、spanning tree、dhcp、dhcp中继