HCIP------BGP2

在这里插入图片描述
在这里插入图片描述

[r1]int loo0
[r1-LoopBack0]ip add 192.168.1.1 24
[r1-LoopBack0]int loo1
[r1-LoopBack1]ip add 10.1.1.1 24
[r1-LoopBack1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
Jan 29 2021 20:20:30-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]

Please check whether system data has been changed, and save data in time

Configuration console time out, please press any key to log on

sy
Enter system view, return user view with Ctrl+Z.
[r1]ping 12.1.1.2
PING 12.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 12.1.1.2: bytes=56 Sequence=1 ttl=255 time=110 ms
Reply from 12.1.1.2: bytes=56 Sequence=2 ttl=255 time=60 ms
Reply from 12.1.1.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 12.1.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 12.1.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms

— 12.1.1.2 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/46/110 ms
[r1]bgp 1
[r1-bgp]rou
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.1.1.2 as
[r1-bgp]peer 12.1.1.2 as-number 2
[r1]display bgp peer

BGP local router ID : 1.1.1.1
Local AS number : 1
Total number of peers : 1 Peers in established state : 1

Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv

12.1.1.2 4 2 13 14 0 00:11:45 Established
0
[r1]bgp 1
[r1-bgp]net
[r1-bgp]network 10.1.1.0 24
[r1-bgp]di
[r1-bgp]dialer
[r1-bgp]display bgp rou
[r1-bgp]display bgp routing-table

BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.1.1.0/24 0.0.0.0 0 0 i
[r1]display bgp routing-table

BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.1.1.0/24 0.0.0.0 0 0 i
*> 10.1.2.0/24 12.1.1.2 0 2 3i
[r1]display bgp routing-table

BGP Local router ID is 1.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 3
Network NextHop MED LocPrf PrefVal Path/Ogn

*> 10.1.1.0/24 0.0.0.0 0 0 i
*> 10.1.2.0/24 12.1.1.2 0 2 3i
*> 172.16.0.0/21 12.1.1.2 0 0 2i
[r1]int tu0/0/0
[r1-Tunnel0/0/0]ip add 10.1.3.1 24
[r1-Tunnel0/0/0]sou
[r1-Tunnel0/0/0]sou
[r1-Tunnel0/0/0]tu
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]sou
[r1-Tunnel0/0/0]source 10.1.1.1
[r1-Tunnel0/0/0]de
[r1-Tunnel0/0/0]description
[r1-Tunnel0/0/0]destination 10.1.2.1
Jan 29 2021 21:45:55-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[r1-Tunnel0/0/0]
[r1-Tunnel0/0/0]q
[r1]ip rou
[r1]ip route
[r1]ip route-static 192.168.2.0 24 tu0/0/0
[r1]ping -a 192.168.1.1 192.168.2.1
PING 192.168.2.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.1: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 192.168.2.1: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 192.168.2.1: bytes=56 Sequence=3 ttl=255 time=60 ms
Reply from 192.168.2.1: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 192.168.2.1: bytes=56 Sequence=5 ttl=255 time=40 ms

— 192.168.2.1 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/46/60 ms

[r1]ping -a 10.1.1.1 172.16.4.1
PING 172.16.4.1: 56 data bytes, press CTRL_C to break
Reply from 172.16.4.1: bytes=56 Sequence=1 ttl=253 time=30 ms
Reply from 172.16.4.1: bytes=56 Sequence=2 ttl=253 time=30 ms
Reply from 172.16.4.1: bytes=56 Sequence=3 ttl=253 time=30 ms
Reply from 172.16.4.1: bytes=56 Sequence=4 ttl=253 time=40 ms
Reply from 172.16.4.1: bytes=56 Sequence=5 ttl=253 time=30 ms

— 172.16.4.1 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/32/40 ms

[r1]ping -a 10.1.1.1 172.16.6.1
PING 172.16.6.1: 56 data bytes, press CTRL_C to break
Reply from 172.16.6.1: bytes=56 Sequence=1 ttl=253 time=40 ms
Reply from 172.16.6.1: bytes=56 Sequence=2 ttl=253 time=30 ms
Reply from 172.16.6.1: bytes=56 Sequence=3 ttl=253 time=30 ms
Reply from 172.16.6.1: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 172.16.6.1: bytes=56 Sequence=5 ttl=253 time=30 ms

— 172.16.6.1 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/32/40 ms
[r2]int loo0
[r2-LoopBack0]ip add 172.16.2.1 24
[r2-LoopBack0]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
Jan 29 2021 20:21:01-08:00 r2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 172.16.0.1 30
Jan 29 2021 20:21:21-08:00 r2 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r2-GigabitEthernet0/0/1]int g0/0/2
[r2-GigabitEthernet0/0/2]ip add 172.16.0.17 30
[r2]ping 172.16.0.2
PING 172.16.0.2: 56 data bytes, press CTRL_C to break
Reply from 172.16.0.2: bytes=56 Sequence=1 ttl=255 time=90 ms
Reply from 172.16.0.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 172.16.0.2: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 172.16.0.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 172.16.0.2: bytes=56 Sequence=5 ttl=255 time=30 ms

— 172.16.0.2 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/38/90 ms

[r2]ping 172.16.0.18
PING 172.16.0.18: 56 data bytes, press CTRL_C to break
Reply from 172.16.0.18: bytes=56 Sequence=1 ttl=255 time=80 ms
Reply from 172.16.0.18: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 172.16.0.18: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 172.16.0.18: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 172.16.0.18: bytes=56 Sequence=5 ttl=255 time=30 ms

— 172.16.0.18 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/38/80 ms

[r2]ospf 1 rou
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]ar 0
[r2-ospf-1-area-0.0.0.0]net
[r2-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255
[r2]display osp peer br

 OSPF Process 1 with Router ID 2.2.2.2
	  Peer Statistic Information

Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/1 3.3.3.3 Full
0.0.0.0 GigabitEthernet0/0/2 5.5.5.5 Full

[r2]bgp 64512
[r2-bgp]rou
[r2-bgp]route-select
[r2-bgp]router-id 2.2.2.2
[r2-bgp]con
[r2-bgp]confederation id 2
[r2-bgp]con
[r2-bgp]confederation pee
[r2-bgp]confederation peer-as 64513
[r2-bgp]peer 12.1.1.1 as-number 1
[r2-bgp]peer 172.16.3.1 as
[r2-bgp]peer 172.16.3.1 as-path-filter
[r2-bgp]peer 172.16.3.1 as-number 64512
[r2-bgp]peer 172.16.3.1 con
[r2-bgp]peer 172.16.3.1 connect-interface loo0
[r2-bgp]peer 172.16.5.1 as
[r2-bgp]peer 172.16.5.1 as-number 6
Jan 29 2021 21:30:11-08:00 r2 %%01BGP/3/STATE_CHG_UPDOWN(l)[2]:The status of the
peer 12.1.1.1 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, St
ateChangeReason=Up)
[r2-bgp]peer 172.16.5.1 as-number 64513
[r2-bgp]peer 172.16.5.1 con
[r2-bgp]peer 172.16.5.1 connect-interface loo0
[r2-bgp]peer 172.16.5.1 eb
Jan 29 2021 21:30:33-08:00 r2 %

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值