1.R7为LSP,只能配置IP.
2.红色为私有IP范围
3.使用OSPF将所有私有网段实现全通
4.OSPF的区域划分为紫色
5.R4-6可以正常访问R7环回
6.R1telnet R公有IP,实际登录到R6
配ip(1237之间是公网,其他为私网,mgre也要配地址
R1;G0/0/0 17.1.1.1 24
Lo0 192.168.1.1 24
R2;g0/0/0 27.1.1.1 24
Lo0 192.168.2.1 24
R3;g0/0/0 37.1.1.1 24
Lo0 192.168.3.1 24
R4;Lo0 192.168.4.1 24
R5;Lo0 192.168.5.1 24
R6;Lo0 192.168.6.1 24
R7;g0/0/0 17.1.1.2 24
G0/0/1 27.1.1.2 24
G0/0/2 37.1.1.2 24
Gre 先通公网 缺省指向
R1;ip route-static 0.0.0.0 0 17.1.1.2
2 ip route-static 0.0.0.0 0 27.1.1.2
3 ip route-static 0.0.0.0 0 37.1.1.2(123通网)
T0/0/0 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(r1在r2注册)
Nhrp entry 10.1.1.3 37.1.1.1 register(r1在r3注册)
R2;t0/0/0 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
R3;t0/0/0 10.1.1.3 24
Tunnel-protocol gre p2mp
Source 37.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
G0/0/0 192.168.0.1 30
R4;g0/0/0 192.168.0.2 30
G0/0/1 192.168.0.5 30
R5;g0/0/0 192.168.0.6 30
G0/0/1 192.168.0.9 30
R6;g0/0/0 192.168.0.10 30
R7;lo0 7.7.7.7
R1;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
R2;ospf 1 router-id 2.2.2.2
Area 0
Network 10.1.1.2 0.0.0.0
Network 192.168.2.1 0.0.0.0
R3;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
R4;ospf 1 router-id 4.4.4.4
Area 1
Network 192.168.0.0 0.0.0.255
Network 192.168.4.4 0.0.0.0
R5;a1;192.168.0.6 0.0.0.0
Lo0 192.168.5.1 0.0.0.0
Area 2 192.168.0.9 0.0.0.0
R6;a2 192.168.0.0 0.0.255.255
R123;t0/0/0
Ospf network-type broadcast(改类型)
Display ospf peer brief
R5;o1a2 undo network 192.168.0.9 0.0.0.0//撤销原有宣告
O2a2 network 192.168.0.9 0.0.0.0
双向重发布
O1 import-route ospf 2(导入ospf2)
O2 impoet-route ospf1
R3;o1 Default-route-advertise(r3给o1缺省重发布)
R5;o2 Default-route-advertise (r5给r6)
R3;acl 2000
Rule permit source 192.168.0.0 0.0.255.255
G0/0/0 nat outbound 2000
R6;aaa
Local-user zhang privilege level 15 password cipher 123456
Local-user zhang service-type telnet
Q
User-interface vty 0 4
Authentication-mode aaa
R3g0/0/0
Nat server protocol tcp global current-interface 23 inside 192.168.6.1 23
<r1>telnet 37.1.1.1
密码隐藏