目录
1.IP配置
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[R1-GigabitEthernet0/0/0]
May 12 2024 16:39:29-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]int l0
[R1-LoopBack0]ip add 172.16.0.1 32
[R1-LoopBack0]int l1
[R1-LoopBack1]ip add 192.168.1.1 24
[R1-LoopBack1]
<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[R2-GigabitEthernet0/0/0]
May 12 2024 16:40:44-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]int g0/0/0
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 172.16.1.1 30
May 12 2024 16:41:20-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]int l0
[R2-LoopBack0]ip add 172.16.0.2 32
[R2-LoopBack0]int g0/0/2
[R2-GigabitEthernet0/0/2]ip add 172.16.1.21 30
[R2-GigabitEthernet0/0/2]
May 12 2024 16:46:43-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[R2-GigabitEthernet0/0/2]
<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 172.16.1.2 30
May 12 2024 16:42:25-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 g0/0/1
[R3-GigabitEthernet0/0/1]ip add 172.16.1.5 30
May 12 2024 16:42: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]int l0
[R3-LoopBack0]ip add 172.16.0.3 32
[R3-LoopBack0]int l1
[R3-LoopBack1]ip add 172.16.3.3 24
[R3-LoopBack1]
<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 172.16.1.6 30
May 12 2024 16:43:52-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]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 172.16.1.9 30
May 12 2024 16:44:09-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]int l0
[R4-LoopBack0]ip add 172.16.0.4 32
[R4-LoopBack0]int l1
[R4-LoopBack1]ip add 172.16.4.4 24
[R4-LoopBack1]
<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 172.16.1.22 30
[R5-GigabitEthernet0/0/0]
May 12 2024 16:45:42-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 g0/0/1
[R5-GigabitEthernet0/0/1]ip add 172.16.1.17 30
[R5-GigabitEthernet0/0/1]
May 12 2024 16:46:07-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 172.16.0.5 32
[R5-LoopBack0]int l1
[R5-LoopBack1]ip add 172.16.5.5 24
[R5-LoopBack1]
<R6>sys
Enter system view, return user view with Ctrl+Z.
[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 172.16.1.19 30
Error: The specified IP address is invalid.
[R6-GigabitEthernet0/0/0]ip add 172.16.1.18 30
[R6-GigabitEthernet0/0/0]
May 12 2024 16:48:44-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 g0/0/1
[R6-GigabitEthernet0/0/1]ip add 172.16.1.13 30
May 12 2024 16:49:10-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 172.16.0.6 32
[R6-LoopBack0]int l1
[R6-LoopBack1]ip add 172.16.6.6 24
[R6-LoopBack1]
Enter system view, return user view with Ctrl+Z.
[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 172.16.1.14 30
[R7-GigabitEthernet0/0/0]
May 12 2024 16:51:10-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]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 172.16.1.10 30
May 12 2024 16:51:46-08:00 R7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R7-GigabitEthernet0/0/1]int g0/0/2
[R7-GigabitEthernet0/0/2]ip add 34.1.1.7 24
May 12 2024 16:52:10-08:00 R7 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[R7-GigabitEthernet0/0/2]
[R7-GigabitEthernet0/0/2]int l0
[R7-LoopBack0]ip add 172.16.0.7 32
[R7-LoopBack0]int l1
[R7-LoopBack1]ip add 172.16.7.7 24
[R7-LoopBack1]
Enter system view, return user view with Ctrl+Z.
[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 172.16.1.14 30
[R7-GigabitEthernet0/0/0]
May 12 2024 16:51:10-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]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 172.16.1.10 30
May 12 2024 16:51:46-08:00 R7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R7-GigabitEthernet0/0/1]int g0/0/2
[R7-GigabitEthernet0/0/2]ip add 34.1.1.7 24
May 12 2024 16:52:10-08:00 R7 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[R7-GigabitEthernet0/0/2]
[R7-GigabitEthernet0/0/2]int l0
[R7-LoopBack0]ip add 172.16.0.7 32
[R7-LoopBack0]int l1
[R7-LoopBack1]ip add 172.16.7.7 24
[R7-LoopBack1]
2.ospf
[R2]ospf 1 ro
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]a 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-ospf-1-area-0.0.0.0]
[R3]ospf 1 ro
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]net
[R3-ospf-1]net
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[R3-ospf-1-area-0.0.0.0]
[R4]ospf 1 ro
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]a 0
[R4-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[R4-ospf-1-area-0.0.0.0]
Enter system view, return user view with Ctrl+Z.
[R5]ospf 1 ro
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[R5-ospf-1-area-0.0.0.0]
[R6]ospf 1 ro
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[R6-ospf-1-area-0.0.0.0]
Enter system view, return user view with Ctrl+Z.
[R7]ospf 1 ro
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[R7-ospf-1-area-0.0.0.0]
建邻成功
[R2]display ospf peer b
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]
[R7]dis ospf peer b
OSPF Process 1 with Router ID 7.7.7.7
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 6.6.6.6 Full
0.0.0.0 GigabitEthernet0/0/1 4.4.4.4 Full
----------------------------------------------------------------------------
[R7]
3.bgp配置
[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 p
[R2-bgp]confederation peer-as 64513
[R2-bgp]pe
[R2-bgp]peer as
[R2-bgp]peer 12.1.1.1 as
[R2-bgp]peer 12.1.1.1 as-number 1
[R2-bgp]peer 172.16.1.2
May 12 2024 18:44:37-08:00 R2 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
peer 12.1.1.1 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, St
ateChangeReason=Up)
[R2-bgp]peer 172.16.0.3 as
[R2-bgp]peer 172.16.0.3 as-path-filter
[R2-bgp]peer 172.16.0.3 as-number 64512
[R2-bgp]peer 172.16.0.3conn
[R2-bgp]peer 172.16.0.3 c
[R2-bgp]peer 172.16.0.3 connect-interface lo
[R2-bgp]peer 172.16.0.3 connect-interface LoopBack 0
[R2-bgp]peer 172.16.1.22 as
[R2-bgp]peer 172.16.1.22 as-number 64513
[R2-bgp]peer 172.16.1.22 net
[R2-bgp]peer 172.16.1.22 nex
[R2-bgp]peer 172.16.1.22 next-hop-local
[R2-bgp]peer 172.16.0.3 next
[R2-bgp]peer 172.16.0.3 next-hop-invariable
[R2-bgp]peer 172.16.0.3 next-hop-local
[R3-bgp]dis th
[V200R003C00]
#
bgp 64512
router-id 3.3.3.3
confederation id 2
peer 172.16.0.2 as-number 64512
peer 172.16.0.2 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 172.16.0.2 enable
#
return
[R3-bgp]
May 12 2024 18:59:04-08:00 R3 %%01BGP/3/STATE_CHG_UPDOWN(l)[4]:The status of the
peer 172.16.0.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[R3-bgp]peer 172.16.0.4 as
[R3-bgp]peer 172.16.0.4 as-number 64512
[R3-bgp]peer 172.16.0.4 con
[R3-bgp]peer 172.16.0.4 connect-interface l
[R3-bgp]peer 172.16.0.4 connect-interface LoopBack 0
[R3-bgp]connect
[R3-bgp]con
[R3-bgp]confederation p
[R3-bgp]confederation peer-as 64513
[R3-bgp]
Enter system view, return user view with Ctrl+Z.
[R4]bgp 64512
[R4-bgp]rou
[R4-bgp]route-select
[R4-bgp]router-id 4.4.4.4
[R4-bgp]con
[R4-bgp]confederation
[R4-bgp]confederation i
[R4-bgp]confederation id 2
[R4-bgp]con
[R4-bgp]confederation pe
[R4-bgp]confederation peer-as 64513
[R4-bgp]
[R4-bgp]peer 172.16.0.3 as
[R4-bgp]peer 172.16.0.3 as-number 64512
[R4-bgp]peer 172.16.0.3 con
[R4-bgp]peer 172.16.0.3 connect-interface l 0
[R4-bgp]peer 172.16.0.3 ne
[R4-bgp]peer 172.16.0.3 next-hop-invariable
[R4-bgp]peer 172.16.0.3 next-hop-local
[R4-bgp]
[R5-bgp]dis th
[V200R003C00]
#
bgp 64513
router-id 5.5.5.5
confederation id 2
confederation peer-as 64512
#
ipv4-family unicast
undo synchronization
#
return
[R5-bgp]peer 172.16.1.21 as
[R5-bgp]peer 172.16.1.21 as-number 64512
[R5-bgp]peer 172.16.1.21
May 12 2024 19:14:12-08:00 R5 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
peer 172.16.1.21 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[R5-bgp]peer 172.16.0.6 as
[R5-bgp]peer 172.16.0.6 as-path-filter
[R5-bgp]peer 172.16.0.6 as-number 64513
[R5-bgp]peer 172.16.0.6 next
[R5-bgp]peer 172.16.0.6 next-hop-local
[R5-bgp]peer 172.16.0.6 next-hop-
[R5-bgp]peer 172.16.0.6 next-hop-invariable
[R5-bgp]peer 172.16.0.6 next-hop-local
[R5-bgp]peer 172.16.0.6 next-hop-invariable
[R5-bgp]peer 172.16.0.6 conn
[R5-bgp]peer 172.16.0.6 connect-interface l
[R5-bgp]peer 172.16.0.6 connect-interface LoopBack 0
[R5-bgp]
<R6>sys
Enter system view, return user view with Ctrl+Z.
[R6]bgp 64513
[R6-bgp]peer 172.16.0.5 as
[R6-bgp]peer 172.16.0.5 as-number 64513
[R6-bgp]peer 172.16.0.7 as
[R6-bgp]peer 172.16.0.7 as-path-filter
[R6-bgp]peer 172.16.0.7 as-number 64513
[R6-bgp]
May 12 2024 19:19:23-08:00 R6 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of the
peer 172.16.0.5 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[R6-bgp]
[R6-bgp]peer 172.16.0.7 con
[R6-bgp]peer 172.16.0.7 connect-interface l 0
[R6-bgp]peer 172.16.0.5 c
[R6-bgp]peer 172.16.0.5 capability-advertise
[R6-bgp]peer 172.16.0.5 connect-interface l 0
May 12 2024 19:21:40-08:00 R6 %%01BGP/3/STATE_CHG_UPDOWN(l)[1]:The status of the
peer 172.16.0.5 changed from ESTABLISHED to IDLE. (InstanceName=Public, StateCh
angeReason=CEASE/Other Configuration Change)
[R6-bgp]
<R7>sys
Enter system view, return user view with Ctrl+Z.
[R7]bgp 64513
[R7-bgp]rou
[R7-bgp]route-select
[R7-bgp]router-id 7.7.7.7
[R7-bgp]conn
[R7-bgp]con
[R7-bgp]confederation i
[R7-bgp]confederation id 2
[R7-bgp]co
[R7-bgp]compare-different-as-med
[R7-bgp]confederation p
[R7-bgp]confederation peer-as 64512
[R7-bgp]peer 172.16.0.6 as
[R7-bgp]peer 172.16.0.6 as-number 64513
[R7-bgp]peer 172.16.0.6 con
[R7-bgp]peer 172.16.0.6 connect-interface l 0
[R7-bgp]
.16.0.4 4 64512 8 10 0 00:06:27 Established
0
R7-bgp]peer 172.16.0.6 ne
[R7-bgp]peer 172.16.0.6 next-hop-invariable
[R7-bgp]peer 172.16.0.6 next-hop-local
[R7-bgp]peer 34.1.1.8 as
[R7-bgp]peer 34.1.1.8 as-number 3
[R7-bgp]
[R8]bgp 3
[R8-bgp]ro
[R8-bgp]route-select
[R8-bgp]router-id 8.8.8.8
[R8-bgp]peer 34.1.1.7 as
[R8-bgp]peer 34.1.1.7 as-number 2
[R8-bgp]
实验现象
[R3]dis bgp peer
BGP local router ID : 3.3.3.3
Local AS number : 64512
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.2 4 64512 34 35 0 00:32:53 Established
0
172
[R4]dis bgp peer
BGP local router ID : 4.4.4.4
Local AS number : 64512
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.3 4 64512 3 3 0 00:01:37 Established
0
[R7]dis bgp peer
BGP local router ID : 7.7.7.7
Local AS number : 64513
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.6 4 64513 14 15 0 00:12:19 Established
0
[R7]
4.反射器
[R3-bgp]peer 172.16.0.2 reflect-client
[R3-bgp]peer 172.16.0.4 reflect-client
[R3-bgp]
[R6-bgp]peer 172.16.0.5 reflect-client
[R6-bgp]peer 172.16.0.7 reflect-client
[R6-bgp]q
实验现象
[R4]dis bgp routing-table
BGP Local router ID is 4.4.4.4
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
*>i 192.168.1.0 172.16.0.2 0 100 0 1i
[R7]dis bgp rou
BGP Local router ID is 7.7.7.7
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
*>i 192.168.1.0 172.16.1.21 0 100 0 (64512) 1i
[R7]
5.空接口
[R2]ip route-static 172.16.0.0 16 null 0
[R7]ip route-static 172.16.0.0 16 null 0
[R2-bgp]net 172.16.0.0 16
[R2-bgp]
[R7-bgp]net 172.16.0.0 16
[R7-bgp]
实验现象(bgp全网通)
[R1]ping -a 172.16.0.1 172.16.1.5
PING 172.16.1.5: 56 data bytes, press CTRL_C to break
Reply from 172.16.1.5: bytes=56 Sequence=1 ttl=254 time=50 ms
Reply from 172.16.1.5: bytes=56 Sequence=2 ttl=254 time=30 ms
Reply from 172.16.1.5: bytes=56 Sequence=3 ttl=254 time=30 ms
Reply from 172.16.1.5: bytes=56 Sequence=4 ttl=254 time=30 ms
Reply from 172.16.1.5: bytes=56 Sequence=5 ttl=254 time=30 ms
--- 172.16.1.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/34/50 ms
[R8]ping -a 172.16.0.8 172.16.0.6
PING 172.16.0.6: 56 data bytes, press CTRL_C to break
Reply from 172.16.0.6: bytes=56 Sequence=1 ttl=254 time=50 ms
Reply from 172.16.0.6: bytes=56 Sequence=2 ttl=254 time=40 ms
Reply from 172.16.0.6: bytes=56 Sequence=3 ttl=254 time=20 ms
Reply from 172.16.0.6: bytes=56 Sequence=4 ttl=254 time=30 ms
Reply from 172.16.0.6: bytes=56 Sequence=5 ttl=254 time=20 ms
--- 172.16.0.6 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/32/50 ms
[R8]ping -a 172.16.0.8 172.16 .
Error: Unknown host 172.16..
[R8]ping -a 172.16.0.8 172.16.0.5.5
Error: Unknown host 172.16.0.5.5.
[R8]ping -a 172.16.0.8 172.16.5.5
PING 172.16.5.5: 56 data bytes, press CTRL_C to break
Reply from 172.16.5.5: bytes=56 Sequence=1 ttl=253 time=50 ms
Reply from 172.16.5.5: bytes=56 Sequence=2 ttl=253 time=30 ms
Reply from 172.16.5.5: bytes=56 Sequence=3 ttl=253 time=40 ms
Reply from 172.16.5.5: bytes=56 Sequence=4 ttl=253 time=30 ms
Reply from 172.16.5.5: bytes=56 Sequence=5 ttl=253 time=30 ms
--- 172.16.5.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/36/50 ms
6.隧道配置
[R1]int t0/0/0
[R1-Tunnel0/0/0]tun
[R1-Tunnel0/0/0]tunnel-protocol gre
[R1-Tunnel0/0/0]sou
[R1-Tunnel0/0/0]source 172.16.0.1
[R1-Tunnel0/0/0]dest
[R1-Tunnel0/0/0]destination 172.16.0.8
[R1-Tunnel0/0/0]q
[R1]ip rou
[R1]ip route
[R1]ip route-static 192.168.2.0 24 10.1.1.8
<R8>sys
Enter system view, return user view with Ctrl+Z.
[R8]bgp 3
[R8-bgp]net 192.168.2.0 24
[R8-bgp]
[R8-bgp]q
[R8]int t0/0/0
[R8-Tunnel0/0/0]tun
[R8-Tunnel0/0/0]tunnel-protocol gre
[R8-Tunnel0/0/0]sou
[R8-Tunnel0/0/0]source 172.16.0.8
[R8-Tunnel0/0/0]de
[R8-Tunnel0/0/0]description
[R8-Tunnel0/0/0]destination172.16.0.1
^
Error: Unrecognized command found at '^' position.
[R8-Tunnel0/0/0]destination 172.16.0.1
[R8-Tunnel0/0/0]ip add 10.1.1.8 24
[R8-Tunnel0/0/0]q
[R8]ip add 192.168.1.0 24 10.1.1.1
^
Error: Unrecognized command found at '^' position.
[R8]ip rou
[R8]ip route
[R8]ip route-static 192.168.1.0 24 10.1.1.1
[R8]
实验现象
[R1]ping -a 192.168.1.1 192.168.2.8
PING 192.168.2.8: 56 data bytes, press CTRL_C to break
Reply from 192.168.2.8: bytes=56 Sequence=1 ttl=255 time=60 ms
Reply from 192.168.2.8: bytes=56 Sequence=2 ttl=255 time=50 ms
Reply from 192.168.2.8: bytes=56 Sequence=3 ttl=255 time=60 ms
Reply from 192.168.2.8: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 192.168.2.8: bytes=56 Sequence=5 ttl=255 time=70 ms
--- 192.168.2.8 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/56/70 ms
[R1]