BGP综合实验

实验要求

1、AS 1中存在两个环回,一个地址为192.168.1.0/24,该地址不能在任何协议中宣告;
AS 3中存在两个环回,一个地址为192.168.2.0/24,该地址不能在任何协议中宣告,最终要求这两个环回可以ping通
2、整个AS 2的IP地址为172.16.0.0/16,请合理划分;并且其内部配置OSPF协议;
3、AS间的骨干链路IP地址随意定制;
4、使用BGP协议让整个网络所有设备的环回可以互相访问;
5、减少路由条目数量,避免环路出现;

实验拓扑图以及IP地址,网段划分如下

实验步骤

1.按要求配置IP地址

R1

[Huawei]sysname R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 12.1.1.1 24

[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]q


[R1]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.1.1.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.0.1/32        up         up(s)     
LoopBack1                         192.168.1.1/24       up         up(s)     
NULL0                             unassigned           up         up(s) 

R2

sysname R2

interface GigabitEthernet0/0/0
 ip address 12.1.1.2 255.255.255.0 
#
interface GigabitEthernet0/0/1
 ip address 172.16.1.1 255.255.255.252 
#
interface GigabitEthernet0/0/2
 ip address 172.16.1.21 255.255.255.252 
#
interface LoopBack0
 ip address 172.16.0.2 255.255.255.255 

R3

[Huawei]sysname R3

[R3]int g0/0/0

[R3-GigabitEthernet0/0/0]ip add 172.16.1.2 30

[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 172.16.1.5 30

[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]q
[R3]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.1.2/30        up         up        
GigabitEthernet0/0/1              172.16.1.5/30        up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.0.3/32        up         up(s)     
LoopBack1                         172.16.3.3/24        up         up(s)     
NULL0                             unassigned           up         up(s)

R4

[Huawei]sysname R4

[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 172.16.1.6 30

[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 172.16.1.9 30

[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]q
[R4]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.1.6/30        up         up        
GigabitEthernet0/0/1              172.16.1.9/30        up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.0.4/32        up         up(s)     
LoopBack1                         172.16.4.4/24        up         up(s)     
NULL0                             unassigned           up         up(s) 

R5

[Huawei]sysname R5

[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 172.16.1.22 30

[R5-GigabitEthernet0/0/0]int g0/0/1
[R5-GigabitEthernet0/0/1]ip add 172.16.1.17 30

[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]q
[R5]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.1.22/30       up         up        
GigabitEthernet0/0/1              172.16.1.17/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.0.5/32        up         up(s)     
LoopBack1                         172.16.5.5/24        up         up(s)     
NULL0                             unassigned           up         up(s) 

R6

[Huawei]sysname R6

[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 172.16.1.18 30

[R6-GigabitEthernet0/0/0]int g0/0/1
[R6-GigabitEthernet0/0/1]ip add 172.16.1.13 30

[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]q
[R6]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.1.18/30       up         up        
GigabitEthernet0/0/1              172.16.1.13/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.0.6/32        up         up(s)     
LoopBack1                         172.16.6.6/24        up         up(s)     
NULL0                             unassigned           up         up(s)  

R7

[Huawei]sysname R7

[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]ip add 172.16.1.14 30

[R7-GigabitEthernet0/0/0]int g0/0/1
[R7-GigabitEthernet0/0/1]ip add 172.16.1.10 30

[R7-GigabitEthernet0/0/1]int g0/0/2
[R7-GigabitEthernet0/0/2]ip add 34.1.1.7 24

[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]q
[R7]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 6
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 6
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              172.16.1.14/30       up         up        
GigabitEthernet0/0/1              172.16.1.10/30       up         up        
GigabitEthernet0/0/2              34.1.1.7/24          up         up        
LoopBack0                         172.16.0.7/32        up         up(s)     
LoopBack1                         172.16.7.7/24        up         up(s)     
NULL0                             unassigned           up         up(s) 

R8

[Huawei]sysname R8

[R8]int g0/0/0
[R8-GigabitEthernet0/0/0]ip add 34.1.1.8 24

[R8-GigabitEthernet0/0/0]int l0
[R8-LoopBack0]ip add 172.16.0.8 32

[R8-LoopBack0]int l1

[R8-LoopBack1]ip add 192.168.2.8 24

[R8-LoopBack1]q
[R8]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              34.1.1.8/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         172.16.0.8/32        up         up(s)     
LoopBack1                         192.168.2.8/24       up         up(s)     
NULL0                             unassigned           up         up(s) 

2.在AS2内及R2-R7上配置ospf协议,实现内部之间正常通信

R2

[R2]ospf 1 router-id 2.2.2.2 
[R3]a 0
 [R3]network 172.16.0.0 24

R3

[R3]ospf 1 router-id 3.3.3.3
[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]q

R4

[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]q

R5

[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]q

R6

[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]q

R7

[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]q

查看ospf邻居建立情况

R2

[R2]dis 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        
 ----------------------------------------------------------------------------

R3

<R3>dis ospf peer b

     OSPF Process 1 with Router ID 3.3.3.3
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             2.2.2.2          Full        
 0.0.0.0          GigabitEthernet0/0/1             4.4.4.4          Full        
 ----------------------------------------------------------------------------

R4

[R4]dis ospf peer b

     OSPF Process 1 with Router ID 4.4.4.4
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             3.3.3.3          Full        

 0.0.0.0          GigabitEthernet0/0/1             7.7.7.7          Full        
 ----------------------------------------------------------------------------

R5

[R5]dis ospf peer b

     OSPF Process 1 with Router ID 5.5.5.5
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             2.2.2.2          Full        
 0.0.0.0          GigabitEthernet0/0/1             6.6.6.6          Full        
 ----------------------------------------------------------------------------

R6

[R6]dis ospf peer b

     OSPF Process 1 with Router ID 6.6.6.6
          Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             5.5.5.5          Full        

 0.0.0.0          GigabitEthernet0/0/1             7.7.7.7          Full        
 ---------------------------------------------------------------------------

R7

[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        
 ----------------------------------------------------------------------------
 

3.配置BGP协议让所有设备之间进行相互访问

R1

[R1-bgp]peer 12.1.1.2 as-number 2

R2

[R2]bgp 64512
[R2]confederation id 2
[R2] confederation peer-as 64513
[R2] peer 12.1.1.1 as-number 1 
[R2]peer 172.16.0.3 as-number 64512 

[R2]peer 172.16.0.3 connect-interface LoopBack0

[R2]peer 172.16.0.3 next-hop-local 
[R2] peer 172.16.1.22 as-number 64513

[R2-bgp]peer 172.16.1.22 next-hop-local

R3

[R3]bgp 64512

[R3-bgp]peer 172.16.0.2 as-number 64512

[R3-bgp]peer 172.16.0.2 connect-interface l0

[R3-bgp]peer 172.16.0.4 as-number 64512

[R3-bgp]peer 172.16.0.4 connect-interface l0

R4

[R4]bgp 64512
[R4-bgp]confederation id 2

[R4-bgp]confederation peer-as 64513

[R4-bgp]peer 172.16.0.3 as-number 64512

R5

[R5]bgp 64513

[R5-bgp]confederation id 2
[R5-bgp]confederation peer    
[R5-bgp]confederation peer-as 64512

[R5-bgp]peer 172.16.1.21 as-number 64512

[R5-bgp]peer 172.16.1.21 next-hop-local

[R5-bgp]peer 172.16.0.6 as-number 64513

[R5-bgp]peer 172.16.0.6 connect-interface l0

[R5-bgp]peer 172.16.0.6 next-hop-local

R6

[R6]bgp 64513

[R6-bgp]peer 172.16.0.5 as-number 64513

[R6-bgp]peer 172.16.0.7 as-number 64513

[R6-bgp]peer 172.16.0.7 connect-interface l0

R7

[R7]bgp 64513

[R7-bgp]confederation id 2

[R7-bgp]confederation peer-as 64512

[R7-bgp]peer 172.16.0.6 as-number 64513

[R7-bgp]peer 172.16.0.6 connect-interface l0

[R7-bgp]peer 172.16.0.6 next-hop-local

[R7-bgp]peer 34.1.1.8 as-number 3

R8

[R8]bgp 3

[R8-bgp]peer 34.1.1.7 as-number 2

查看路由BGP邻居建立情况

R1

[R1]dis bgp peer 

 BGP local router ID : 12.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       21       22     0 00:19:39 Established  

R2

[R2]dis bgp peer 

 BGP local router ID : 12.1.1.2
 Local AS number : 64512
 Total number of peers : 3          Peers in established state : 3

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

  12.1.1.1        4           1       79       78     0 01:16:55 Established    
   1
  172.16.0.3      4       64512       69       71     0 01:07:27 Established    
   0
  172.16.1.22     4       64513       64       66     0 01:02:12 Established  

R3

[R3]dis bgp peer 

 BGP local router ID : 172.16.1.2
 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       12       12     0 00:10:48 Established    
   0
  172.16.0.4      4       64512       10       11     0 00:08:09 Established 

R4

[R4]dis bgp peer 

 BGP local router ID : 172.16.1.6
 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:09 Established  

R5

[R5]dis bgp peer 

 BGP local router ID : 172.16.1.22
 Local AS number : 64513
 Total number of peers : 2          Peers in established state : 2

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

  172.16.0.6      4       64513        5        7     0 00:03:57 Established    
   0
  172.16.1.21     4       64512        7        7     0 00:05:58 Established    

R6

[R6-bgp]dis bgp peer 

 BGP local router ID : 172.16.1.18
 Local AS number : 64513
 Total number of peers : 2          Peers in established state : 2

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

  172.16.0.5      4       64513        6        6     0 00:04:03 Established    
   0
  172.16.0.7      4       64513        4        6     0 00:02:14 Established  

R7

[R7-bgp]dis bgp peer 

 BGP local router ID : 172.16.1.14
 Local AS number : 64513
 Total number of peers : 2          Peers in established state : 2

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

  34.1.1.8        4           3        2        4     0 00:00:53 Established    
   0
  172.16.0.6      4       64513        4        4     0 00:02:17 Established  

R8

[R8-bgp]dis bgp peer 

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

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

  34.1.1.7        4           2        2        2     0 00:00:56 Established   

4.在R1上进行宣告,测试其他路由是否能学到所宣告的路由

[R2]dis bgp routing-table 

 BGP Local router ID is 12.1.1.2 
 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

 *>   172.16.0.1/32      12.1.1.1        0                     0      1i

[R3]dis bgp r    
[R3]dis bgp routing-table 

 BGP Local router ID is 172.16.1.2 
 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  172.16.0.1/32      172.16.0.2      0          100        0      1i

[R4]dis bgp routing-table 
[R4]

[R7]dis bgp routing-table 
[R7]

从测试结果可以看出:

R3上的路由条目为优后,可以加入路由表,但是因为BGP协议的水平分割,导致不能传递给R4,所以我们需要在R3上建立反射器。同样,路由传递给R5时也不优,也要修改下一跳为本地,并且R5传递路由给R6时,因为水平分割规则,也是不能传递给R7,所以R6也要做成反射器。

4.将R3和R6上配置反射器

R3

[R3]bgp 64512
[R3-bgp]peer 172.16.0.2 re    
[R3-bgp]peer 172.16.0.2 reflect-client 
[R3-bgp]peer 172.16.0.4 r    
[R3-bgp]peer 172.16.0.4 reflect-client

R6

[R6]bgp 64513

[R6-bgp]peer 172.16.0.5 reflect-client

[R6-bgp]peer 172.16.0.7 reflect-client

进行测试

[R4]dis bgp routing-table 

 BGP Local router ID is 172.16.1.6 
 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  172.16.0.1/32      172.16.0.2      0          100        0      1i

[R7]dis bgp routing-table 

 BGP Local router ID is 172.16.1.14 
 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  172.16.0.1/32      172.16.1.21     0          100        0      1i

测试成功

5.宣告网段,实现全网通

R1

[R1]bgp 1

[R1-bgp]net 172.16.0.1 32

R8

[R8]bgp 3

[R8-bgp]net 172.16.0.8 32

配置空节点

R2

[R2]ip route-static 172.16.0.0 16 NULL 0

[R2]bgp 64512
[R2-bgp]net 172.16.0.0 16

R7

[R7]ip route-static 172.16.0.0 16 NULL 0
[R7]bgp 64513
[R7-bgp]net 172.16.0.0 16

测试

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

  --- 172.16.4.4 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 30/44/80 ms

至此实现全网通

此时除了192.168.1.0和192.168.2.0不能正常通信,其他网段都可以,所以我们要在R1和R8之间

构建VPN隧道

[R1]int t0/0/0
[R1-Tunnel0/0/0]ip add 10.1.1.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre
[R1-Tunnel0/0/0]source 172.16.0.1
[R1-Tunnel0/0/0]destination 172.16.0.8
May 12 2024 21:52:01-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 route-static 192.168.2.0 24 Tunnel 0/0/0

[R8]int t0/0/0
[R8-Tunnel0/0/0]ip add 10.1.1.8 24
[R8-Tunnel0/0/0]tunnel-protocol gre
[R8-Tunnel0/0/0]source 172.16.0.8
[R8-Tunnel0/0/0]destination 172.16.0.1
May 12 2024 21:54:09-08:00 R8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R8-Tunnel0/0/0]q
[R8]ip route-static 192.168.1.0 24 Tunnel 0/0/0

测试

[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=120 ms
    Reply from 192.168.2.8: bytes=56 Sequence=2 ttl=255 time=60 ms
    Reply from 192.168.2.8: bytes=56 Sequence=3 ttl=255 time=50 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=50 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/64/120 ms

[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
 

[R1]ping -a 192.168.1.0 192.168.2.0
Warning: The specified source address is not a local address, the ping command w
ill not check the network connection.
  PING 192.168.2.0: 56  data bytes, press CTRL_C to break
    Reply from 192.168.2.8: bytes=56 Sequence=1 ttl=254 time=70 ms
    Reply from 192.168.2.8: bytes=56 Sequence=2 ttl=254 time=60 ms
    Reply from 192.168.2.8: bytes=56 Sequence=3 ttl=254 time=40 ms
    Reply from 192.168.2.8: bytes=56 Sequence=4 ttl=254 time=40 ms
    Reply from 192.168.2.8: bytes=56 Sequence=5 ttl=254 time=50 ms

  --- 192.168.2.0 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 40/52/70 ms
 

实验配置完成

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值