实验要求:
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服务器