GRE网络配置

 

 R1的配置:

    Reply from 15.1.1.2: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 15.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/22/30 ms

[R1-Serial4/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

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]ip r    
[R1]ip ro    
[R1]ip route-static 0.0.0.0 0 15.1.1.2
[R1]ping 5.5.5.5
  PING 5.5.5.5: 56  data bytes, press CTRL_C to break
    Reply from 5.5.5.5: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 5.5.5.5: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 5.5.5.5: bytes=56 Sequence=3 ttl=255 time=50 ms
    Reply from 5.5.5.5: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 5.5.5.5: bytes=56 Sequence=5 ttl=255 time=40 ms

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

[R1]int t    
[R1]int Tunnel 0/0/0
[R1-Tunnel0/0/0]ip add 10.1.1.1 24
[R1-Tunnel0/0/0]tu    
[R1-Tunnel0/0/0]tunnel-protocol gre p    
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R1-Tunnel0/0/0]sou    
[R1-Tunnel0/0/0]source 15.1.1.1
Jan 13 2022 23:43:34-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]nhrp en    
[R1-Tunnel0/0/0]nhrp entry mu    
[R1-Tunnel0/0/0]nhrp entry multicast dy    
[R1-Tunnel0/0/0]nhrp entry multicast dynamic 
[R1-Tunnel0/0/0]nhrp net    
[R1-Tunnel0/0/0]nhrp network-id 100
[R1-Tunnel0/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

<R1>ping 10.1.1.2
  PING 10.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

  --- 10.1.1.2 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

<R1>ping 10.1.1.3
  PING 10.1.1.3: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 10.1.1.3 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

<R1>
<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]int tu    
[R1]int Tunnel 0/0/0
[R1-Tunnel0/0/0]ping 10.1.1.3
  PING 10.1.1.3: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 10.1.1.3 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[R1-Tunnel0/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

<R1>ping 10.1.1.2
  PING 10.1.1.2: 56  data bytes, press CTRL_C to break
    Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=40 ms
    Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=40 ms
    Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=40 ms

  --- 10.1.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/34/40 ms

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]int tu    
[R1]int Tunnel 0/0/1
[R1-Tunnel0/0/1]ip add 10.1.2.1 24
[R1-Tunnel0/0/1]tu    
[R1-Tunnel0/0/1]tunnel-protocol gre
[R1-Tunnel0/0/1]so    
[R1-Tunnel0/0/1]source 15.1.1.1
[R1-Tunnel0/0/1]drs    
[R1-Tunnel0/0/1]des    
[R1-Tunnel0/0/1]dest    
[R1-Tunnel0/0/1]destination 45.1.1.1 
Jan 13 2022 23:59:16-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 
[R1-Tunnel0/0/1]
[R1-Tunnel0/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

<R1>ping 10.1.2.2
  PING 10.1.2.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 10.1.2.2 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

<R1>int tu    
<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]int tu    
[R1]int Tunnel 0/0/1
[R1-Tunnel0/0/1]disp    
[R1-Tunnel0/0/1]display th    
[R1-Tunnel0/0/1]display this 
[V200R003C00]
#
interface Tunnel0/0/1
 ip address 10.1.2.1 255.255.255.0 
 tunnel-protocol gre
 source 15.1.1.1
 destination 45.1.1.1
#
return
[R1-Tunnel0/0/1]ping 10.1.2.2
  PING 10.1.2.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 10.1.2.2 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[R1-Tunnel0/0/1]ping 10.1.2.2
  PING 10.1.2.2: 56  data bytes, press CTRL_C to break
    Reply from 10.1.2.2: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 10.1.2.2: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 10.1.2.2: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 10.1.2.2: bytes=56 Sequence=4 ttl=255 time=30 ms
    Reply from 10.1.2.2: bytes=56 Sequence=5 ttl=255 time=30 ms

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

[R1-Tunnel0/0/1]q
[R1]rip 1
[R1-rip-1]ver 2
[R1-rip-1]net    
[R1-rip-1]network 192.168.1.0
[R1-rip-1]net    
[R1-rip-1]network 10.0.0.0
[R1-rip-1]int tu    
[R1-rip-1]q
[R1]int tu    
[R1]int Tunnel 0/0/0
[R1-Tunnel0/0/0]undo rip s    
[R1-Tunnel0/0/0]undo rip split-horizon
[R1-Tunnel0/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

<R1>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<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

R2的配置:

The device is running!

<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname R2
[R2]

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

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

<R2>display ip r    
<R2>display ip ro    
<R2>display ip routing-table br    
<R2>display ip routing-table br
                             ^
Error: Wrong parameter found at '^' position.
<R2>
Jan 13 2022 23:23:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 
<R2>
Jan 13 2022 23:23:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]display ip routing-table br
                             ^
Error: Wrong parameter found at '^' position.
[R2]display ip routing-table brief\
                             ^
Error: Wrong parameter found at '^' position.
[R2]
Jan 13 2022 23:23:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 
[R2]
Jan 13 2022 23:23:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[R2]display ip r
Jan 13 2022 23:24:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 
[R2]display ip r
Jan 13 2022 23:24:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[R2]display ip int    
[R2]display ip interface br    
[R2]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 3
The number of interface that is UP in Protocol is 1
The number of interface that is DOWN in Protocol is 5

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              unassigned           up         down      
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
Serial4/0/0                       unassigned           up         down      
Serial4/0/1                       unassigned           down       down      
[R2]int
Jan 13 2022 23:24:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[6]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 
[R2]int
Jan 13 2022 23:24:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[7]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip add 192.168.2.1 24
Jan 13 2022 23:25:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[8]:The line protocol PPP
 on the interface Serial4/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]ip add 192.168.2.1 24
Jan 13 2022 23:25:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[9]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[R2-GigabitEthernet0/0/0]ip add 192.168.2.1 24
Jan 13 2022 23:25:29-08:00 R2 %%01IFNET/4/LINK_STATE(l)[10]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]int s4/0/0
[R2-Serial4/0/0]ip add 25.1.1.
Jan 13 2022 23:25:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[11]:The line protocol PP
P on the interface Serial4/0/0 has entered the UP state. 
[R2-Serial4/0/0]ip add 25.1.1.
Jan 13 2022 23:25:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[12]:The line protocol PP
P on the interface Serial4/0/0 has entered the DOWN state. 
[R2-Serial4/0/0]ip add 25.1.1.1 24
[R2-Serial4/0/0]ppp chap us
Jan 13 2022 23:26:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[13]:The line protocol PP
P on the interface Serial4/0/0 has entered the UP state. 
[R2-Serial4/0/0]ppp chap us
Jan 13 2022 23:26:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[14]:The line protocol PP
P on the interface Serial4/0/0 has entered the DOWN state. 
[R2-Serial4/0/0]ppp chap user bp    
[R2-Serial4/0/0]ppp chap user b p    
[R2-Serial4/0/0]ppp chap user b 
[R2-Serial4/0/0]ppp chap p    
[R2-Serial4/0/0]ppp chap password c    
[R2-Serial4/0/0]ppp chap password cipher 
Jan 13 2022 23:26:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[15]:The line protocol PP
P on the interface Serial4/0/0 has entered the UP state. 
[R2-Serial4/0/0]ppp chap password cipher 
Jan 13 2022 23:26:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[16]:The line protocol PP
P on the interface Serial4/0/0 has entered the DOWN state. 
[R2-Serial4/0/0]ppp chap password cipher 123456
[R2-Serial4/0/0]
Jan 13 2022 23:27:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[17]:The line protocol PP
P on the interface Serial4/0/0 has entered the UP state. 
[R2-Serial4/0/0]
Jan 13 2022 23:27:26-08:00 R2 %%01IFNET/4/LINK_STATE(l)[18]:The line protocol PP
P on the interface Serial4/0/0 has entered the DOWN state. 
[R2-Serial4/0/0]
Jan 13 2022 23:27:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[19]:The line protocol PP
P on the interface Serial4/0/0 has entered the UP state. 
[R2-Serial4/0/0]
Jan 13 2022 23:27:56-08:00 R2 %%01IFNET/4/LINK_STATE(l)[20]:The line protocol PP
P IPCP on the interface Serial4/0/0 has entered the UP state. 
[R2-Serial4/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

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]ip ro    
[R2]ip route-    
[R2]ip route-static 0.0.0.0 0 25.1.1.2
[R2]

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

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

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int tu    
[R2]int Tunnel 0/0/0
[R2-Tunnel0/0/0]tu    
[R2-Tunnel0/0/0]tunnel-protocol gre p    
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R2-Tunnel0/0/0]so    
[R2-Tunnel0/0/0]source 25.1.1.1
[R2-Tunnel0/0/0]undo so    
[R2-Tunnel0/0/0]undo source 25    
[R2-Tunnel0/0/0]undo source 25.1.1.1
                            ^
Error:Too many parameters found at '^' position.
[R2-Tunnel0/0/0]so    
[R2-Tunnel0/0/0]source Ser    
[R2-Tunnel0/0/0]source Serial 4/0/0
[R2-Tunnel0/0/0]nhrp en    
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 re    
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 register 
[R2-Tunnel0/0/0]net    
[R2-Tunnel0/0/0]nhrp net    
[R2-Tunnel0/0/0]nhrp network-id 100
[R2-Tunnel0/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

<R2>
<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]int tu    
[R2]int Tunnel 0/0/0
[R2-Tunnel0/0/0]dis    
[R2-Tunnel0/0/0]disp    
[R2-Tunnel0/0/0]display th    
[R2-Tunnel0/0/0]display this 
[V200R003C00]
#
interface Tunnel0/0/0
 tunnel-protocol gre p2mp
 source Serial4/0/0
 nhrp network-id 100
 nhrp entry 10.1.1.1 15.1.1.1 register
#
return
[R2-Tunnel0/0/0]ip add 10.1.1.2 24
Jan 13 2022 23:55:18-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R2-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
 ip address 10.1.1.2 255.255.255.0 
 tunnel-protocol gre p2mp
 source Serial4/0/0
 nhrp network-id 100
 nhrp entry 10.1.1.1 15.1.1.1 register
#
return
[R2-Tunnel0/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

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]rip 1
[R2-rip-1]ver 2
[R2-rip-1]net    
[R2-rip-1]network 10.0.0.0
[R2-rip-1]net    
[R2-rip-1]network 192.168.2.0
[R2-rip-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

<R2>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<R2>

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

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

<R2>

R3的配置:

The device is running!

<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname R3
[R3]

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

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

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int s4/0/0
[R3-Serial4/0/0]link-p    
[R3-Serial4/0/0]link-protocol h    
[R3-Serial4/0/0]link-protocol hdlc 
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Jan 13 2022 23:29:11-08:00 R3 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed 
the configuration that will change the encapsulation protocol of the link and th
en selected Y. 
[R3-Serial4/0/0]
Jan 13 2022 23:29:11-08:00 R3 %%01PPP/4/PHYSICALDOWN(l)[1]:On the interface Seri
al4/0/0, PPP link was closed because the status of the physical layer was Down. 
[R3-Serial4/0/0]
Jan 13 2022 23:29:11-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol PPP
 on the interface Serial4/0/0 has entered the DOWN state. 
[R3-Serial4/0/0]
Jan 13 2022 23:29:11-08:00 R3 %%01IFPDT/4/IF_STATE(l)[3]:Interface Serial4/0/0 h
as turned into DOWN state.
[R3-Serial4/0/0]
Jan 13 2022 23:29:12-08:00 R3 %%01IFPDT/4/IF_STATE(l)[4]:Interface Serial4/0/0 h
as turned into UP state.
[R3-Serial4/0/0]
Jan 13 2022 23:29:12-08:00 R3 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP 
on the interface Serial4/0/0 has entered the UP state. 
[R3-Serial4/0/0]ping 35.1.1.1
  PING 35.1.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 35.1.1.1 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[R3-Serial4/0/0]]
                ^
Error: Unrecognized command found at '^' position.
[R3-Serial4/0/0]ping 35.1.1.1
  PING 35.1.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 35.1.1.1 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[R3-Serial4/0/0]ping 35.1.1.1ipip
Error: Unknown host 35.1.1.1ipip.
[R3-Serial4/0/0]ip add 35.1.1.1 24
[R3-Serial4/0/0]ping 35.1.1.1
  PING 35.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 35.1.1.1: bytes=56 Sequence=1 ttl=255 time=30 ms
    Reply from 35.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms
    Reply from 35.1.1.1: bytes=56 Sequence=3 ttl=255 time=1 ms
    Reply from 35.1.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms
    Reply from 35.1.1.1: bytes=56 Sequence=5 ttl=255 time=1 ms

  --- 35.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 1/6/30 ms

[R3-Serial4/0/0]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 192.168.3.1 24
Jan 13 2022 23:33:32-08:00 R3 %%01IFNET/4/LINK_STATE(l)[6]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-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

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]ip ro    
[R3]ip route-    
[R3]ip route-static 0.0.0.0 0 35.1.1.2
[R3]

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

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

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int t    
[R3]int Tunnel 0/0/0
[R3-Tunnel0/0/0]tu    
[R3-Tunnel0/0/0]tunnel-protocol gre p    
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R3-Tunnel0/0/0]so    
[R3-Tunnel0/0/0]source S    
[R3-Tunnel0/0/0]source Serial 4/0/0
[R3-Tunnel0/0/0]nhrp net    
[R3-Tunnel0/0/0]nhrp en    
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 re    
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 15.1.1.1 register 
[R3-Tunnel0/0/0]nhrp net    
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/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

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int tu    
[R3]int Tunnel 0/0/0
[R3-Tunnel0/0/0]ip add 10.1.1.3 24
[R3-Tunnel0/0/0]
Jan 13 2022 23:56:25-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R3-Tunnel0/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

<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]rip 1
[R3-rip-1]ver 2
[R3-rip-1]net    
[R3-rip-1]network 10.0.0.0
[R3-rip-1]network 192.168.3.0
[R3-rip-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

<R3>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<R3>

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

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

R4的配置:

The device is running!

<Huawei>
<Huawei>sys    
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys    
[Huawei]sysname R4
[R4]

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

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

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 45.1.1.1 24
Jan 13 2022 23:35:18-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[R4-GigabitEthernet0/0/2]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 192.168.4.1 24
Jan 13 2022 23:36:04-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]q
[R4]ip ro    
[R4]ip route-    
[R4]ip route-static 0.0.0.0 0 45.1.1.2
[R4]

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

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

<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]int tu    
[R4]int Tunnel 0/0/0
[R4-Tunnel0/0/0]ip add 10.1.2.1 24
[R4-Tunnel0/0/0]tu    
[R4-Tunnel0/0/0]tunnel-protocol gre
[R4-Tunnel0/0/0]so    
[R4-Tunnel0/0/0]source 45.1.1.1
[R4-Tunnel0/0/0]source 15.1.1.1
[R4-Tunnel0/0/0]dest    
[R4-Tunnel0/0/0]destination 45.1.1.1
[R4-Tunnel0/0/0]ping 10.1.2.2
  PING 10.1.2.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 10.1.2.2 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[R4-Tunnel0/0/0]ip add 10.1.2.2 24
[R4-Tunnel0/0/0]ping 10.1.2.2
  PING 10.1.2.2: 56  data bytes, press CTRL_C to break
    Request time out
    Request time out
    Request time out
    Request time out
    Request time out

  --- 10.1.2.2 ping statistics ---
    5 packet(s) transmitted
    0 packet(s) received
    100.00% packet loss

[R4-Tunnel0/0/0]ip add 10.1.2.1 24
[R4-Tunnel0/0/0]ip add 10.1.2.2 24
[R4-Tunnel0/0/0]disp    
[R4-Tunnel0/0/0]display th    
[R4-Tunnel0/0/0]display this 
[V200R003C00]
#
interface Tunnel0/0/0
 ip address 10.1.2.2 255.255.255.0 
 tunnel-protocol gre
 source 15.1.1.1
 destination 45.1.1.1
#
return
[R4-Tunnel0/0/0]so    
[R4-Tunnel0/0/0]source 45.1.1.1
[R4-Tunnel0/0/0]dest    
[R4-Tunnel0/0/0]destination 15.1.1.1
Jan 14 2022 00:08:08-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R4-Tunnel0/0/0]
[R4-Tunnel0/0/0]rip 1
[R4-rip-1]ver 2
[R4-rip-1]net    
[R4-rip-1]network 10.0.0.0
[R4-rip-1]network 192.168.4.0
[R4-rip-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

<R4>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<R4>

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

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

<R4>

R5的配置:

[R5-Serial3/0/1]
Jan 13 2022 23:22:53-08:00 R5 %%01IFPDT/4/IF_STATE(l)[3]:Interface Serial3/0/1 h
as turned into UP state.
[R5-Serial3/0/1]
Jan 13 2022 23:22:56-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[4]:On the interface Serial
3/0/1, authentication failed and PPP link was closed because CHAP was disabled o
n the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:22:56-08:00 R5 %%01PPP/4/RESULTERR(l)[5]:On the interface Serial3
/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:23:26-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[6]:On the interface Serial
3/0/1, authentication failed and PPP link was closed because CHAP was disabled o
n the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:23:26-08:00 R5 %%01PPP/4/RESULTERR(l)[7]:On the interface Serial3
/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:23:56-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[8]:On the interface Serial
3/0/1, authentication failed and PPP link was closed because CHAP was disabled o
n the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:23:56-08:00 R5 %%01PPP/4/RESULTERR(l)[9]:On the interface Serial3
/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:24:26-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[10]:On the interface Seria
l3/0/1, authentication failed and PPP link was closed because CHAP was disabled 
on the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:24:26-08:00 R5 %%01PPP/4/RESULTERR(l)[11]:On the interface Serial
3/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:24:56-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[12]:On the interface Seria
l3/0/1, authentication failed and PPP link was closed because CHAP was disabled 
on the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:24:56-08:00 R5 %%01PPP/4/RESULTERR(l)[13]:On the interface Serial
3/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:25:26-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[14]:On the interface Seria
l3/0/1, authentication failed and PPP link was closed because CHAP was disabled 
on the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:25:26-08:00 R5 %%01PPP/4/RESULTERR(l)[15]:On the interface Serial
3/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:25:56-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[16]:On the interface Seria
l3/0/1, authentication failed and PPP link was closed because CHAP was disabled 
on the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:25:56-08:00 R5 %%01PPP/4/RESULTERR(l)[17]:On the interface Serial
3/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:26:26-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[18]:On the interface Seria
l3/0/1, authentication failed and PPP link was closed because CHAP was disabled 
on the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:26:26-08:00 R5 %%01PPP/4/RESULTERR(l)[19]:On the interface Serial
3/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:26:56-08:00 R5 %%01PPP/4/PEERNOCHAP(l)[20]:On the interface Seria
l3/0/1, authentication failed and PPP link was closed because CHAP was disabled 
on the peer. 
[R5-Serial3/0/1]
Jan 13 2022 23:26:56-08:00 R5 %%01PPP/4/RESULTERR(l)[21]:On the interface Serial
3/0/1, LCP negotiation failed because the result cannot be accepted. 
[R5-Serial3/0/1]
Jan 13 2022 23:27:27-08:00 R5 %%01IFNET/4/LINK_STATE(l)[22]:The line protocol PP
P on the interface Serial3/0/1 has entered the UP state. 
[R5-Serial3/0/1]
Jan 13 2022 23:27:27-08:00 R5 %%01PPP/4/CHAPAUTHFAIL(l)[23]:On the interface Ser
ial3/0/1, PPP link was closed because CHAP authentication failed. 
[R5-Serial3/0/1]
Jan 13 2022 23:27:27-08:00 R5 %%01IFNET/4/LINK_STATE(l)[24]:The line protocol PP
P on the interface Serial3/0/1 has entered the DOWN state. 
[R5-Serial3/0/1]int s4/0/0
[R5-Serial4/0/0]ip add
Jan 13 2022 23:27:57-08:00 R5 %%01IFNET/4/LINK_STATE(l)[25]:The line protocol PP
P on the interface Serial3/0/1 has entered the UP state. 
[R5-Serial4/0/0]ip add
Jan 13 2022 23:27:57-08:00 R5 %%01IFNET/4/LINK_STATE(l)[26]:The line protocol PP
P IPCP on the interface Serial3/0/1 has entered the UP state. 
[R5-Serial4/0/0]ip add 35.1.1.2 24
[R5-Serial4/0/0]link-p    
[R5-Serial4/0/0]link-protocol h    
[R5-Serial4/0/0]link-protocol hdlc 
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Jan 13 2022 23:28:29-08:00 R5 %%01IFNET/4/CHANGE_ENCAP(l)[27]:The user performed
 the configuration that will change the encapsulation protocol of the link and t
hen selected Y. 
[R5-Serial4/0/0]
[R5-Serial4/0/0]
Jan 13 2022 23:28:29-08:00 R5 %%01PPP/4/PHYSICALDOWN(l)[28]:On the interface Ser
ial4/0/0, PPP link was closed because the status of the physical layer was Down.
 
[R5-Serial4/0/0]
Jan 13 2022 23:28:29-08:00 R5 %%01IFNET/4/LINK_STATE(l)[29]:The line protocol PP
P on the interface Serial4/0/0 has entered the DOWN state. 
[R5-Serial4/0/0]
Jan 13 2022 23:28:29-08:00 R5 %%01IFPDT/4/IF_STATE(l)[30]:Interface Serial4/0/0 
has turned into DOWN state.
[R5-Serial4/0/0]
Jan 13 2022 23:28:30-08:00 R5 %%01IFPDT/4/IF_STATE(l)[31]:Interface Serial4/0/0 
has turned into UP state.
[R5-Serial4/0/0]
Jan 13 2022 23:28:30-08:00 R5 %%01IFNET/4/LINK_STATE(l)[32]:The line protocol IP
 on the interface Serial4/0/0 has entered the UP state. 
[R5-Serial4/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

<R5>sys
Enter system view, return user view with Ctrl+Z.
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 45.1.1.2 24
Jan 13 2022 23:34:04-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]ping 15.1.1.1
  PING 15.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 15.1.1.1: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 15.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 15.1.1.1: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 15.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 15.1.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 15.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/24/30 ms

[R5-GigabitEthernet0/0/0]ping 25.1.1.1
  PING 25.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 25.1.1.1: bytes=56 Sequence=1 ttl=255 time=50 ms
    Reply from 25.1.1.1: bytes=56 Sequence=2 ttl=255 time=40 ms
    Reply from 25.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 25.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 25.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms

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

[R5-GigabitEthernet0/0/0]ping 35.1.1.1
  PING 35.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 35.1.1.1: bytes=56 Sequence=1 ttl=255 time=20 ms
    Reply from 35.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 35.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 35.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 35.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms

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

[R5-GigabitEthernet0/0/0]ping 45.1.1.1
  PING 45.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 45.1.1.1: bytes=56 Sequence=1 ttl=255 time=90 ms
    Reply from 45.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 45.1.1.1: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 45.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 45.1.1.1: bytes=56 Sequence=5 ttl=255 time=20 ms

  --- 45.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/32/90 ms

[R5-GigabitEthernet0/0/0]disp    
[R5-GigabitEthernet0/0/0]display in    
[R5-GigabitEthernet0/0/0]display ip in    
[R5-GigabitEthernet0/0/0]display ip interface br
*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 3
The number of interface that is UP in Protocol is 6
The number of interface that is DOWN in Protocol is 3

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              45.1.1.2/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         5.5.5.5/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
Serial3/0/0                       15.1.1.2/24          up         up        
Serial3/0/1                       25.1.1.2/24          up         up        
Serial4/0/0                       35.1.1.2/24          up         up        
Serial4/0/1                       unassigned           down       down      
[R5-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

<R5>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<R5>

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

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

实现:

用pc1ping其它pc:

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

初夏_learning

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值