HCIP------MPLS

在这里插入图片描述

[r1]int loo0
[r1-LoopBack0]ip add 192.168.1.1 24
[r1-LoopBack0]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.2.1
^
Error:Incomplete command found at ‘^’ position.
[r1-GigabitEthernet0/0/1]ip add 192.168.2.1 24
Feb 12 2021 20:59:56-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r1-GigabitEthernet0/0/1]

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]ip rou
[r1]ip route
[r1]ip route-static 192.168.3.0 24 192.168.2.2
[r1]ip route-static 192.168.4.0 24 192.168.2.2
[r1]

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

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

ping 192.168.4.1
PING 192.168.4.1: 56 data bytes, press CTRL_C to break
Request time out
Reply from 192.168.4.1: bytes=56 Sequence=2 ttl=252 time=90 ms
Reply from 192.168.4.1: bytes=56 Sequence=3 ttl=252 time=40 ms
Reply from 192.168.4.1: bytes=56 Sequence=4 ttl=252 time=20 ms
Reply from 192.168.4.1: bytes=56 Sequence=5 ttl=252 time=30 ms

— 192.168.4.1 ping statistics —
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 20/45/90 ms
[r2]int loo0
[r2-LoopBack0]ip add 2.2.2.2 24
[r2-LoopBack0]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 23.1.1.1 24
Feb 12 2021 19:55:13-08:00 r2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[r2-GigabitEthernet0/0/1]
[r2-GigabitEthernet0/0/1]q
[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 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]net
[r2-ospf-1-area-0.0.0.0]network 23.1.1.1 0.0.0.0
[r2-ospf-1-area-0.0.0.0]
Feb 12 2021 19:58:19-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[r2-ospf-1-area-0.0.0.0]
Feb 12 2021 19:58:28-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[r2-ospf-1-area-0.0.0.0]
Feb 12 2021 19:58:29-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[r2-ospf-1-area-0.0.0.0]
Feb 12 2021 19:58:57-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge)
[r2-ospf-1-area-0.0.0.0]
Feb 12 2021 19:58:57-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)

[r2-ospf-1-area-0.0.0.0]
Feb 12 2021 19:58:57-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, NeighborE
vent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[r2-ospf-1-area-0.0.0.0]q
[r2-ospf-1]di
[r2-ospf-1]dialer
[r2-ospf-1]display ospf peer br
[r2-ospf-1]display ospf peer brief

 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

[r2-ospf-1]
Feb 12 2021 20:01:27-08:00 r2 %%01OSPF/3/NBR_DOWN_REASON(l)[10]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbo
rAreaId=0, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate reason=N
eighbor Down Due to 1-Wayhello Received, NeighborDownPrimeReason=1-Wayhello Rece
ived, NeighborChangeTime=2021-02-12 20:01:27-08:00)
[r2-ospf-1]
Feb 12 2021 20:01:27-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, Neighbor
Event=1-Way, NeighborPreviousState=Full, NeighborCurrentState=Init)
[r2-ospf-1]
Feb 12 2021 20:01:57-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[r2-ospf-1]
Feb 12 2021 20:01:57-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[r2-ospf-1]
Feb 12 2021 20:01:57-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[r2-ospf-1]
Feb 12 2021 20:01:57-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.23, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[r2-ospf-1]

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

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

ping 47.1.1.2
PING 47.1.1.2: 56 data bytes, press CTRL_C to break
Request time out
Request time out
Request time out
Request time out
Request time out

— 47.1.1.2 ping statistics —
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss

ping 47.1.1.2
PING 47.1.1.2: 56 data bytes, press CTRL_C to break
Reply from 47.1.1.2: bytes=56 Sequence=1 ttl=253 time=40 ms
Reply from 47.1.1.2: bytes=56 Sequence=2 ttl=253 time=20 ms
Reply from 47.1.1.2: bytes=56 Sequence=3 ttl=253 time=40 ms
Reply from 47.1.1.2: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 47.1.1.2: bytes=56 Sequence=5 ttl=253 time=50 ms

— 47.1.1.2 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/36/50 ms

sy
Enter system view, return user view with Ctrl+Z.
[r2]mpls ls
[r2]mpls lsr-id 2.2.2.2
[r2]mpls
Info: Mpls starting, please wait… OK!
[r2-mpls]mpls ldp
[r2-mpls-ldp]int g0/0/1
[r2-GigabitEthernet0/0/1]mpls
[r2-GigabitEthernet0/0/1]mpls ldp
[r2-GigabitEthernet0/0/1]
[r2-GigabitEthernet0/0/1]
[r2-GigabitEthernet0/0/1]q
[r2]ip vpn
[r2]ip vpn-instance a
[r2-vpn-instance-a]ip
[r2-vpn-instance-a]ip
[r2-vpn-instance-a]ipv4-family
[r2-vpn-instance-a-af-ipv4]rou
[r2-vpn-instance-a-af-ipv4]route-distinguisher 1:1
[r2-vpn-instance-a-af-ipv4]vpn
[r2-vpn-instance-a-af-ipv4]vpn-target 1:1
IVT Assignment result:
Info: VPN-Target assignment is successful.
EVT Assignment result:
Info: VPN-Target assignment is successful.
[r2-vpn-instance-a-af-ipv4]q
[r2-vpn-instance-a]int g0/0/2
[r2-GigabitEthernet0/0/2]ip bin
[r2-GigabitEthernet0/0/2]ip binding vpn
[r2-GigabitEthernet0/0/2]ip binding vpn-instance a
Info: All IPv4 related configurations on this interface are removed!
Info: All IPv6 related configurations on this interface are removed!
[r2-GigabitEthernet0/0/2]ip add 192.168.2.2 24
Feb 12 2021 20:10:50-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[r2-GigabitEthernet0/0/2]q
[r2]ip vpn
[r2]ip vpn-instance b
[r2-vpn-instance-b]ip
[r2-vpn-instance-b]ip
[r2-vpn-instance-b]ipv4-family
[r2-vpn-instance-b-af-ipv4]rou
[r2-vpn-instance-b-af-ipv4]route-distinguisher 2:2
[r2-vpn-instance-b-af-ipv4]vpn
[r2-vpn-instance-b-af-ipv4]vpn-target 2:2
IVT Assignment result:
Info: VPN-Target assignment is successful.
EVT Assignment result:
Info: VPN-Target assignment is successful.
[r2-vpn-instance-b-af-ipv4]q
[r2-vpn-instance-b]q
[r

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值