HCIA综合实验

1.拓扑图

2.需求

1)ISP路由器仅配置IP地址

2)内部网络基于192.168。1.0/24网段进行IP规划

3)R1/R2之间使用OSPF做到内网全通,单区域

4)PC1-PC4可以访问DHCP获取地址

5)PC2-PC4可以访问PC5;PC1不行

6)R2出口只拥有一个公网IP

7)test-1设备可以登录到内网telnet服务器;test-2不行

3.配置内容

Telnet Server:

The device is running!

<Huawei>

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

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

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys Telnet Server
[Telnet Server]int g 0/0/0
[Telnet Server-GigabitEthernet0/0/0]ip add	
[Telnet Server-GigabitEthernet0/0/0]ip address 192.168.1.98 28
[Telnet Server-GigabitEthernet0/0/0]
May 17 2023 23:29:33-08:00 Telnet Server %%01IFNET/4/LINK_STATE(l)[0]:The line p
rotocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Telnet Server-GigabitEthernet0/0/0]q
[Telnet Server]

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

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

<Telnet Server>sys
Enter system view, return user view with Ctrl+Z.
[Telnet Server]us	
[Telnet Server]user-bind
[Telnet Server]user-group
[Telnet Server]user-interface vty 0 4
[Telnet Server-ui-vty0-4]au 
                         ^
Error:Ambiguous command found at '^' position.
[Telnet Server-ui-vty0-4]au	
[Telnet Server-ui-vty0-4]authentication-mode aaa
[Telnet Server-ui-vty0-4]q
[Telnet Server]aaa
[Telnet Server-aaa]local	
[Telnet Server-aaa]local-user huawei pa	
[Telnet Server-aaa]local-user huawei password ci	
[Telnet Server-aaa]local-user huawei password cipher 123456
Info: Add a new user.
[Telnet Server-aaa]loc	
[Telnet Server-aaa]local-user huawei pri	
[Telnet Server-aaa]local-user huawei privilege le	
[Telnet Server-aaa]local-user huawei privilege level 15
[Telnet Server-aaa]loc	
[Telnet Server-aaa]local-user huawei serv	
[Telnet Server-aaa]local-user huawei service-type tel	
[Telnet Server-aaa]local-user huawei service-type telnet 
[Telnet Server-aaa]q
[Telnet Server]

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

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

<Telnet Server>sys
Enter system view, return user view with Ctrl+Z.
[Telnet Server]ip rou 0.0.0.0 0 192.168.1.97
[Telnet Server]

 test-1:

<Huawei>
May 17 2023 23:34:34-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys test1
[test1]int g 0/0/0
[test1-GigabitEthernet0/0/0]ip add	
[test1-GigabitEthernet0/0/0]ip address 203.1.1.2 24
May 17 2023 23:35:18-08:00 test1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol 
IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[test1-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

<test1>sys
Enter system view, return user view with Ctrl+Z.
[test1]ip rou	
[test1]ip route202.1.1.1 32 203.1.1.1
          ^
Error: Unrecognized command found at '^' position.
[test1]ip rou	
[test1]ip route-static 202.1.1.1 32 203.1.1.1
[test1]ping 202.1.1.1
  PING 202.1.1.1: 56  data bytes, press CTRL_C to break
    Request time out
    Reply from 202.1.1.1: bytes=56 Sequence=2 ttl=254 time=150 ms
    Reply from 202.1.1.1: bytes=56 Sequence=3 ttl=254 time=40 ms
    Reply from 202.1.1.1: bytes=56 Sequence=4 ttl=254 time=50 ms
    Reply from 202.1.1.1: bytes=56 Sequence=5 ttl=254 time=30 ms

  --- 202.1.1.1 ping statistics ---
    5 packet(s) transmitted
    4 packet(s) received
    20.00% packet loss
    round-trip min/avg/max = 30/67/150 ms

[test1]q
<test1>ping 202.1.1.1
  PING 202.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 202.1.1.1: bytes=56 Sequence=1 ttl=254 time=50 ms
    Reply from 202.1.1.1: bytes=56 Sequence=2 ttl=254 time=50 ms
    Reply from 202.1.1.1: bytes=56 Sequence=3 ttl=254 time=60 ms
    Reply from 202.1.1.1: bytes=56 Sequence=4 ttl=254 time=70 ms
    Reply from 202.1.1.1: bytes=56 Sequence=5 ttl=254 time=40 ms

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

<test1>tel	
<test1>telnet 202.1.1.1
  Press CTRL_] to quit telnet mode
  Trying 202.1.1.1 ...
  Error: Can't connect to the remote host
<test1>tel	
<test1>telnet 202.1.1.1
  Press CTRL_] to quit telnet mode
  Trying 202.1.1.1 ...
  Connected to 202.1.1.1 ...

Login authentication


Username:huawei
Password:
  ----------------------------------------------------------------------------- 
    
  User last login information:     
  -----------------------------------------------------------------------------
  Access Type: Telnet      
  IP-Address : 192.168.1.97     
  Time       : 2023-05-18 00:04:20-08:00     
  -----------------------------------------------------------------------------
<Telnet Server>
<Telnet Server>tel	
<Telnet Server>telnet 202.1.1.1
  Press CTRL_] to quit telnet mode
  Trying 202.1.1.1 ...
  Connected to 202.1.1.1 ...

Don't support null authentication-mode.
  The connection was closed by the remote host
<Telnet Server>

test-2:

<Huawei>

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

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

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys test2
[test2]int g 0/0/0
[test2-GigabitEthernet0/0/0]ip add	
[test2-GigabitEthernet0/0/0]ip address 203.1.1.3 24
May 17 2023 23:35:49-08:00 test2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol 
IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[test2-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

<test2>sys
Enter system view, return user view with Ctrl+Z.
[test2]ip rou 202.1.1.1 32 203.1.1.1
[test2]q
<test2>tel	
<test2>telnet 202.1.1.1
  Press CTRL_] to quit telnet mode
  Trying 202.1.1.1 ...
  Connected to 202.1.1.1 ...

Login authentication


Username:huawei 
Password:
Error: Failed to send authen-req.

  Logged Fail!

Username:huawei
Password:
  ----------------------------------------------------------------------------- 
    
  User last login information:     
  -----------------------------------------------------------------------------
  Access Type: Telnet      
  IP-Address : 203.1.1.2     
  Time       : 2023-05-18 00:11:31-08:00     
  -----------------------------------------------------------------------------
<Telnet Server>
  The connection was closed by the remote host
<test2>

lsw1:

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw1
[sw1]
May 17 2023 22:56:42-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1]vlan 2
[sw1-vlan2]q
[sw1]vlan 3
[sw1-vlan3]q
[sw1]vlan 
May 17 2023 22:57:02-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.
          ^
Error:Incomplete command found at '^' position.
[sw1]vlan 4
[sw1-vlan4]
May 17 2023 22:57:12-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.q
[sw1]
[sw1]int	
[sw1]interface g	
[sw1]interface GigabitEthernet 0/0/2
[sw1-GigabitEthernet0/0/2]port	
[sw1-GigabitEthernet0/0/2]port link-f	
[sw1-GigabitEthernet0/0/2]port link-flap 	
[sw1-GigabitEthernet0/0/2]port link-ty	
[sw1-GigabitEthernet0/0/2]port link-type access
[sw1-GigabitEthernet0/0/2]port de	
[sw1-GigabitEthernet0/0/2]port default 
May 17 2023 23:01:12-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 8, the c
hange loop count is 0, and the maximum number of records is 4095.vlan 2
[sw1-GigabitEthernet0/0/2]
May 17 2023 23:01:22-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 9, the c
hange loop count is 0, and the maximum number of records is 4095.int g 0
                          ^
Error: Unrecognized command found at '^' position.
[sw1-GigabitEthernet0/0/2]int g 0/0/3
[sw1-GigabitEthernet0/0/3]port link-type access
[sw1-GigabitEthernet0/0/3]port de	
[sw1-GigabitEthernet0/0/3]port default 
May 17 2023 23:03:52-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 10, the 
change loop count is 0, and the maximum number of records is 4095.vlan 3
[sw1-GigabitEthernet0/0/3]
May 17 2023 23:04:02-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 11, the 
change loop count is 0, and the maximum number of records is 4095.int g	
[sw1-GigabitEthernet0/0/3]int g 0/0/4
[sw1-GigabitEthernet0/0/4]port link-ty	
[sw1-GigabitEthernet0/0/4]port link-type acc	
[sw1-GigabitEthernet0/0/4]port link-type access 
[sw1-GigabitEthernet0/0/4]port de	
[sw1-GigabitEthernet0/0/4]port default 
May 17 2023 23:04:32-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 12, the 
change loop count is 0, and the maximum number of records is 4095.vlan 4
[sw1-GigabitEthernet0/0/4]
May 17 2023 23:04:42-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 13, the 
change loop count is 0, and the maximum number of records is 4095.q
[sw1]int g 0/0/1
[sw1-GigabitEthernet0/0/1]port link-ty	
[sw1-GigabitEthernet0/0/1]port link-type tr	
[sw1-GigabitEthernet0/0/1]port link-type trunk 
[sw1-GigabitEthernet0/0/1]
May 17 2023 23:06:02-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 14, the 
change loop count is 0, and the maximum number of records is 4095.port t	
[sw1-GigabitEthernet0/0/1]port trunk all	
[sw1-GigabitEthernet0/0/1]port trunk allow-pass vlan 2 3 4 
[sw1-GigabitEthernet0/0/1]q
[sw1]
May 17 2023 23:07:12-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 15, the 
change loop count is 0, and the maximum number of records is 4095.dis vlan
The total number of vlans is : 4
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:GE0/0/1(U)      GE0/0/5(D)      GE0/0/6(D)      GE0/0/7(D)      
                GE0/0/8(D)      GE0/0/9(D)      GE0/0/10(D)     GE0/0/11(D)     
                GE0/0/12(D)     GE0/0/13(D)     GE0/0/14(D)     GE0/0/15(D)     
                GE0/0/16(D)     GE0/0/17(D)     GE0/0/18(D)     GE0/0/19(D)     
                GE0/0/20(D)     GE0/0/21(D)     GE0/0/22(D)     GE0/0/23(D)     
                GE0/0/24(D)                                                     

2    common  UT:GE0/0/2(U)                                                      

             TG:GE0/0/1(U)                                                      

3    common  UT:GE0/0/3(U)                                                      

             TG:GE0/0/1(U)                                                      

4    common  UT:GE0/0/4(U)                                                      

             TG:GE0/0/1(U)                                                      


VID  Status  Property      MAC-LRN Statistics Description      
--------------------------------------------------------------------------------

1    enable  default       enable  disable    VLAN 0001                         
2    enable  default       enable  disable    VLAN 0002                         
3    enable  default       enable  disable    VLAN 0003                         
4    enable  default       enable  disable    VLAN 0004                         
[sw1] User interface con0 is available

lsw2:

<Huawei>
<Huawei>
May 17 2023 22:58:56-08:00 Huawei %%01PHY/1/PHY(l)[0]:    GigabitEthernet0/0/1: 
change status to down
May 17 2023 22:59:01-08:00 Huawei %%01PHY/1/PHY(l)[1]:    GigabitEthernet0/0/1: 
change status to up User interface con0 is available



Please Press ENTER.

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys sw2
[sw2]
May 17 2023 23:09:12-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.vlan 2
[sw2-vlan2]q
[sw2]vlan 3
[sw2-vlan3]q
[sw2]
May 17 2023 23:09:32-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.port link-t	
[sw2]int g 0/0/2
[sw2-GigabitEthernet0/0/2]port link-t	
[sw2-GigabitEthernet0/0/2]port link-type access
[sw2-GigabitEthernet0/0/2]
May 17 2023 23:12:22-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.port de	
[sw2-GigabitEthernet0/0/2]port default vlan 2
[sw2-GigabitEthernet0/0/2]
May 17 2023 23:12:42-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 8, the c
hange loop count is 0, and the maximum number of records is 4095.int g 0/0/3
[sw2-GigabitEthernet0/0/3]port link-t	
[sw2-GigabitEthernet0/0/3]port link-type access
[sw2-GigabitEthernet0/0/3]port de	
[sw2-GigabitEthernet0/0/3]port default 
May 17 2023 23:13:22-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 9, the c
hange loop count is 0, and the maximum number of records is 4095.vlan 3
[sw2-GigabitEthernet0/0/3]int g 0/0/1
[sw2-GigabitEthernet0/0/1]port 
May 17 2023 23:13:42-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 10, the 
change loop count is 0, and the maximum number of records is 4095.link-t	
[sw2-GigabitEthernet0/0/1]port link-type tr	
[sw2-GigabitEthernet0/0/1]port link-type trunk 
[sw2-GigabitEthernet0/0/1]port tr
May 17 2023 23:14:32-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 11, the 
change loop count is 0, and the maximum number of records is 4095.	
[sw2-GigabitEthernet0/0/1]port trunk all	
[sw2-GigabitEthernet0/0/1]port trunk allow-pass vlan 2 3
[sw2-GigabitEthernet0/0/1]
May 17 2023 23:14:52-08:00 sw2 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 12, the 
change loop count is 0, and the maximum number of records is 4095.q
[sw2] User interface con0 is available

ISP:

<Huawei>
May 17 2023 22:58:19-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into DOWN state.
<Huawei>
May 17 2023 22:58:40-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>
May 17 2023 22:58:53-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[2]:Interface GigabitEt
hernet0/0/0 has turned into DOWN state.
<Huawei>
May 17 2023 22:59:06-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[3]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>

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

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

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys ISP
[ISP]int g 0/0/0
[ISP-GigabitEthernet0/0/0]ip add	
[ISP-GigabitEthernet0/0/0]ip address 202.1.1.2 30
May 17 2023 23:27:45-08:00 ISP %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ISP-GigabitEthernet0/0/0]int g 0/0/1
[ISP-GigabitEthernet0/0/1]ip add	
[ISP-GigabitEthernet0/0/1]ip address 203.1.1.1 24
May 17 2023 23:28:14-08:00 ISP %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[ISP-GigabitEthernet0/0/1]q

AR1:

<Huawei>
May 17 2023 22:58:14-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/1 has turned into DOWN state.
<Huawei>
May 17 2023 22:58:26-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface GigabitEt
hernet0/0/1 has turned into UP state.
<Huawei>

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

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

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys r1
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add	
[r1-GigabitEthernet0/0/1]ip address 192.168.1.1 26
[r1-GigabitEthernet0/0/1]
May 17 2023 23:17:44-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]q
[r1]int g 0/0/0.1
[r1-GigabitEthernet0/0/0.1]ip add	
[r1-GigabitEthernet0/0/0.1]ip address 192.168.1.65 28
[r1-GigabitEthernet0/0/0.1]dot	
[r1-GigabitEthernet0/0/0.1]dot1q ter	
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2	
[r1-GigabitEthernet0/0/0.1]dot1q termination vid 2
[r1-GigabitEthernet0/0/0.1]
May 17 2023 23:19:20-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0.1 has entered the UP state. 
[r1-GigabitEthernet0/0/0.1]arp bro	
[r1-GigabitEthernet0/0/0.1]arp broadcast enable
[r1-GigabitEthernet0/0/0.1]q
[r1]int g 0/0/0.2
[r1-GigabitEthernet0/0/0.2]ip add	
[r1-GigabitEthernet0/0/0.2]ip address 192.168.1.81 28
[r1-GigabitEthernet0/0/0.2]dot	
[r1-GigabitEthernet0/0/0.2]dot1q ter	
[r1-GigabitEthernet0/0/0.2]dot1q termination v	
[r1-GigabitEthernet0/0/0.2]dot1q termination vid 3
May 17 2023 23:20:24-08:00 r1 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0.2 has entered the UP state. 
[r1-GigabitEthernet0/0/0.2]arp bro	
[r1-GigabitEthernet0/0/0.2]arp broadcast en	
[r1-GigabitEthernet0/0/0.2]arp broadcast enable 
[r1-GigabitEthernet0/0/0.2]int g 0/0/0.3
[r1-GigabitEthernet0/0/0.3]ip add	
[r1-GigabitEthernet0/0/0.3]ip address 192.168.1.97 28
[r1-GigabitEthernet0/0/0.3]dot	
[r1-GigabitEthernet0/0/0.3]dot1q ter	
[r1-GigabitEthernet0/0/0.3]dot1q termination vid 4
May 17 2023 23:21:44-08:00 r1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0.3 has entered the UP state. 
[r1-GigabitEthernet0/0/0.3]arp bro	
[r1-GigabitEthernet0/0/0.3]arp broadcast en	
[r1-GigabitEthernet0/0/0.3]arp broadcast enable 
[r1-GigabitEthernet0/0/0.3]q
[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>sys
Enter system view, return user view with Ctrl+Z.
[r1]ospf l	
[r1]ospf 1 rou 1.1.1.1
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]net	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0]net	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.65 0.0.0.0
[r1-ospf-1-area-0.0.0.0]net	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.81 0.0.0.0
[r1-ospf-1-area-0.0.0.0]net	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.97 0.0.0.0
[r1-ospf-1-area-0.0.0.0]q
[r1-ospf-1]dis th
[V200R003C00]
#
ospf 1 router-id 1.1.1.1 
 area 0.0.0.0 
  network 192.168.1.1 0.0.0.0 
  network 192.168.1.65 0.0.0.0 
  network 192.168.1.81 0.0.0.0 
  network 192.168.1.97 0.0.0.0 
#
return
[r1-ospf-1]
May 17 2023 23:40:22-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r1-ospf-1]
May 17 2023 23:40:27-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 

[r1-ospf-1]
May 17 2023 23:40:27-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r1-ospf-1]
May 17 2023 23:40:27-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r1-ospf-1]
May 17 2023 23:40:27-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r1-ospf-1]q
[r1]dhcp en	
[r1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]net	
[r1-ip-pool-1]netbios-type
[r1-ip-pool-1]network192.168.1.64 ma	
[r1-ip-pool-1]network 192.168.1.64 mask 28
[r1-ip-pool-1]ga	
[r1-ip-pool-1]gateway-list 192.168.1.65
[r1-ip-pool-1]q
[r1]ip pool 2
Info: It's successful to create an IP address pool.
[r1-ip-pool-2]net	
[r1-ip-pool-2]netbios-type
[r1-ip-pool-2]network192.168.1.80 mask 28
              ^
Error: Unrecognized command found at '^' position.
[r1-ip-pool-2]net	
[r1-ip-pool-2]netbios-type
[r1-ip-pool-2]network 192.168.1.80 mask 28
[r1-ip-pool-2]g	
[r1-ip-pool-2]gateway-list 192.168.1.81
[r1-ip-pool-2]Q
[r1]	
[r1]int g 0/0/0.1
[r1-GigabitEthernet0/0/0.1]dhcp se	
[r1-GigabitEthernet0/0/0.1]dhcp select g	
[r1-GigabitEthernet0/0/0.1]dhcp select global 
[r1-GigabitEthernet0/0/0.1]q
[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>sys
Enter system view, return user view with Ctrl+Z.
[r1]dis
        ^
Error:Incomplete command found at '^' position.
[r1]dis	
[r1]display ip rou p 	
[r1]display ip rou protocol o	
[r1]display ip rou protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 3        Routes : 3        

OSPF routing table status : <Active>
         Destinations : 3        Routes : 3

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   O_ASE   150  1           D   192.168.1.2     GigabitEthernet
0/0/1
  192.168.1.128/27  OSPF    10   2           D   192.168.1.2     GigabitEthernet
0/0/1
  192.168.1.160/27  OSPF    10   2           D   192.168.1.2     GigabitEthernet
0/0/1

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

[r1]acl 3000
[r1-acl-adv-3000]ru	
[r1-acl-adv-3000]rule de	
[r1-acl-adv-3000]rule deny ip s	
[r1-acl-adv-3000]rule deny ip source 192.168.1.64 0.0.0.15 des	
[r1-acl-adv-3000]rule deny ip source 192.168.1.64 0.0.0.15 destination 203.1.1.1
 0.0.0.0
[r1-acl-adv-3000]q
[r1]int g 0/0/0.1
[r1-GigabitEthernet0/0/0.1]tra	
[r1-GigabitEthernet0/0/0.1]tracert
[r1-GigabitEthernet0/0/0.1]traffic-filterin	
[r1-GigabitEthernet0/0/0.1]traffic-filter in	
[r1-GigabitEthernet0/0/0.1]traffic-filter inbound acl 3000
[r1-GigabitEthernet0/0/0.1]q
[r1]sys
        ^
Error:Incomplete command found at '^' position.
[r1]q
<r1>tel	
<r1>telnet 192.168.1.98
  Press CTRL_] to quit telnet mode
  Trying 192.168.1.98 ...
  Connected to 192.168.1.98 ...

Login authentication


Username:huawei
Password:
<Telnet Server>
<Telnet Server>q

AR2:

[r2-GigabitEthernet0/0/1.1]int g 0/0/1.2
[r2-GigabitEthernet0/0/1.2]dot
                               ^
Error:Incomplete command found at '^' position.
[r2-GigabitEthernet0/0/1.2]dot	
[r2-GigabitEthernet0/0/1.2]dot1q ter	
[r2-GigabitEthernet0/0/1.2]dot1q termination vid 3
[r2-GigabitEthernet0/0/1.2]arp bro	
[r2-GigabitEthernet0/0/1.2]arp broadcast en	
[r2-GigabitEthernet0/0/1.2]arp broadcast enable 
[r2-GigabitEthernet0/0/1.2]undo dot1q termination vid 3
[r2-GigabitEthernet0/0/1.2]undo arp broadcast enable 
Error: This interface is not a termination interface.
[r2-GigabitEthernet0/0/1.2]ip add	
[r2-GigabitEthernet0/0/1.2]ip address 192.168.1.161 27
[r2-GigabitEthernet0/0/1.2]dot	
[r2-GigabitEthernet0/0/1.2]dot1q ter	
[r2-GigabitEthernet0/0/1.2]dot1q termination vid 3
May 17 2023 23:25:56-08:00 r2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/1.2 has entered the UP state. 
[r2-GigabitEthernet0/0/1.2]arp bro	
[r2-GigabitEthernet0/0/1.2]arp broadcast enable
[r2-GigabitEthernet0/0/1.2]q
[r2]int g 0/0/2
[r2-GigabitEthernet0/0/2]ip add	
[r2-GigabitEthernet0/0/2]ip address 202.1.1.1 30
May 17 2023 23:26:47-08:00 r2 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r2-GigabitEthernet0/0/2]
[r2-GigabitEthernet0/0/2]q
[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]ospf 1 rou 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net	
[r2-ospf-1-area-0.0.0.0]network 192.168.1.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]net	
[r2-ospf-1-area-0.0.0.0]network 
May 17 2023 23:40:27-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r2-ospf-1-area-0.0.0.0]network 
May 17 2023 23:40:27-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r2-ospf-1-area-0.0.0.0]network 
May 17 2023 23:40:27-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r2-ospf-1-area-0.0.0.0]network 
May 17 2023 23:40:27-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r2-ospf-1-area-0.0.0.0]network 
May 17 2023 23:40:27-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r2-ospf-1-area-0.0.0.0]network 
May 17 2023 23:40:27-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r2-ospf-1-area-0.0.0.0]network 192.168.1.129 0.0.0.0
[r2-ospf-1-area-0.0.0.0]net	
[r2-ospf-1-area-0.0.0.0]network 192.168.1.161 0.0.0.0
[r2-ospf-1-area-0.0.0.0]q
[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

<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]dhcp en	
[r2]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r2]ip pool 1
Info: It's successful to create an IP address pool.
[r2-ip-pool-1]net	
[r2-ip-pool-1]netbios-type
[r2-ip-pool-1]network 192.168.1.128m	
[r2-ip-pool-1]network 192.168.1.128 m	
[r2-ip-pool-1]network 192.168.1.128 mask 27
[r2-ip-pool-1]g	
[r2-ip-pool-1]gateway-list 192.168.1.129
[r2-ip-pool-1]q
[r2]ip pool 2
Info: It's successful to create an IP address pool.
[r2-ip-pool-2]net	
[r2-ip-pool-2]netbios-type
[r2-ip-pool-2]network 192.168.1.160 mask 27
[r2-ip-pool-2]g	
[r2-ip-pool-2]gateway-list 192.168.1.161
[r2-ip-pool-2]q
[r2]int g 0/0/1.1
[r2-GigabitEthernet0/0/1.1]dh	
[r2-GigabitEthernet0/0/1.1]dhcp se	
[r2-GigabitEthernet0/0/1.1]dhcp select g	
[r2-GigabitEthernet0/0/1.1]dhcp select global 
[r2-GigabitEthernet0/0/1.1]int g 0/0/1.2
[r2-GigabitEthernet0/0/1.2]dhcp	
[r2-GigabitEthernet0/0/1.2]dhcp se	
[r2-GigabitEthernet0/0/1.2]dhcp select g	
[r2-GigabitEthernet0/0/1.2]dhcp select global 
[r2-GigabitEthernet0/0/1.2]q
[r2]acl 2000
[r2-acl-basic-2000]ru	
[r2-acl-basic-2000]rule per	
[r2-acl-basic-2000]rule permit s	
[r2-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r2-acl-basic-2000]q
[r2]int g 0/0/2
[r2-GigabitEthernet0/0/2]nat o	
[r2-GigabitEthernet0/0/2]nat outbound 2000
[r2-GigabitEthernet0/0/2]q
[r2]ip rou	
[r2]ip route-s	
[r2]ip route-static 0.0.0.0 0 202.1.1.2
[r2]ospf 1
[r2-ospf-1]de	
[r2-ospf-1]default-r	
[r2-ospf-1]default-route-advertise 
[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

<r2>sys
Enter system view, return user view with Ctrl+Z.
[r2]int g 0/0/2
[r2-GigabitEthernet0/0/2]net	
[r2-GigabitEthernet0/0/2]nat	
[r2-GigabitEthernet0/0/2]nat ser	
[r2-GigabitEthernet0/0/2]nat server pro	
[r2-GigabitEthernet0/0/2]nat server protocol tcp	
[r2-GigabitEthernet0/0/2]nat server protocol tcp g	
[r2-GigabitEthernet0/0/2]nat server protocol tcp global cu	
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface t	
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface tacacs

[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface talk
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface telnet

[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface time
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface tacacs

[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface talk
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface telnet
in	
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface telnet
 in	
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface telnet
 inside 192.168.1.98 te	
[r2-GigabitEthernet0/0/2]nat server protocol tcp global current-interface telnet
 inside 192.168.1.98 telnet 
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y
[r2-GigabitEthernet0/0/2]q
[r2]acl 3000
[r2-acl-adv-3000]ru	
[r2-acl-adv-3000]rule den	
[r2-acl-adv-3000]rule deny tcp s	
[r2-acl-adv-3000]rule deny tcp source 203.1.1.3 0 des	
[r2-acl-adv-3000]rule deny tcp source 203.1.1.3 0 destination-port eq 23
[r2-acl-adv-3000]q
[r2]int g 0/0/2
[r2-GigabitEthernet0/0/2]traff	
[r2-GigabitEthernet0/0/2]traffic-filterin	
[r2-GigabitEthernet0/0/2]traffic-filter in	
[r2-GigabitEthernet0/0/2]traffic-filter inbound acl 3000
[r2-GigabitEthernet0/0/2]q
[r2]
May 18 2023 00:17:28-08:00 r2 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=1.1.1.1, NeighborEven
t=InactivityTimer, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[r2]
May 18 2023 00:17:28-08:00 r2 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=1.1.1.1, Neighbor
AreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=Ne
ighbor Down Due to Inactivity, NeighborDownPrimeReason=Hello Not Seen, NeighborC
hangeTime=2023-05-18 00:17:28-08:00) 
[r2]
May 18 2023 00:17:28-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r2]
May 18 2023 00:17:28-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 

[r2]
May 18 2023 00:17:28-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r2]
May 18 2023 00:17:29-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r2]
May 18 2023 00:17:29-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r2]

4.配置结果:

 

 

 

 

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值