bgp实验

IP地址配置

[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add    
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
Jan 22 2024 18:30:32-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]
[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 12.1.1.2 24 
Jan 22 2024 18:31:24-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/0
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip add    
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
Jan 22 2024 18:31:44-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 addd    
[r3-GigabitEthernet0/0/0]ip add    
[r3-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[r3-GigabitEthernet0/0/0]
Jan 22 2024 18:32:23-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]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip add    
[r3-GigabitEthernet0/0/1]ip address 34.1.1.1 24
Jan 22 2024 18:32:42-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]ip add    
[r3-LoopBack0]ip address 3.3.3. 32
                         ^
Error: Wrong parameter found at '^' position.
[r3-LoopBack0]ip add    
[r3-LoopBack0]ip address 3.3.3.3 32
[r4-GigabitEthernet0/0/0]int g 0/0/1
[r4-GigabitEthernet0/0/1]ip add    
[r4-GigabitEthernet0/0/1]ip address 45.1.1.1 24\
                                             ^
Error: Wrong parameter found at '^' position.
[r4-GigabitEthernet0/0/1]ip address 45.1.1.1 24
Jan 22 2024 18:36:05-08:00 r4 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r4-GigabitEthernet0/0/1]int l0
[r4-LoopBack0]ip add    
[r4-LoopBack0]ip address 4.4.4.4 32
[r4-LoopBack0]q
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]undo ip add    
[r4-GigabitEthernet0/0/0]undo ip address 34.1.1.1 24
Jan 22 2024 18:41:52-08:00 r4 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the DOWN state. 
[r4-GigabitEthernet0/0/0]ip add    
[r4-GigabitEthernet0/0/0]ip address 34.1.1.2 24
Jan 22 2024 18:42:05-08:00 r4 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add    
[r5-GigabitEthernet0/0/0]ip address 45.1.1.2 
                                             ^
Error:Incomplete command found at '^' position.
[r5-GigabitEthernet0/0/0]q
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add    
[r5-GigabitEthernet0/0/0]ip address 45.1.1.2 24
Jan 22 2024 18:37:48-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5-GigabitEthernet0/0/0]int g 0/0/1
[r5-GigabitEthernet0/0/1]ip add    
[r5-GigabitEthernet0/0/1]ip address 56.1.1.1 24
Jan 22 2024 18:38:00-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r5-GigabitEthernet0/0/1]int l0
[r5-LoopBack0]ip add    
[r5-LoopBack0]ip address 5.5.5.5 32
[r6]ip add    
[r6]int g 0/0/0
[r6-GigabitEthernet0/0/0]ip add    
[r6-GigabitEthernet0/0/0]ip address 56.1.1.2 24
Jan 22 2024 18:38:41-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 g 0/0/1
[r6-GigabitEthernet0/0/1]ip add    
[r6-GigabitEthernet0/0/1]ip address 67.1.1.1 24
Jan 22 2024 18:38:52-08:00 r6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r6-GigabitEthernet0/0/1]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 67.1.1.2 24
Jan 22 2024 18:40:23-08:00 r7 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r7-GigabitEthernet0/0/0]int g 0/0/1
[r7-GigabitEthernet0/0/1]ip add    
[r7-GigabitEthernet0/0/1]ip address 78.1.1.1 24 
Jan 22 2024 18:40:53-08:00 r7 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r7-GigabitEthernet0/0/1]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 78.1.1.2 24
Jan 22 2024 18:44:01-08:00 r8 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r8-GigabitEthernet0/0/0]int l0
[r8-LoopBack0]ip add    
[r8-LoopBack0]ip address 8.8.8.8 32

ospf和rip宣告

[r1]ospf i ro    
[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 0.0.0.0 255.255.255.255

[r2]ospf 1 ro    
[r2]ospf 1 router-id 2.2.2.2 
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net    
[r2-ospf-1-area-0.0.0.0]network 0.0.0.0 255.255.255.255
[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 0.0.0.0 255.255.255.255
[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 0.0.0.0 255.255.255.255
[r5]ospf 1 ro    
[r5]ospf 1 router-id 5.5.5.5 
[r5-ospf-1]area 0
[r5-ospf-1-area-0.0.0.0]net    
[r5-ospf-1-area-0.0.0.0]network 45.1.1.2 0.0.0.0
[r5-ospf-1-area-0.0.0.0]net    
[r5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[r6]rip 
[r6-rip-1]vers    
[r6-rip-1]version 2
[r6-rip-1]net     
[r6-rip-1]network 67.0.0.0
[r6-rip-1]net    
[r6-rip-1]network 6.0.0.0
[r7]rip 1
[r7-rip-1]vers    
[r7-rip-1]version 2
[r7-rip-1]net    
[r7-rip-1]network 67.0.0.0
[r7-rip-1]net     
[r7-rip-1]network 78.0.0.0
[r7-rip-1]net    
[r7-rip-1]network 7.0.0.0
[r8]rip 1
[r8-rip-1]vers    
[r8-rip-1]version 2
[r8-rip-1]net    
[r8-rip-1]network 78.0.0.0
[r8-rip-1]net    
[r8-rip-1]network 8.0.0.0

bgp

[r1]bgp 64512
[r1-bgp]ro    
[r1-bgp]route-select
[r1-bgp]router-id 1.1.1.1
[r1-bgp]co    
[r1-bgp]compare-different-as-med
[r1-bgp]confederation id 100
[r1-bgp]pe    
[r1-bgp]peer 2.2.2.2 as    
[r1-bgp]peer 2.2.2.2 as-number 64512
[r1-bgp]pe    
[r1-bgp]peer 2.2.2.2 co    
[r1-bgp]peer 2.2.2.2 connect-interface lo 0
[r1-bgp]
Jan 22 2024 19:07:27-08:00 r1 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
 peer 2.2.2.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  
[r2]bgp 64512
[r2-bgp]ro    
[r2-bgp]route-select
[r2-bgp]router-id 2.2.2.2
[r2-bgp]co    
[r2-bgp]compare-different-as-med
[r2-bgp]confederation id 100
[r2-bgp]pe    
[r2-bgp]peer 1.1.1.1 as    
[r2-bgp]peer 1.1.1.1 as-number 64512
[r2-bgp]pe    
[r2-bgp]peer 1.1.1.1 co    
[r2-bgp]peer 1.1.1.1 connect-interface lo 0 
[r2-bgp]pe    
[r2-bgp]peer 3.3.3.3 as    
[r2-bgp]peer 3.3.3.3 as-number 64512
[r2-bgp]pe    
[r2-bgp]peer 3.3.3.3 co    
[r2-bgp]peer 3.3.3.3 connect-interface lo 0 
[r2-bgp]
Jan 22 2024 19:07:27-08:00 r2 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
 peer 1.1.1.1 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  
[r2-bgp]pe    
[r2-bgp]peer 1.1.1.1 re    
[r2-bgp]peer 1.1.1.1 reflect-client 
[r2-bgp]pe    
[r2-bgp]peer 3.3.3.3 re    
[r2-bgp]peer 3.3.3.3 reflect-client 
[r2-bgp]
Jan 22 2024 19:10:21-08:00 r2 %%01BGP/3/STATE_CHG_UPDOWN(l)[1]:The status of the
 peer 3.3.3.3 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  
[r3]bgp 64512
[r3-bgp]ro    
[r3-bgp]route-select
[r3-bgp]router-id 3.3.3.3
[r3-bgp]co    
[r3-bgp]compare-different-as-med
[r3-bgp]confederation id 100
[r3-bgp]co    
[r3-bgp]compare-different-as-med
[r3-bgp]confederation pe    
[r3-bgp]confederation peer-as 64513
[r3-bgp]pe    
[r3-bgp]peer 2.2.2.2 as    
[r3-bgp]peer 2.2.2.2 as-number 64512
[r3-bgp]pe    
[r3-bgp]peer 2.2.2.2 co    
[r3-bgp]peer 2.2.2.2 connect-interface lo 0 
[r3-bgp]pe    
[r3-bgp]peer 3.3.3.3 as    
[r3-bgp]
Jan 22 2024 19:10:21-08:00 r3 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
 peer 2.2.2.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  
[r3-bgp]pe    
[r3-bgp]peer 4.4.4.4 as    
[r3-bgp]peer 4.4.4.4 as-number 64513
[r3-bgp]pe    
[r3-bgp]peer 4.4.4.4 co    
[r3-bgp]peer 4.4.4.4 connect-interface lo 0 
[r3-bgp]pe    
[r3-bgp]peer 4.4.4.4 e    
[r3-bgp]peer 4.4.4.4 ebgp-max-hop
[r3-bgp]
Jan 22 2024 19:13:40-08:00 r3 %%01BGP/3/STATE_CHG_UPDOWN(l)[1]:The status of the
 peer 4.4.4.4 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  

[r4]bgp 64513
[r4-bgp]ro    
[r4-bgp]route-select
[r4-bgp]router-id 4.4.4.4
[r4-bgp]co    
[r4-bgp]compare-different-as-med
[r4-bgp]confederation id 100
[r4-bgp]co    
[r4-bgp]compare-different-as-med
[r4-bgp]confederation pe    
[r4-bgp]confederation peer-as 64512
[r4-bgp]pee    
[r4-bgp]peer 3.3.3.3 as    
[r4-bgp]peer 3.3.3.3 as-number 64512 
[r4-bgp]pe    
[r4-bgp]peer 3.3.3.3 co    
[r4-bgp]peer 3.3.3.3 connect-interface lo 0
[r4-bgp]pe    
[r4-bgp]peer e    
[r4-bgp]peer 3.3.3.3 e    
[r4-bgp]peer 3.3.3.3 ebgp-max-hop
[r4-bgp]pe    
[r4-bgp]peer 5.5.5.5 as    
[r4-bgp]peer 5.5.5.5 as-number 64513
[r4-bgp]pe    
[r4-bgp]peer 
Jan 22 2024 19:13:40-08:00 r4 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
 peer 3.3.3.3 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  
[r4-bgp]peer 5.5.5.5 co    
[r4-bgp]peer 5.5.5.5 connect-interface lo 0 
[r4-bgp]
Jan 22 2024 19:17:03-08:00 r4 %%01BGP/3/STATE_CHG_UPDOWN(l)[1]:The status of the
 peer 5.5.5.5 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  
[r5]bgp 64513
[r5-bgp]
[r5-bgp]co    
[r5-bgp]compare-different-as-med
[r5-bgp]confederation id 100
[r5-bgp]ro    
[r5-bgp]route-select
[r5-bgp]router-id 5.5.5.5 
[r5-bgp]pe    
[r5-bgp]peer 4.4.4.4 as    
[r5-bgp]peer 4.4.4.4 as-number 64513
[r5-bgp]pe    
[r5-bgp]peer 4.4.4.4 co    
[r5-bgp]peer 4.4.4.4 connect-interface lo 0
[r5-bgp]pe    
[r5-bgp]peer 56.1.1.2 as    
[r5-bgp]peer 56.1.1.2 as-number 101
[r6]bgp 101
[r6-bgp]ro    
[r6-bgp]route-select
[r6-bgp]router-id 6.6.6.6
[r6-bgp]pe    
[r6-bgp]peer 56.1.1.1 as    
[r6-bgp]peer 56.1.1.1 as-number 100
[r6-bgp]pe    
[r6-bgp]peer 7.7.7.7 as    
[r6-bgp]peer 7.7.7.7 as-number 101
[r6-bgp]pe    
[r6-bgp]peer 7.7.7.7 co    
[r6-bgp]peer 7.7.7.7 connect-interface lo 0
[r7]bgp 101
[r7-bgp]ro    
[r7-bgp]route-select
[r7-bgp]router-id 7.7.7.7
[r7-bgp]pe    
[r7-bgp]peer 6.6.6.6 as    
[r7-bgp]peer 6.6.6.6 as-number 101
[r7-bgp]pe    
[r7-bgp]peer 6.6.6.6 co    
[r7-bgp]peer 6.6.6.6 connect-interface lo 0 
[r7-bgp]pe    
[r7-bgp]peer 6.6.6.6 re    
[r7-bgp]peer 6.6.6.6 reflect-client 
[r7-bgp]pe    
[r7-bgp]peer 8.8.8.8 as    
[r7-bgp]peer 8.8.8.8 as-number
Jan 22 2024 19:19:26-08:00 r7 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
 peer 6.6.6.6 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, Sta
teChangeReason=Up)  
[r7-bgp]peer 8.8.8.8 as-number 101
[r7-bgp]pe    
[r7-bgp]peer 8.8.8.8 co    
[r7-bgp]peer 8.8.8.8 connect-interface lo 0
[r7-bgp]pe    
[r7-bgp]peer 8.8.8.8 e    
[r7-bgp]peer 8.8.8.8 re    
[r7-bgp]peer 8.8.8.8 reflect-client 
[r8]bgp 101
[r8-bgp]ro    
[r8-bgp]route-select
[r8-bgp]router-id 8.8.8.8
[r8-bgp]pe    
[r8-bgp]peer 7.7.7.7 as     
[r8-bgp]peer 7.7.7.7 as-number 101
[r8-bgp]pe    
[r8-bgp]peer 7.7.7.7 co    
[r8-bgp]peer 7.7.7.7 connect-interface lo 0

重发布

[r5]bgp 64513
[r5-bgp]im    
[r5-bgp]import-route ospf  1
[r5-bgp]pe    
[r5-bgp]peer 4.4.4.4 ne    
[r5-bgp]peer 4.4.4.4 next-hop-invariable
[r5-bgp]peer 4.4.4.4 next-hop-local
[r6]bgp 101
[r6-bgp]im    
[r6-bgp]import-route rip 1
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值