OSPF实验报告
将所有的私有网段,实现全通:
[ar1]int tunnel 0/0/0
ip ad 10.1.1.1 24
tunnel-protocol gre p2mp
source 17.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.2 27.1.1.1 register
nhrp entry 10.1.1.3 37.1.1.1 register
[ar2]int tunnel 0/0/0
ip ad 10.1.1.2 24
tunnel-protocol gre p2mp
source 27.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.1 17.1.1.1 register
nhrp entry 10.1.1.3 37.1.1.1 register
[ar3]int tunnel 0/0/0
ip ad 10.1.1.3 24
tunnel-protocol gre p2mp
source 27.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
nhrp entry 10.1.1.1 17.1.1.1 register
nhrp entry 10.1.1.2 27.1.1.1 register
[ar1]ospf 1 router-id 1.1.1.1
area 0
network 192.168.1.1 0.0.0.0
network 10.1.1.1 0.0.0.0
[ar2]ospf 1 router-id 2.2.2.2
area 0
network 192.168.2.1 0.0.0.0
network 10.1.1.2 0.0.0.0
[ar3]ospf 1 router-id 3.3.3.3
area 0
network 10.1.1.3 0.0.0.0
q
area 1
network 192.168.3.1 0.0.0.0
network 192.168.0.1 0.0.0.0
[ar4]ospf 1 router-id 4.4.4.4
area 1
network 192.168.0.0 0.0.0.255
[ar5]ospf 1 router-id 5.5.5.5
area 1
network 192.168.0.6 0.0.0.0
network 192.168.5.1 0.0.0.0
q
area 2
network 192.168.0.9 0.0.0.0
[ar6]ospf 1 router-id 6.6.6.6
area 2
network 192.168.0.0 0.0.255.255
[ar1]int tunnel 0/0/0
ospf network-type broadcast
[ar2]int tunnel 0/0/0
ospf network-type broadcast
[ar3]int tunnel 0/0/0
ospf network-type broadcast
[ar5]ospf 1
area 2
undo network 192.168.0.9 0.0.0.0
ospf 2
area 2
network 192.168.0.9 0.0.0.0
ospf 1
import-route ospf 2
q
ospf 2
import-route ospf 1
AR4-6能正常访问AR7环回:
[ar3]ospf 1
default-route-advertise
[ar5]ospf 2
default-route-advertise
[ar3]acl 2000
ruler permit source 192.168.0.0 0.0.255.255
int g0/0/0
nat outbound 2000
AR1telnetAR3共有ip,实际登录到AR6:
[ar6]aaa
local-user lxl privilege level 15 password cipher 123456
local-user lxl service-type telnet
q
user-interface vty 0 4
authentication-mode aaa
[ar3]int g0/0/0
nat server protocol tcp global current-interface 23 inside 192.168.6.1 23