ip规划
172.16.0.0/19 A0
172.16.32.0/19 A1
172.16.64.0/19 A2
172.16.92.0/19 A3
172.16.128.0/19 A4
172.16.160.0/19&ensP;RIP
拓扑图如下
R1:
interface GigabitEthernet0/0/0
ip address 172.16.32.1 255.255.255.248
interface LoopBack0
ip address 172.16.33.1 255.255.255.128
ospf 1 router-id 1.1.1.1
area 0.0.0.1
network 0.0.0.0 255.255.255.255
stub
R2:
interface GigabitEthernet0/0/0
ip address 172.16.32.2 255.255.255.248
interface LoopBack0
ip address 172.16.33.129 255.255.255.128
ospf 1 router-id 2.2.2.2
area 0.0.0.1
network 0.0.0.0 255.255.255.255
stub
R3:
acl number 2000
rule 5 permit source 172.16.0.0 0.0.255.255
interface GigabitEthernet0/0/0
ip address 172.16.32.3 255.255.255.248
interface GigabitEthernet0/0/1
ip address 34.1.1.3 255.255.255.0
nat outbound 2000
interface LoopBack0
ip address 172.16.34.1 255.255.255.128
interface Tunnel0/0/0
ip address 172.16.0.1 255.255.255.248
tunnel-protocol gre p2mp
source 34.1.1.3
ospf network-type broadcast
nhrp entry multicast dynamic
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 172.16.0.1 0.0.0.0
area 0.0.0.1
abr-summary 172.16.32.0 255.255.224.0
network 172.16.32.3 0.0.0.0
network 172.16.34.1 0.0.0.0
stub no-summary
ip route-static 0.0.0.0 0.0.0.0 34.1.1.4
ip route-static 172.16.32.0 255.255.224.0 NULL0
R4:
interface GigabitEthernet0/0/0
ip address 34.1.1.4 255.255.255.0
interface GigabitEthernet0/0/1
ip address 45.1.1.4 255.255.255.0
interface GigabitEthernet0/0/2
ip address 46.1.1.4 255.255.255.0
interface GigabitEthernet6/0/0
ip address 47.1.1.4 255.255.255.0
interface GigabitEthernet6/0/1
interface GigabitEthernet6/0/2
interface GigabitEthernet6/0/3
interface NULL0
interface LoopBack0
ip address 4.4.4.4 255.255.255.0
R5:
interface GigabitEthernet0/0/0
ip address 45.1.1.5 255.255.255.0
interface LoopBack0
ip address 172.16.1.1 255.255.255.128
interface Tunnel0/0/0
ip address 172.16.0.2 255.255.255.248
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 172.16.0.1 34.1.1.3 register
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 0.0.0.0 255.255.255.255
ip route-static 0.0.0.0 0.0.0.0 45.1.1.4
R6:
acl number 2000
rule 5 permit source 172.16.0.0 0.0.255.255
interface GigabitEthernet0/0/0
ip address 46.1.1.6 255.255.255.0
nat outbound 2000
interface GigabitEthernet0/0/1
ip address 172.16.64.129 255.255.255.252
interface LoopBack0
ip address 172.16.1.129 255.255.255.128
interface Tunnel0/0/0
ip address 172.16.0.3 255.255.255.248
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 172.16.0.1 34.1.1.3 register
ospf 1 router-id 6.6.6.6
area 0.0.0.0
network 172.16.0.3 0.0.0.0
network 172.16.1.129 0.0.0.0
area 0.0.0.2
abr-summary 172.16.64.0 255.255.224.0
network 172.16.64.129 0.0.0.0
nssa no-summary
ip route-static 0.0.0.0 0.0.0.0 46.1.1.4
ip route-static 172.16.64.0 255.255.224.0 NULL0
R7:
acl number 2000
rule 5 permit source 172.16.0.0 0.0.255.255
interface GigabitEthernet0/0/0
ip address 47.1.1.7 255.255.255.0
nat outbound 2000
interface GigabitEthernet0/0/1
ip address 172.16.96.129 255.255.255.252
interface LoopBack0
ip address 172.16.2.1 255.255.255.128
interface Tunnel0/0/0
ip address 172.16.0.4 255.255.255.248
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 172.16.0.1 34.1.1.3 register
ospf 1 router-id 7.7.7.7
area 0.0.0.0
network 172.16.0.4 0.0.0.0
network 172.16.2.1 0.0.0.0
area 0.0.0.3
abr-summary 172.16.96.0 255.255.224.0
network 172.16.96.129 0.0.0.0
nssa no-summary
ip route-static 0.0.0.0 0.0.0.0 47.1.1.4
ip route-static 172.16.96.0 255.255.224.0 NULL0
R8:
interface GigabitEthernet0/0/0
ip address 172.16.96.130 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.96.133 255.255.255.252
interface LoopBack0
ip address 172.16.97.1 255.255.255.128
ospf 1 router-id 8.8.8.8
area 0.0.0.3
network 0.0.0.0 255.255.255.255
nssa
R9:
interface GigabitEthernet0/0/0
ip address 172.16.96.134 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.128.129 255.255.255.252
interface LoopBack0
ip address 172.16.129.1 255.255.255.128
ospf 1 router-id 9.9.9.9
asbr-summary 172.16.128.0 255.255.224.0
import-route ospf 2
area 0.0.0.3
network 172.16.96.134 0.0.0.0
nssa
area 0.0.0.4
ospf 2
default-route-advertise
area 0.0.0.4
network 172.16.128.0 0.0.1.255
ip route-static 172.16.128.0 255.255.224.0 NULL0
R10:
interface GigabitEthernet0/0/0
ip address 172.16.128.130 255.255.255.252
interface LoopBack0
ip address 172.16.129.129 255.255.255.128
ospf 1 router-id 10.10.10.10
area 0.0.0.4
network 0.0.0.0 255.255.255.255
R11:
interface GigabitEthernet0/0/0
ip address 172.16.64.130 255.255.255.252
interface GigabitEthernet0/0/1
ip address 172.16.64.133 255.255.255.252
interface LoopBack0
ip address 172.16.65.1 255.255.255.128
ospf 1 router-id 11.11.11.11
area 0.0.0.2
network 0.0.0.0 255.255.255.255
nssa
R12:
interface LoopBack0
ip address 172.16.160.1 255.255.240.0
interface LoopBack1
ip address 172.16.176.1 255.255.240.0
interface GigabitEthernet0/0/0
ip address 172.16.64.134 255.255.255.252
ospf 1 router-id 12.12.12.12
asbr-summary 172.16.160.0 255.255.224.0
asbr-summary 172.16.64.132 255.255.255.252 not-advertise
import-route rip 1
area 0.0.0.2
network 172.16.64.134 0.0.0.0
nssa
rip 1
version 2
network 172.16.0.0
ip route-static 172.16.160.0 255.255.224.0 NULL0