作业
r6为ISP只能配置IP地址 r1 r5的环回为私有网段
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 16.0.0.1 24
[r1-GigabitEthernet0/0/0]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 116.0.0.1 24
[r1]int l0
[r1-LoopBack0]ip add 192.168.1.1 24
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 26.0.0.1 24
[r2-GigabitEthernet0/0/0]int l0
[r2-LoopBack0]ip add 192.168.2.1 24
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 36.0.0.1 24
[r3-GigabitEthernet0/0/0]int l0
[r3-LoopBack0]ip add 192.168.3.1 24
r4 r5与r1 r2 r3 操作相同
[isp]int g0/0/0
[isp-GigabitEthernet0/0/0]ip add 16.0.0.2 24
[isp-GigabitEthernet0/0/0]int g 0/0/1
[isp-GigabitEthernet0/0/1]ip add 116.0.0.2 24
[isp-GigabitEthernet0/0/1]int g 2/0/0
[isp-GigabitEthernet2/0/0]ip add 26.0.0.2 24
[isp-GigabitEthernet2/0/0]int g 3/0/0
[isp-GigabitEthernet3/0/0]ip add 36.0.0.2 24
[isp-GigabitEthernet3/0/0]int g 4/0/0
[isp-GigabitEthernet4/0/0]ip add 46.0.0.2 24
[isp-GigabitEthernet4/0/0]int g 0/0/2
[isp-GigabitEthernet0/0/2]ip add 56.0.0.2 24
[r1]ip route-static 0.0.0.0 0 116.0.0.2
[r2]ip route-static 0.0.0.0 0 26.0.0.2
[r3]ip route-static 0.0.0.0 0 36.0.0.2
r4 r5操作相同
配置完成后ping一下发现都可通
r1/4/5为全连的MGRE结构 r1/2/3为星型的拓扑结构,r1为中心站点结构。
r1/2/3为星型的拓扑结构,r1为中心站点
[r1]int t 0/0/0
[r1-Tunnel0/0/0]ip add 192.168.6.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 16.0.0.1
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r2]int t 0/0/0
[r2-Tunnel0/0/0]ip add 192.168.6.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 192.168.6.1 16.0.0.1 register
[r3]int t 0/0/0
[r3-Tunnel0/0/0]ip add 192.168.6.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 192.168.6.1 16.0.0.1 register
r1/4/5为全连的MGRE结构,r1为中心站点结构。(电脑出了点问题截图复制不了,手机拍照)
所有私网段可以互相通讯,私有网段使用ospf完成
r1/2/3/4/5开启ospf(忘记截图但ping通的照片有)