R1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 10.0.0.1 24
[r1]int g0/0/1
[r1-GigabitEthernet0/0/0]ip add 15.0.0.1 24
[r1]ip route-static 0.0.0.0 0 10.0.0.2
[r1]ip route-static 0.0.0.0 0 15.0.0.2
R2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 11.0.0.1 24
[r2]ip route-static 0.0.0.0 0 11.0.0.2
R3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 12.0.0.1 24
[r3]ip route-static 0.0.0.0 0 12.0.0.2
R4
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 13.0.0.1 24
[r4]ip route-static 0.0.0.0 0 13.0.0.2
R5
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 14.0.0.1 24
[r5]ip route-static 0.0.0.0 0 10.0.0.2
R6
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]ip add 10.0.0.2 24
Jul 13 2022 17:46:55-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r6-GigabitEthernet0/0/0]int g2/0/0
[r6-GigabitEthernet2/0/0]ip add 11.0.0.2 24
[r6-GigabitEthernet2/0/0]
Jul 13 2022 17:47:12-08:00 r6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet2/0/0 has entered the UP state.
[r6-GigabitEthernet2/0/0]int g3/0/0
[r6-GigabitEthernet3/0/0]ip add 12.0.0.2 24
[r6-GigabitEthernet3/0/0]
Jul 13 2022 17:49:14-08:00 r6 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet3/0/0 has entered the UP state.
[r6-GigabitEthernet3/0/0]int g4/0/0
[r6-GigabitEthernet4/0/0]ip add 13.0.0.2 24
[r6-GigabitEthernet4/0/0]
Jul 13 2022 17:49:33-08:00 r6 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet4/0/0 has entered the UP state.
[r6-GigabitEthernet4/0/0]int g0/0/2
[r6-GigabitEthernet0/0/2]ip add 14.0.0.2 24
[r6-GigabitEthernet0/0/2]
Jul 13 2022 17:51:09-08:00 r6 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[r6-GigabitEthernet0/0/2]int g0/0/1
[r6-GigabitEthernet0/0/1]ip add 15.0.0.2 24
MGRE配置
R1
R4
[r4]int t0/0/0
[r4-Tunnel0/0/0]ip add 192.168.1.2 24
[r4-Tunnel0/0/0]tu
[r4-Tunnel0/0/0]tunnel-protocol g
[r4-Tunnel0/0/0]tunnel-protocol gre p
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp
[r4-Tunnel0/0/0]s
[r4-Tunnel0/0/0]set
[r4-Tunnel0/0/0]shutdown
[r4-Tunnel0/0/0]source g
[r4-Tunnel0/0/0]source GigabitEthernet 0/0/0
Jul 13 2022 18:13:21-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r4-Tunnel0/0/0]
[r4-Tunnel0/0/0]nh
[r4-Tunnel0/0/0]nhrp net
[r4-Tunnel0/0/0]nhrp network-id 100
[r4-Tunnel0/0/0]nh
[r4-Tunnel0/0/0]nhrp en
[r4-Tunnel0/0/0]nhrp entry 192.168.1.1 15.0.0.1
[r4-Tunnel0/0/0]nhrp entry 192.168.1.1 15.0.0.1 r
[r4-Tunnel0/0/0]nhrp entry 192.168.1.1 15.0.0.1 register
R5
[r5]int t0/0/0
[r5-Tunnel0/0/0]ip add 192.168.1.3 24
[r5-Tunnel0/0/0]tu
[r5-Tunnel0/0/0]tunnel-protocol g
[r5-Tunnel0/0/0]tunnel-protocol gre p
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp
[r5-Tunnel0/0/0]sou
[r5-Tunnel0/0/0]source g
[r5-Tunnel0/0/0]source GigabitEthernet 0/0/0
Jul 13 2022 18:16:18-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r5-Tunnel0/0/0]
[r5-Tunnel0/0/0]nh
[r5-Tunnel0/0/0]nhrp net
[r5-Tunnel0/0/0]nhrp network-id 100
[r5-Tunnel0/0/0]nh
[r5-Tunnel0/0/0]nhrp en
[r5-Tunnel0/0/0]nhrp entry 192.168.1.1 15.0.0.1 r
[r5-Tunnel0/0/0]nhrp entry 192.168.1.1 15.0.0.1 register
星型拓扑配置
R1
R2
[r2]int t0/0/0
[r2-Tunnel0/0/0]ip add 192.168.2.2 24
[r2-Tunnel0/0/0]tu
[r2-Tunnel0/0/0]tunnel-protocol g
[r2-Tunnel0/0/0]tunnel-protocol gre
[r2-Tunnel0/0/0]sou
[r2-Tunnel0/0/0]source 11.0.0.1
[r2-Tunnel0/0/0]des
[r2-Tunnel0/0/0]description 10.0.0.1
R3
[r3]int t0/0/0
[r3-Tunnel0/0/0]ip add 192.168.2.3 24
[r3-Tunnel0/0/0]tun
[r3-Tunnel0/0/0]tunnel-protocol g
[r3-Tunnel0/0/0]tunnel-protocol gre
[r3-Tunnel0/0/0]sou
[r3-Tunnel0/0/0]source 12.0.0.1
[r3-Tunnel0/0/0]d
[r3-Tunnel0/0/0]ddns
[r3-Tunnel0/0/0]description 10.0.0.1
OSPF配置
R1
[r1]os
[r1]ospf 1 rou
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]ar
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]net
[r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]q
R2
[r2]osp
[r2]ospf 1 rou
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]ar
[r2-ospf-1]area0
^
Error: Unrecognized command found at '^' position.
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net
[r2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
R3
[r3]os
[r3]ospf 1 rou
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]ar
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]net
[r3-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]
R4
[r4]ospf 1 rou
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]are
[r4-ospf-1]area 0
[r4-ospf-1-area-0.0.0.0]net
[r4-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r4-ospf-1-area-0.0.0.0]q
R5
[r5]os
[r5]ospf 1 rou
[r5]ospf 1 router-id 5.5.5.5
[r5-ospf-1]are
[r5-ospf-1]area 0
[r5-ospf-1-area-0.0.0.0]net
[r5-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r5-ospf-1-area-0.0.0.0]