HCIA综合实验

实验要求:

1、AR6理解为ISP设备,所连接的两个网段为公网www.beixin.com来访问http服务器;R1-R5构建为一个私有的局域网;

2、AR6上只能进行ip地址配置,之后不得对该路由器进行其他任何配置

3、公网范围IP地址已经指定,剩余R1-R5整个私网使用192.168.1.0/24进行合理分配

4、PC1/3为划分到VLAN2,PC2/4/HTTP 服务器划分到VLAN3;PC1-4通过DHCP自动获取ip地址;

5、所有路由器路由表应尽量控制减少,预防出现环路,所有选路均为最佳路径;R4与R5之间正常使用1000M链路,

1000M链路故障时自动切换到100m链路,整个网络仅使用静态路由协议;

6、PC1—PC4均可ping通PC5,同时PC5可以通过域名www.beixin.com来访问http服务器;

7、全网仅R1可以telnet登录R2

lsw1

[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port l a
[Huawei-Ethernet0/0/2]port defa    
[Huawei-Ethernet0/0/2]port default vlan 2
Error: The VLAN does not exist.
[Huawei-Ethernet0/0/2]vlan batch 1 2 3 4 5 6 7 
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]port default vlan 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]undo port vlan batch 1 2 3 4 5 6 7
             ^
Error:Ambiguous command found at '^' position.
[Huawei]vlan b 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port l a
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]port l a
[Huawei-Ethernet0/0/3]port de vlan 3
[Huawei-Ethernet0/0/3]int e0/0/4
[Huawei-Ethernet0/0/4]port l a
[Huawei-Ethernet0/0/4]port de vlan 3j
                                   ^
Error: Wrong parameter found at '^' position.
[Huawei-Ethernet0/0/4]port de vlan 3
[Huawei-Ethernet0/0/4]int e0/0/1
[Huawei-Ethernet0/0/1]port l trunk
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 2 to 3
[Huawei-Ethernet0/0/1] User interface con0 is available

Please Press ENTER.

<Huawei>reset saved-configuration 
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:n
<Huawei>
Dec 30 2022 17:18:00-08:00 Huawei %%01CFM/4/RST_CFG(l)[0]:The user chose N when 
deciding whether to reset the saved configuration.
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]po li a
[Huawei-GigabitEthernet0/0/2]p d v 2
Error: The VLAN does not exist.
[Huawei-GigabitEthernet0/0/2]vlan batch 1 2
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]p d v 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]vlan batch 1 2 3 4 5 6 
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]p d v 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]p d v 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]port default vlan 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]int g 0/0/3
              ^
Error: Wrong parameter found at '^' position.
[Huawei]int g0/0/3
            ^
Error: Wrong parameter found at '^' position.
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]int g0/0/3
                      ^
Error: Unrecognized command found at '^' position.
[Huawei-Ethernet0/0/2]int e0/0/2
[Huawei-Ethernet0/0/2]po li a
[Huawei-Ethernet0/0/2]po li a
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]p l a
[Huawei-Ethernet0/0/3]p d v 3
[Huawei-Ethernet0/0/3]int  g 0/0/1
[Huawei-GigabitEthernet0/0/1]po li t
[Huawei-GigabitEthernet0/0/1]p t a v 2 3
[Huawei-GigabitEthernet0/0/1]q
[Huawei]save
        ^
Error: Unrecognized command found at '^' position.
[Huawei]y
        ^
Error: Unrecognized command found at '^' position.
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei> User interface con0 is available

Please Press ENTER.

<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

lsw2:

The device is running!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port l a
[Huawei-Ethernet0/0/2]port defa    
[Huawei-Ethernet0/0/2]port default vlan 2
Error: The VLAN does not exist.
[Huawei-Ethernet0/0/2]vlan batch 1 2 3 4 5 6 7 
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]port default vlan 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]undo port vlan batch 1 2 3 4 5 6 7
             ^
Error:Ambiguous command found at '^' position.
[Huawei]vlan b 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port l a
[Huawei-Ethernet0/0/2]port default vlan 2
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]port l a
[Huawei-Ethernet0/0/3]port de vlan 3
[Huawei-Ethernet0/0/3]int e0/0/4
[Huawei-Ethernet0/0/4]port l a
[Huawei-Ethernet0/0/4]port de vlan 3j
                                   ^
Error: Wrong parameter found at '^' position.
[Huawei-Ethernet0/0/4]port de vlan 3
[Huawei-Ethernet0/0/4]int e0/0/1
[Huawei-Ethernet0/0/1]port l trunk
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 2 to 3
[Huawei-Ethernet0/0/1] User interface con0 is available

Please Press ENTER.

<Huawei>reset saved-configuration 
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:n
<Huawei>
Dec 30 2022 17:18:00-08:00 Huawei %%01CFM/4/RST_CFG(l)[0]:The user chose N when 
deciding whether to reset the saved configuration.
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]po li a
[Huawei-GigabitEthernet0/0/2]p d v 2
Error: The VLAN does not exist.
[Huawei-GigabitEthernet0/0/2]vlan batch 1 2
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]p d v 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]vlan batch 1 2 3 4 5 6 
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]p d v 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]p d v 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]port default vlan 2
        ^
Error:Ambiguous command found at '^' position.
[Huawei]int g 0/0/3
              ^
Error: Wrong parameter found at '^' position.
[Huawei]int g0/0/3
            ^
Error: Wrong parameter found at '^' position.
[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]int g0/0/3
                      ^
Error: Unrecognized command found at '^' position.
[Huawei-Ethernet0/0/2]int e0/0/2
[Huawei-Ethernet0/0/2]po li a
[Huawei-Ethernet0/0/2]po li a
[Huawei-Ethernet0/0/2]int e0/0/3
[Huawei-Ethernet0/0/3]p l a
[Huawei-Ethernet0/0/3]p d v 3
[Huawei-Ethernet0/0/3]int  g 0/0/1
[Huawei-GigabitEthernet0/0/1]po li t
[Huawei-GigabitEthernet0/0/1]p t a v 2 3
[Huawei-GigabitEthernet0/0/1]q
[Huawei]save
        ^
Error: Unrecognized command found at '^' position.
[Huawei]y
        ^
Error: Unrecognized command found at '^' position.
[Huawei]q
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei> User interface con0 is available

Please Press ENTER.

<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<Huawei>

R1

The device is running!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g0/0/2.1
[Huawei-GigabitEthernet0/0/2.1]dotlq termination
                               ^
Error: Unrecognized command found at '^' position.
[Huawei-GigabitEthernet0/0/2.1]dotlq termination vid 2
                               ^
Error: Unrecognized command found at '^' position.
[Huawei-GigabitEthernet0/0/2.1]dot    
[Huawei-GigabitEthernet0/0/2.1]dot1q termin    
[Huawei-GigabitEthernet0/0/2.1]dot1q termination 2
                                                 ^
Error: Unrecognized command found at '^' position.
[Huawei-GigabitEthernet0/0/2.1]ip  add 192.168.129 27
                                       ^
Error: Wrong parameter found at '^' position.
[Huawei-GigabitEthernet0/0/2.1]ip add 192.168.1.129 27
[Huawei-GigabitEthernet0/0/2.1]arp broad    
[Huawei-GigabitEthernet0/0/2.1]arp broadcast enable
Error: This interface is not a termination interface.
[Huawei-GigabitEthernet0/0/2.1]q
[Huawei]
<Huawei>reset saved-configuration 
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:n
<Huawei>
Dec 30 2022 17:18:17-08:00 Huawei %%01CFM/4/RST_CFG(l)[0]:The user chose N when 
deciding whether to reset the saved configuration.
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g 0/0/2.1
[Huawei-GigabitEthernet0/0/2.1]p ad 192.168.1.33 27
                               ^
Error:Ambiguous command found at '^' position.
[Huawei-GigabitEthernet0/0/2.1]ip ad 192.168.1.33 27
[Huawei-GigabitEthernet0/0/2.1]dot1q t v 2
[Huawei-GigabitEthernet0/0/2.1]arp bro en
[Huawei-GigabitEthernet0/0/2.1]int g 0/0/2.2
[Huawei-GigabitEthernet0/0/2.2]ip ad 192.168.1.65 27
[Huawei-GigabitEthernet0/0/2.2]dot1q t v 3
[Huawei-GigabitEthernet0/0/2.2]arp bro en
[Huawei-GigabitEthernet0/0/2.2]dhcp en
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool 1
Info:It's successful to create an IP address pool.
[Huawei-ip-pool-1]net 192.168.1.32 m 27
[Huawei-ip-pool-1]g 192.168.1.33
[Huawei-ip-pool-1]ip p 2
Info:It's successful to create an IP address pool.
[Huawei-ip-pool-2]net 192.168.1.64 m 27
[Huawei-ip-pool-2]g 192.168.1.65 
[Huawei-ip-pool-2]int g 0/0/2.1
[Huawei-GigabitEthernet0/0/2.1]dhcp select g
[Huawei-GigabitEthernet0/0/2.1]int g 0/0/2.2
[Huawei-GigabitEthernet0/0/2.2]dhcp  select g
[Huawei-GigabitEthernet0/0/2.2]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.1.1 30
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 192.168.1.5 30
[Huawei-GigabitEthernet0/0/1]q
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]ip rout 192.168.1.12 30 192.168.1.2
[Huawei]ip rout 192.168.1.8 30 192.168.1.6
[Huawei]ip rout 192.168.1.20 30 192.168.1.2
[Huawei]ip rout 192.168.1.20 30 192.168.1.6
[Huawei]ip rout 192.168.1.16 30 192.168.1.2
[Huawei]ip rout 192.168.1.16 30 192.168.1.6
[Huawei]ip rout 192.168.1.96 27 192.168.1.6
[Huawei]ip rout 192.168.1.128 27 192.168.1.6
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<Huawei>
<Huawei>

R2

The device is running!

<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.1.2 30
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 192.168.1.13 30
[Huawei-GigabitEthernet0/0/1] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]ip rout 192.168.1.32 27 192.168.1.1
[Huawei]ip rout 192.168.1.64 27 192.168.1.1
[Huawei]ip rout 192.168.1.4 30 192.168.1.1
[Huawei]ip rout 192.168.1.96 27 192.168.1.1
[Huawei]ip rout 192.168.1.96 27 192.168.1.14
[Huawei]ip rout 192.168.1.128 27 192.168.1.1
[Huawei]ip rout 192.168.1.128 27 192.168.1.14
[Huawei]ip rout 192.168.1.8 30 192.168.1.14
[Huawei]ip rout 192.168.1.20 30 192.168.1.14
[Huawei]ip rout 192.168.1.16 30 192.168.1.14
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>
<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<Huawei>
<Huawei>

R3

The device is running!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g0/0/2.1
[Huawei-GigabitEthernet0/0/2.1]ip ad 192.168.1.97 27
[Huawei-GigabitEthernet0/0/2.1]d t v 2
[Huawei-GigabitEthernet0/0/2.1]a b en
[Huawei-GigabitEthernet0/0/2.1]int g 0/0/2.2
[Huawei-GigabitEthernet0/0/2.2]ip ad 192.168.1.129 27
[Huawei-GigabitEthernet0/0/2.2]d t v 3
[Huawei-GigabitEthernet0/0/2.2]a b en
[Huawei-GigabitEthernet0/0/2.2]dhcp en
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool 1
Info:It's successful to create an IP address pool.
[Huawei-ip-pool-1]net 192.168.1.96 m 27
[Huawei-ip-pool-1]g 192.168.1.97
[Huawei-ip-pool-1]ip pool 2
Info:It's successful to create an IP address pool.
[Huawei-ip-pool-2]net 192.168.1.128 m 27
[Huawei-ip-pool-2]g 192.168.1.129
[Huawei-ip-pool-2]int g 0/0/2.1
[Huawei-GigabitEthernet0/0/2.1]dhcp se g 
[Huawei-GigabitEthernet0/0/2.1]int g 0/0/2.2
[Huawei-GigabitEthernet0/0/2.2]dhcp se g 
[Huawei-GigabitEthernet0/0/2.2]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.1.6 30
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 192.168.1.9 30
[Huawei-GigabitEthernet0/0/1]q
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei] un in e
Info: Information center is disabled.
[Huawei]
[Huawei]ip rout 192.168.1.32 27 192.168.1.5
[Huawei]ip rout 192.168.1.64 27 192.168.1.5
[Huawei]ip rout 192.168.1.0 30 192.168.1.5
[Huawei]ip rout 192.168.1.12 30 192.168.1.10
[Huawei]ip rout 192.168.1.20 30 192.168.1.10
[Huawei]ip rout 192.168.1.16 30 192.168.1.10
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]dis    
[Huawei]display ip    
[Huawei]display ip-subnet-vlan
                               ^
Error:Incomplete command found at '^' position.
[Huawei]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 16       Routes : 16       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
    192.168.1.0/30  Static  60   0          RD   192.168.1.5     GigabitEthernet
0/0/0
    192.168.1.4/30  Direct  0    0           D   192.168.1.6     GigabitEthernet
0/0/0
    192.168.1.6/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
    192.168.1.8/30  Direct  0    0           D   192.168.1.9     GigabitEthernet
0/0/1
    192.168.1.9/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
   192.168.1.12/30  Static  60   0          RD   192.168.1.10    GigabitEthernet
0/0/1
   192.168.1.16/30  Static  60   0          RD   192.168.1.10    GigabitEthernet
0/0/1
   192.168.1.20/30  Static  60   0          RD   192.168.1.10    GigabitEthernet
0/0/1
   192.168.1.32/27  Static  60   0          RD   192.168.1.5     GigabitEthernet
0/0/0
   192.168.1.64/27  Static  60   0          RD   192.168.1.5     GigabitEthernet
0/0/0
   192.168.1.96/27  Direct  0    0           D   192.168.1.97    GigabitEthernet
0/0/2.1
   192.168.1.97/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2.1
  192.168.1.128/27  Direct  0    0           D   192.168.1.129   GigabitEthernet
0/0/2.2
  192.168.1.129/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2.2

[Huawei]display this
#
sysname Huawei
#
undo info-center enable
#
dhcp enable
#
ip route-static 192.168.1.0 255.255.255.252 192.168.1.5
ip route-static 192.168.1.12 255.255.255.252 192.168.1.10
ip route-static 192.168.1.16 255.255.255.252 192.168.1.10
ip route-static 192.168.1.20 255.255.255.252 192.168.1.10
ip route-static 192.168.1.32 255.255.255.224 192.168.1.5
ip route-static 192.168.1.64 255.255.255.224 192.168.1.5
#
return
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<Huawei>

R4

The device is running!

<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.1.14 30
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 192.168.1.10 30
[Huawei-GigabitEthernet0/0/1]int g 0/0/3
[Huawei-GigabitEthernet0/0/3]ip ad 192.168.1.21 30
[Huawei-GigabitEthernet0/0/3]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip ad 192.168.1.17 30
[Huawei-GigabitEthernet0/0/2]q
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]ip rout 192.168.1.0 30 192.168.1.13
[Huawei]ip rout 192.168.1.4 30 192.168.1.9
[Huawei]ip rout 192.168.1.32 27 192.168.1.9
[Huawei]ip rout 192.168.1.32 27 192.168.1.13
[Huawei]ip rout 192.168.1.64 27 192.168.1.9
[Huawei]ip rout 192.168.1.64 27 192.168.1.13
[Huawei]ip rout 192.168.1.96 27 192.168.1.9
[Huawei]ip rout 192.168.1.128 27 192.168.1.9
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<Huawei>
<Huawei>

R5

Please press enter to start cmd line!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.1.22 30
[Huawei-GigabitEthernet0/0/0]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]ip ad 192.168.1.18 30
[Huawei-GigabitEthernet0/0/2]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 12.1.1.1 24
[Huawei-GigabitEthernet0/0/1] User interface con0 is available

Please Press ENTER.

<Huawei>sy 
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]ip rout 192.168.1.32 27 192.168.1.21
[Huawei]ip rout 192.168.1.32 27 192.168.1.17
[Huawei]ip rout 192.168.1.64 27 192.168.1.21
[Huawei]ip rout 192.168.1.64 27 192.168.1.17
[Huawei]ip rout 192.168.1.96 27 192.168.1.21
[Huawei]ip rout 192.168.1.96 27 192.168.1.17
[Huawei]ip rout 192.168.1.128 27 192.168.1.21
[Huawei]ip rout 192.168.1.128 27 192.168.1.17
[Huawei]ip rout 192.168.1.4 30 192.168.1.17
[Huawei]ip rout 192.168.1.4 30 192.168.1.21
[Huawei]ip rout 192.168.1.0 30 192.168.1.17
[Huawei]ip rout 192.168.1.0 30 192.168.1.21
[Huawei]ip rout 192.168.1.12 30 192.168.1.17
[Huawei]ip rout 192.168.1.12 30 192.168.1.21
[Huawei]ip rout 192.168.1.8 30 192.168.1.17
[Huawei]ip rout 192.168.1.8 30 192.168.1.21
[Huawei] User interface con0 is available

Please Press ENTER.

<Huawei>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 17.
Save the configuration successfully.
<Huawei>
<Huawei>
<Huawei>

R6

The device is running!

<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 12.1.1.2 24
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 1.1.1.254 24
[Huawei-GigabitEthernet0/0/1] User interface con0 is available

Please Press ENTER.

<Huawei>
<Huawei>sy
Enter system view, return user view with Ctrl+Z.
[Huawei] un in e
Info: Information center is disabled.
[Huawei]ip rout 192.168.1.32 27 192.168.1.17 pre 70
[Huawei]
[Huawei]ip rout 192.168.1.64 27 192.168.1.17 pre 70
[Huawei]
[Huawei]ip rout 192.168.1.96 27 192.168.1.17 pre 70
[Huawei]
[Huawei]ip rout 192.168.1.128 27 192.168.1.17 pre 70
[Huawei]
[Huawei]ip rout 192.168.1.4 30 192.168.1.17 pre 70
[Huawei]
[Huawei]ip rout 192.168.1.0 30 192.168.1.17 pre 70
[Huawei]
[Huawei]ip rout 192.168.1.12 30 192.168.1.17 pre 70
[Huawei]
[Huawei]ip rout 192.168.1.8 30 192.168.1.17 pre 70
[Huawei] User interface con0 is available

Please Press ENTER.
 

dhcp自动获取IP信息

www.beixin.com来访问http服务器

HCIA综合实验拓扑中,DHCP的配置是实现网络自动化和简化IP地址管理的重要环节。以下是基于引用内容总结出的DHCP配置指南: ### 配置DHCP服务 1. **启用DHCP功能** 在交换机或路由器上启用DHCP功能,确保设备能够作为DHCP服务器运行。例如,在华为设备中可以通过以下命令启用DHCP: ```bash dhcp enable ``` 2. **创建VLAN并分配接口** 根据网络需求创建多个VLAN,并将相应的物理接口划入对应的VLAN。例如,创建VLAN 10、20、30、40,并将接口G0/0/2和G0/0/3设置为Trunk模式以允许多个VLAN通过: ```bash vlan batch 10 20 30 40 interface GigabitEthernet0/0/2 port link-type trunk port trunk allow-pass vlan 10 20 30 40 interface GigabitEthernet0/0/3 port link-type trunk port trunk allow-pass vlan 10 20 30 40 ``` 3. **配置VLAN接口IP地址** 为每个VLAN接口配置IP地址,并指定其作为DHCP服务器的角色。例如,为VLANIF10、VLANIF20、VLANIF30和VLANIF40分别配置IP地址并启用DHCP服务: ```bash interface Vlanif10 ip address 192.168.10.254 255.255.255.0 dhcp select interface interface Vlanif20 ip address 192.168.20.254 255.255.255.0 dhcp select interface interface Vlanif30 ip address 192.168.30.254 255.255.255.0 dhcp select interface interface Vlanif40 ip address 192.168.40.254 255.255.255.0 dhcp select interface ``` 4. **验证DHCP配置** 确保客户端设备能够成功从DHCP服务器获取IP地址。可以通过查看DHCP服务器的状态和客户端的日志来验证配置是否正确。 ### 注意事项 - **安全性**:确保只有授权的设备可以访问DHCP服务器,防止未经授权的设备获取IP地址。 - **冗余性**:在大型网络中,建议部署多个DHCP服务器以提高可靠性和负载均衡[^2]。 - **兼容性**:确保DHCP服务器与客户端设备兼容,特别是在使用特定选项(如DNS服务器地址)时。 通过以上步骤,可以在HCIA综合实验拓扑中有效地配置DHCP服务,从而简化IP地址管理和提升网络效率。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值