OSPF实验

IP地址配置

[Huawei]sys r1
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add    
[r1-GigabitEthernet0/0/0]ip address 15.1.1.1 24
Jan 16 2024 16:23:09-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]q
[r1]int l0
[r1-LoopBack0]ip add    
[r1-LoopBack0]ip address 1.1.1.1 32

[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add    
[r2-GigabitEthernet0/0/0]ip address 25.1.1.1 24
Jan 16 2024 16:24:29-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]q
[r2]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip add    
[r2-GigabitEthernet0/0/1]ip address 26.1.1.1 24
Jan 16 2024 16:24:56-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r2-GigabitEthernet0/0/1]q
[r2]int l0
[r2-LoopBack0]ip add    
[r2-LoopBack0]ip address 2.2.2.2 32
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add    
[r3-GigabitEthernet0/0/0]ip address 35.1.1.1 24
Jan 16 2024 16:29:36-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]q
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip add    
[r3-GigabitEthernet0/0/1]ip address 38.1.1.1 24
Jan 16 2024 16:29:58-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r3-GigabitEthernet0/0/1]q
[r3]int l0
[r3-LoopBack0]
[r3-LoopBack0]ip add    
[r3-LoopBack0]ip address 3.3.3.3 32
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip add    
[r4-GigabitEthernet0/0/0]ip address 45.1.1.1 24
Jan 16 2024 16:31:17-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]q
[r4]intg 0/0/1
    ^
Error: Unrecognized command found at '^' position.
[r4]int g 0/0/1
[r4-GigabitEthernet0/0/1]ip add    
[r4-GigabitEthernet0/0/1]ip address 47.1.1.1 24
Jan 16 2024 16:32:17-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r4-GigabitEthernet0/0/1]q
[r4]int l0
[r4-LoopBack0]ip add    
[r4-LoopBack0]ip address 4.4.4.4 32
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add    
[r5-GigabitEthernet0/0/0]ip address 15.1.1.2 24
Jan 16 2024 16:34:19-08:00 r5 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5-GigabitEthernet0/0/0]q
[r5]int g 0/0/1
[r5-GigabitEthernet0/0/1]ip add    
[r5-GigabitEthernet0/0/1]ip address 25.1.1.2 24
Jan 16 2024 16:34:45-08:00 r5 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r5-GigabitEthernet0/0/1]q
[r5]int g 0/0/2
[r5-GigabitEthernet0/0/2]ip add    
[r5-GigabitEthernet0/0/2]ip address 35.1.1.22 24
Jan 16 2024 16:35:13-08:00 r5 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r5-GigabitEthernet0/0/2]q
[r5]int g 4/0/0
[r5-GigabitEthernet4/0/0]ip add    
[r5-GigabitEthernet4/0/0]ip address 45.1.1.2 24
Jan 16 2024 16:35:37-08:00 r5 %%01IFNET/4/LINK_STATE(l)[6]:The line protocol IP 
on the interface GigabitEthernet4/0/0 has entered the UP state.

[r6]int g 0/0/0
[r6-GigabitEthernet0/0/0]ip add    
[r6-GigabitEthernet0/0/0]ip address 26.1.1.2 24
[r6-GigabitEthernet0/0/0]
Jan 16 2024 16:37:56-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]q
[r6]int l0
[r6-LoopBack0]ip add    
[r6-LoopBack0]ip address 6.6.6.6 32
[r7]int g 0/0/0
[r7-GigabitEthernet0/0/0]ip add    
[r7-GigabitEthernet0/0/0]ip address 47.1.1.2 24
Jan 16 2024 16:38:55-08:00 r7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r7-GigabitEthernet0/0/0]q
[r7]int l0
[r7-LoopBack0]ip add    
[r7-LoopBack0]ip address 7.7.7.7 32
[r8]int g 0/0/0
[r8-GigabitEthernet0/0/0]ip add    
[r8-GigabitEthernet0/0/0]ip address 38.1.1.2 24
Jan 16 2024 16:39:58-08:00 r8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r8-GigabitEthernet0/0/0]q
[r8]int l0
[r8-LoopBack0]ip add    
[r8-LoopBack0]ip address 8.8.8.8 32

OSPF宣告

[r1]os    
[r1]ospf 1 ro    
[r1]ospf 1 router-id 1.1.1.1 
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]net    
[r1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0]q
[r2]os    
[r2]ospf 1 ro    
[r2]ospf 1 router-id 2.2.2.2 
[r2-ospf-1]are    
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net    
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]q
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]net    
[r2-ospf-1-area-0.0.0.1]network 26.1.1.1 0.0.0.0
[r3]os    
[r3]ospf 1 ro    
[r3]ospf 1 router-id 3.3.3.3 
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]net    
[r3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]q
[r3-ospf-1]area 2
[r3-ospf-1-area-0.0.0.2]net    
[r3-ospf-1-area-0.0.0.2]network 38.1.1.1 0.0.0.0
[r4]ospf 1 ro    
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]area 0
[r4-ospf-1-area-0.0.0.0]net    
[r4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[r4-ospf-1-area-0.0.0.0]q
[r4-ospf-1]area 3
[r4-ospf-1-area-0.0.0.3]net    
[r4-ospf-1-area-0.0.0.3]network 47.1.1.1 0.0.0.0

ospf    
[r7]ospf 1 ro    
[r7]ospf 1 router-id 7.7.7.7
[r7-ospf-1]area 3
[r7-ospf-1-area-0.0.0.3]net    
[r7-ospf-1-area-0.0.0.3]network 0.0.0.0 255.255.255.255
[r8]ospf 1 ro    
[r8]ospf 1 router-id 8.8.8.8
[r8-ospf-1]area 2
[r8-ospf-1-area-0.0.0.2]net    
[r8-ospf-1-area-0.0.0.2]network 0.0.0.0 255.255.255.255

[r1]int     
[r1]interface tu    
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]tu    
[r1-Tunnel0/0/0]tunnel-protocol p2    
[r1-Tunnel0/0/0]tunnel-protocol gre p2    
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r1-Tunnel0/0/0]so    
[r1-Tunnel0/0/0]source 15.1.1.1 
[r1-Tunnel0/0/0]nhrp en    
[r1-Tunnel0/0/0]nhrp entry m    
[r1-Tunnel0/0/0]nhrp entry multicast dy    
[r1-Tunnel0/0/0]nhrp entry multicast dynamic 
[r1-Tunnel0/0/0]nh    
[r1-Tunnel0/0/0]nhrp net    
[r1-Tunnel0/0/0]nhrp network-id 10
[r1-Tunnel0/0/0]ip add    
[r1-Tunnel0/0/0]ip address 10.1.1.1 24
[r1-Tunnel0/0/0]ospf net    
[r1-Tunnel0/0/0]ospf network-type br    
[r1-Tunnel0/0/0]ospf network-type broadcas

[r2]int     
[r2]interface tu    
[r2]interface Tunnel 0/0/0
[r2-Tunnel0/0/0]ip add    
[r2-Tunnel0/0/0]ip address 10.1.1.2 24
Jan 16 2024 17:53:25-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r2-Tunnel0/0/0]sopf    
[r2-Tunnel0/0/0]ospf net    
[r2-Tunnel0/0/0]ospf network-type br    
[r2-Tunnel0/0/0]ospf network-type broadcast 

[r3]int    
[r3]interface tu    
[r3]interface Tunnel 0/0/0
[r3-Tunnel0/0/0]tu    
[r3-Tunnel0/0/0]tunnel-protocol p    
[r3-Tunnel0/0/0]tunnel-protocol g    
[r3-Tunnel0/0/0]tunnel-protocol gre p    
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r3-Tunnel0/0/0]so    
[r3-Tunnel0/0/0]source 35.1.1.1
[r3-Tunnel0/0/0]nh    
[r3-Tunnel0/0/0]nhrp em    
[r3-Tunnel0/0/0]nhrp en    
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 re    
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 register 
[r3-Tunnel0/0/0]nh    
[r3-Tunnel0/0/0]nhrp net    
[r3-Tunnel0/0/0]nhrp network-id 10
[r3-Tunnel0/0/0]ip add    
[r3-Tunnel0/0/0]ip address 10.1.1.3 24
Jan 16 2024 17:56:03-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r3]ip route-static 0.0.0.0 0 35.1.1.2
[r3]int    
[r3]interface tu    
[r3]interface Tunnel 0/0/0
[r3-Tunnel0/0/0]ospf    
[r3-Tunnel0/0/0]ospf net    
[r3-Tunnel0/0/0]ospf network-type br    
[r3-Tunnel0/0/0]ospf network-type broadcast

[r4]int    
[r4]interface tu    
[r4]interface Tunnel 0/0/0
[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]so    
[r4-Tunnel0/0/0]source 45.1.1.1.
                       ^
Error: Wrong parameter found at '^' position.
[r4-Tunnel0/0/0]source 45.1.1.1
[r4-Tunnel0/0/0]nh    
[r4-Tunnel0/0/0]nhrp en    
[r4-Tunnel0/0/0]nhrp entry 10.1.1.1  15.1.1.1 re
[r4-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 re    
[r4-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 register 
Info: Peer entry exists already. 
[r4-Tunnel0/0/0]nh    
[r4-Tunnel0/0/0]nhrp net    
[r4-Tunnel0/0/0]nhrp network-id 10
[r4-Tunnel0/0/0]ip add    
[r4-Tunnel0/0/0]ip address 10.1.1.4 24
[r4-Tunnel0/0/0]
Jan 16 2024 18:00:00-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]q
[r4]ip ro    
[r4]ip route-    
[r4]ip route-static 0.0.0.0 0 45.1.1.2 
[r4]int    
[r4]interface tu    
[r4]interface Tunnel 0/0/0
[r4-Tunnel0/0/0]ospf net    
[r4-Tunnel0/0/0]ospf network-type br    
[r4-Tunnel0/0/0]ospf network-type broadcast 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值