Beruflich Dokumente
Kultur Dokumente
Mo
ni
ar
Le
ng
ur
so
Re
s:
ce
ht
tp
ea
/l
:/
rn
in
g.
hu
aw
ei
.c
om
/e
n
in
g.
hu
HCNA-HNTD
ENTRY
aw
ei
.c
om
/e
Huawei Certification
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
Lab Guide
rn
aw
ei
.c
om
/e
hu
g.
Notice
ht
tp
:/
/l
ea
rn
in
s:
Huawei Certification
ur
ce
re
Le
ar
ni
ng
Re
so
Mo
Version 2.1
aw
ei
.c
om
/e
are capable of supporting Enterprise networks in the face of an ever changing ICT
industry. The Huawei certification portfolio for routing and switching (R&S) is
g.
hu
comprised of three levels to support and validate the growth and value of customer
in
The Huawei Certified Network Associate (HCNA) certification level validates the
rn
ea
/l
networks, along with the capability to implement services and features within
:/
tp
HCNA certification covers fundamentals skills for TCP/IP, routing, switching and
products,
ht
operation and
s:
management.
(VRP)
ce
ur
so
Re
ng
ni
network security, high availability and QoS, as well as application of the covered
ar
Le
re
for the diagnosis and troubleshooting of Huawei products, to equip engineers with
Mo
networks.
re
Mo
ni
ar
Le
ng
s:
ce
ur
so
Re
ht
tp
ea
/l
:/
rn
hu
g.
in
aw
ei
.c
om
/e
L3 Switch
L2 Switch
Cloud
g.
hu
Router
aw
ei
.c
om
/e
Reference Icons
Serial link
ea
rn
in
Ethernet link
/l
Device Model
R1
AR 2220
R2
AR 2220
R3
AR 2220
S1
S5700-28C-EI-24S
S2
S5700-28C-EI-24S
ng
S3700-28TP-EI-AC
S4
S3700-28TP-EI-AC
Mo
re
VRP version
ce
ur
so
Re
ni
Le
S3
s:
Identifier
ar
ht
tp
:/
In order to ensure that that the configuration given in this lab is supported on all
devices, it is recommended that the following device models and VRP versions
be used:
re
Mo
ni
ar
Le
ng
s:
ce
ur
so
Re
ht
tp
ea
/l
:/
rn
hu
g.
in
aw
ei
.c
om
/e
HCNA-HNTD Content
aw
ei
.c
om
/e
CONTENTS
MODULE 1 ESTABLISHING BASIC NETWORKS WITH ENSP .................................................................. 1
LAB 1-1 BUILDING BASIC IP NETWORKS ................................................................................................... 1
hu
g.
in
ea
rn
/l
:/
tp
ht
ce
s:
Mo
re
Le
ar
ni
ng
Re
so
ur
HC Series
HUAWEI TECHNOLOGIES
Page1
re
Mo
ni
ar
Le
ng
s:
ce
ur
so
Re
ht
tp
ea
/l
:/
rn
hu
g.
in
aw
ei
.c
om
/e
aw
ei
.c
om
/e
hu
As a result of this lab section, you should achieve the following tasks:
g.
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
HC Series
HUAWEI TECHNOLOGIES
Page1
aw
ei
.c
om
/e
Tasks
hu
in
g.
This step introduces how to start and navigate the eNSP simulator application
for rapid development of TCP/IP knowledge and familiarity with network
operation. If eNSP is not available, please inform the course instructor
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
After launching eNSP, the following application user interface will be presented.
The left panel houses the icons that represent the various products and
devices that are supported within eNSP, while the central panel provides lab
examples for practice scenarios.
Mo
re
After launching eNSP, users should select the New operator in the top left
corner of the application window to begin a new lab session.
Page2
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
Select the End Devce icon in the top left panel to reveal a list of end devices
that can be applied. Select the Laptop icon and drag it to the canvas, release
the icon to place it on the canvas.
Mo
re
Le
ar
ni
ng
The same action should be taken to position a second laptop on the canvas for
establishing the peer-to-peer network topology.
HC Series
HUAWEI TECHNOLOGIES
Page3
aw
ei
.c
om
/e
The devices on the canvas represent simulated end systems that can be used
to emulate real world operations.
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
Select the connections icon from the upper left panel to reveal a list of media
that can be applied to the topology. Select the copper (Ethernet) medium from
the list. Once the icon has been clicked, the cursor will represent a connector
to show the current role of the cursor as a connector. Click on the client device
to reveal a list of port interfaces supported by the simulated device. For the
client click the option for Ethernet 0/0/1 to apply the connection.
Mo
re
Le
ar
ni
ng
Once this has been achieved, click on the peering device to apply the opposite
end of the medium to the end system. Again select the interface Ethernet 0/0/1
to establish the medium between the two devices and complete the
construction of a peer-to-peer topology.
Page4
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
Select the end system and use the right click option to display a properties
menu. The settings option should be selected in order to display the current
system settings for the end system devices.
HC Series
HUAWEI TECHNOLOGIES
Page5
aw
ei
.c
om
/e
The settings option in the properties window reveals a set of four tabs for
establishment of basic configuration, the device command line interface,
multicast traffic generator configuration, and UDP packet generator
configuration.
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
Ensure the Basic Config tab is selected and enter a host name in the Host
Name field window. Ensure the IPv4 configuration is currently set to static and
configure an IP address in the IP address window. It is recommended that the
address (together with the subnet mask) be configured as shown in the below
example. Once this has been configured, click the Apply button in the bottom
left corner of the window before closing with the x in the top left corner of the
CLIENT 1 window.
Mo
re
Le
ar
The same process is required for CLIENT2. It is recommended that initially the
IP address 192.168.1.2 be configured, with a subnet mask of 255.255.255.0.
The basic configuration enables peer-to-peer communication to be supported
between the two end systems.
Page6
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
The devices can be activated using one of two methods. The first involves
using the right click option to open the properties menu and select start for the
individual icons. The alternative involves dragging the cursor over the icons (as
shown) to highlight multiple devices and using the right click settings option
start multiple devices simultaneously.
Mo
re
Le
ar
ni
ng
Re
so
Once the devices are online and active, it is common to notice a change in the
status of the connectors through a switch in the colour of the red dot on the
medium to green, highlighting that the status of the connectors is now up.
HC Series
HUAWEI TECHNOLOGIES
Page7
aw
ei
.c
om
/e
Once the devices within the network topology are operational, it is possible to
begin to monitor the flow of traffic that is carried over the medium and the
interfaces via which the devices have established a physical peering.
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
Select the device to for whose interface is to be monitored and use the right
click option to display the settings menu. Highlight the capture data option to
reveal a list of interfaces that belong to the device and are available for
observation by the packet capture tool. Select the interface from the list that is
to be monitored.
Mo
re
Le
ar
ni
The selection of an interface will result in the activation of the Wireshark packet
capture tool for the selected interface. If additional interfaces are to be
monitored, separate instances of the same packet capture tool will be
activated.
Page8
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Depending on the devices being monitored, the packet capture tool may or
may not begin to generate packet capture results for all traffic that passes
through the selected interface. In the case of the peer-to-peer relationship, it
will be necessary to generate some traffic.
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
Open the command window on the client by either double clicking the client
icon and selecting the Command tab, or alternatively use the right click option
to enter the properties menu and select settings from which point the
Command tab can be selected.
The most basic means for generating traffic is through the ping command. This
can be achieved by entering ping <ip address> where the IP address refers to
the address of the peer.
Mo
re
Le
ar
The generation of traffic will be confirmed by the resulting output in which case
the number of packets transmitted are shown to also be received.
HC Series
HUAWEI TECHNOLOGIES
Page9
aw
ei
.c
om
/e
Following the generation of traffic, the resulting traffic flow shall be captured by
the packet capture tool and can be used for observation of the behavior of
protocols within the IP network along with details of the various layers as
referenced in the OSI reference model.
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
Page10
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
/l
ea
rn
in
g.
:/
hu
As a result of this lab section, you should achieve the following tasks:
so
ur
ce
s:
ht
tp
Topology
ng
Re
Figure 2.1 Lab topology for basic VRP navigation and operation.
ni
Scenario
Mo
re
Le
ar
HC Series
HUAWEI TECHNOLOGIES
Page11
aw
ei
.c
om
/e
Tasks
Run the display version command to view the software version and hardware
information for the system.
<Huawei>display version
Huawei Versatile Routing Platform Software
hu
g.
in
rn
......output omitted......
/l
ea
The command output includes the VRP operating system version, device
model, and startup time.
tp
:/
ht
The system automatically saves the time. If the time is incorrect, run the clock
timezone and clock datetime commands in the user view to change the
system time.
s:
ce
so
ur
The keyword Local can be exchanged with the current regional timezone name,
and add replaced with minus where the timezone is west of UTC+0.
Re
Run the display clock command to check that the new system time has taken
effect.
ng
<Huawei>display clock
Sunday
ni
2013-09-15 12:00:21
Mo
re
Le
ar
Page12
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
aaa
AAA
access-user
User access
accounting-scheme
Accounting scheme
acl
actual
Current actual
adp-ipv4
Ipv4 information
adp-mpls
Adp-mpls module
alarm
Alarm
antenna
anti-attack
ap
ap-auth-mode
/l
ea
rn
in
g.
hu
Cellular
:/
......output omit......
s:
ht
tp
To display all the commands that start with a specific letter or string of letters,
enter the desired letters and the question mark (?). The system displays all the
commands that start with the letters entered. For example, if the string dis? is
entered, the system displays all the commands that start with dis.
Re
so
ur
ce
If a space exists between the character string and the question mark (?), the
system will identify the commands corresponding to the string and display the
parameters of the command. For example, if the string dis ? is entered and
only the display command matches the dis string, the system displays the
parameters of the display command. If multiple commands start with dis, the
system displays an error.
ni
ng
The Tab key can also be pressed to complete a command. For example, if dis
is entered followed by Tab, the system completes the display command. If
multiple commands start with dis, the appropriate command can be selected.
Mo
re
Le
ar
If there are no other commands starting with the same letters, dis or disp can
be entered to indicate display, and int or inter to indicate interface.
HC Series
HUAWEI TECHNOLOGIES
Page13
aw
ei
.c
om
/e
g.
hu
rn
in
To more easily identify devices, set device names during the device
configuration. Change device names based on the lab topology, as shown
below:
ea
:/
/l
[R1]
tp
ht
[Huawei]sysname R3
s:
[R3]
ce
ur
Re
so
ni
ng
ar
<R1>quit
Le
Mo
re
<R1>
Page14
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
If there is no activity on the console port for the period of time specified by the
timeout interval, the system will automatically log out the user. When this
occurs, log in to the system again using the configured password.
in
g.
rn
[R1]user-interface console 0
ea
[R1-ui-console0]authentication-mode password
:/
/l
[R1-ui-console0]idle-timeout 20 0
tp
ht
[V200R003C01SPC200]
#
s:
user-interface con 0
authentication-mode password
ce
so
idle-timeout 20 0
ur
^RX;>#75,%$%$
Re
Log out of the system and log back in, using the password set. It should be
noted that this password is required to be set when the router is first initialized.
ni
<R1>quit
ng
[R1-ui-console0]return
ar
Mo
re
Le
<R1>
HC Series
HUAWEI TECHNOLOGIES
Page15
aw
ei
.c
om
/e
hu
g.
Run the display this command to check the configuration results at the
current interface view.
in
[R1-GigabitEthernet0/0/0]display this
[V200R003C00SPC200]
rn
ea
interface GigabitEthernet0/0/0
/l
:/
tp
Return
ht
s:
ce
ur
so
2013-10-08 03:24:01
2013-10-08 03:25:29
Re
ng
ni
ar
Le
re
Mo
Page16
HUAWEI TECHNOLOGIES
HC Series
Multicast:
1592
Broadcast:
1600,
Jumbo:
Discard:
0,
Total Error:
CRC:
0,
Giants:
Jabbers:
0,
Throttles:
Runts:
0,
Symbols:
Ignoreds:
0,
Frames:
aw
ei
.c
om
/e
Unicast:
0,
Multicast:
Broadcast:
181,
Jumbo:
Discard:
0,
Total Error:
Collisions:
0,
ExcessiveCollisions:
Late Collisions:
0,
Deferreds:
rn
ea
/l
in
g.
Unicast:
hu
tp
:/
The command output shows that the physical status and protocol status of the
interface are UP, and the corresponding physical layer and data link layer are
functional.
ht
Once the status has been verified, configure the IP address and description for
the interface of R3.
s:
ce
Re
<R1>ping 10.0.13.3
so
ur
After completing the configuration, run the ping command to test the
connection between R1 and R3.
PING 10.0.13.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.13.3: bytes=56 Sequence=1 ttl=255 time=35 ms
ng
ni
ar
Le
re
5 packet(s) received
0.00% packet loss
Mo
HC Series
HUAWEI TECHNOLOGIES
Page17
aw
ei
.c
om
/e
1,738,816
Time(LMT)
FileName
web.zip
ar2220-v200r003c00spc200.cc
2 -rw-
vrpcfg.zip
g.
739
hu
in
rn
<R3>dir
Time(LMT)
FileName
/l
ea
Directory of sd1:/
0 -rw- 1,738,816
web.zip
ar2220-v200r003c00spc200.cc
2 -rw-
vrpcfg.zip
tp
739
:/
ht
ce
s:
Step 10
ur
Re
so
<R1>save
ng
ni
ar
Mo
re
Le
Note: The configuration file will take effect after being activated
Page18
HUAWEI TECHNOLOGIES
HC Series
Run the following command again to view the saved configuration information:
<R1>display saved-configuration
aw
ei
.c
om
/e
[V200R003C00SPC200]
#
sysname R1
hu
output omit
g.
in
[V200R003C00SPC200]
rn
#
sysname R1
ea
/l
#
board add 0/1 1SA
:/
tp
ht
output omit
s:
A router can store multiple configuration files. Run the following command to
view the configuration file to currently be used after the next startup:
<R3>display startup
ce
MainBoard:
ur
sd1:/ar2220-v200r003c00spc200.cc
sd1:/ar2220-v200r003c00spc200.cc
so
sd1:/vrpcfg.zip
null
null
null
null
Startup voice-files:
null
ar
ni
ng
Re
null
Le
re
Mo
<R1>reset saved-configuration
HC Series
HUAWEI TECHNOLOGIES
Page19
aw
ei
.c
om
/e
hu
in
g.
Step 11
rn
ea
/l
Warning: All the configuration will be saved to the next startup configuration.
System will reboot! Continue ? [y/n]:y
:/
Continue ? [y/n]:n
tp
ht
<R3>reboot
s:
Continue ? [y/n]:n
ce
Re
so
ur
ni
ng
Final Configuration
[R1]display current-configuration
ar
[V200R003C00SPC200]
Le
sysname R1
header shell information "Welcome to Huawei certification lab"
re
Mo
interface GigabitEthernet0/0/0
Page20
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
#
user-interface con 0
authentication-mode password
set authentication password
cipher %$%$4D0K*-E"t/I7[{HD~kgW,%dgkQQ!&|;XTDq9SFQJ.27M%dj,%$%$
idle-timeout 20 0
#
hu
return
[R3]display current-configuration
g.
[V200R003C00SPC200]
in
#
sysname R3
rn
ea
interface GigabitEthernet0/0/0
description This interface connect to R1-G0/0/0
/l
:/
#
user-interface con 0
tp
authentication-mode password
set authentication password
ht
cipher %$%$M8\HO3:72:ERQ8JLoHU8,%t+lE:$9=a7"8%yMoARB]$B%t.,%$%$
user-interface vty 0 4
s:
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
return
HC Series
HUAWEI TECHNOLOGIES
Page21
aw
ei
.c
om
/e
g.
in
rn
ea
/l
:/
hu
As a result of this lab section, you should achieve the following tasks:
ur
ce
s:
ht
tp
Topology
Re
Scenario
so
Mo
re
Le
ar
ni
ng
Page22
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Tasks
Step 1 Configure STP and verify the STP configuration.
Irrelevant interfaces must be disabled to ensure test result accuracy.
g.
hu
Shut down port interfaces Ethernet 0/0/1 on S3, Ethernet 0/0/13 and Ethernet
0/0/23 on S3, as well as Ethernet 0/0/14 and Ethernet 0/0/24 on S4 before
starting STP configuration. Ensure that the devices start without any
configuration files. If STP is disabled, run the stp enable command to enable
STP.
in
<Quidway>system-view
[Quidway]sysname R3
rn
ea
[R3-Ethernet0/0/1]quit
/l
:/
[R3-Ethernet0/0/13]quit
tp
ht
[R3-Ethernet0/0/23]shutdown
<Quidway>system-view
[S4]inter Ethernet 0/0/14
ur
[S4-Ethernet0/0/14]quit
ce
[S4-Ethernet0/0/14]shutdown
s:
[Quidway]sysname S4
Re
so
[S4-Ethernet0/0/24]shutdown
ng
In the lab,S1 and S2 are connected through two links, and STP is used.
Enable STP on S1 and S2 and set S1 as the root.
<Quidway>system-view
ni
ar
[Quidway]sysname S1
[S1]stp mode stp
Mo
re
Le
HC Series
HUAWEI TECHNOLOGIES
Page23
aw
ei
.c
om
/e
[Quidway]sysname S2
Run the display stp brief command to view brief information about STP.
<S1>display stp brief
Port
Role
STP State
Protection
GigabitEthernet0/0/9
DESI
FORWARDING NONE
GigabitEthernet0/0/10
DESI
FORWARDING NONE
g.
hu
MSTID
in
Role
STP State
Protection
GigabitEthernet0/0/9
ROOT
FORWARDING NONE
GigabitEthernet0/0/10
ALTE
DISCARDING NONE
/l
ea
rn
MSTID
tp
:/
Run the display stp interface command to view the STP status of a port.
ht
----[CIST][Port10(GigabitEthernet0/0/10)][FORWARDING]---:Enabled
:Designated Port
:128
Port Cost(Dot1T )
ce
Port Priority
s:
Port Role
:Config=auto / Active=20000
:0.4c1f-cc45-aace / 128.10
ur
Designated Bridge/Port
Port Edged
:Config=default / Active=disabled
:Config=auto / Active=true
so
Point-to-point
:147 packets/hello-time
Re
Transit Limit
Protection Type
:None
:STP
ng
ni
ar
TC or TCN send
Le
Mo
re
BPDU Received
Page24
:221
:68
HUAWEI TECHNOLOGIES
HC Series
Port Role
aw
ei
.c
om
/e
Port Protocol
----[CIST][Port10(GigabitEthernet0/0/10)][DISCARDING]---:Alternate Port
Port Priority
:128
Port Cost(Dot1T )
:Config=auto / Active=20000
Designated Bridge/Port
:Config=default / Active=disabled
Point-to-point
:Config=auto / Active=true
Transit Limit
:147 packets/hello-time
Protection Type
:None
:STP
hu
Port Edged
:0.4c1f-cc45-aace / 128.10
g.
in
rn
TC or TCN send
BPDU Sent
:35
:158
:/
BPDU Received
/l
ea
tp
ht
s:
Run the display stp command to view information about the root bridge.
ce
<S1>display stp
Bridge Times
.4c1f-cc45-aace / 0
:0
.4c1f-cc45-aace / 0
Re
CIST RegRoot/IRPC
so
CIST Root/ERPC
CIST RootPortId
ng
BPDU-Protection
CIST Root Type
.4c1f-cc45-aace
ur
CIST Bridge
:0.0
:Disabled
:Primary root
ni
ar
:Normal
Le
Mo
re
output omit
HC Series
HUAWEI TECHNOLOGIES
Page25
:4096 .4c1f-cc45-aacc
Bridge Times
CIST Root/ERPC
:0
CIST RegRoot/IRPC
:4096 .4c1f-cc45-aacc / 0
CIST RootPortId
:128.9
BPDU-Protection
:Disabled
:Secondary root
.4c1f-cc45-aace / 20000
hu
aw
ei
.c
om
/e
:Normal
g.
in
rn
output omit
:/
/l
ea
Configure S1 as the root bridge and S2 as the backup root bridge using priority
values. The device with the same value for the CIST Bridge and CIST
Root/ERPC is the root bridge. A smaller bridge priority value indicates a higher
bridge priority. Change the priorities of S1 and S2 to 8192 and 4096
respectively so that S2 becomes the root bridge.
tp
ht
ce
s:
<S1>display stp
ur
Run the display stp command to view information about the new root bridge.
so
:8192 .4c1f-cc45-aace
:Hello 2s MaxAge 20s FwDly 15s 0
Re
CIST Bridge
CIST RootPortId
:128.9
BPDU-Protection
:Disabled
ni
ng
CIST RegRoot/IRPC
ar
Le
:Normal
re
Mo
output omit
Page26
HUAWEI TECHNOLOGIES
HC Series
:4096 .4c1f-cc45-aacc
Bridge Times
CIST Root/ERPC
:4096 .4c1f-cc45-aacc / 0
CIST RegRoot/IRPC
:4096 .4c1f-cc45-aacc / 0
CIST RootPortId
:0.0
BPDU-Protection
:Disabled
hu
aw
ei
.c
om
/e
g.
in
output omit
ea
rn
The highlighted lines in the preceding information indicate that S2 has become
the new root bridge.
/l
Shut down interfaces Gigabit Ethernet 0/0/9 and Gigabit Ethernet 0/0/10 on S2
to isolate S2.
:/
tp
[S2-GigabitEthernet0/0/9]shutdown
[S2-GigabitEthernet0/0/9]quit
ht
s:
[S2-GigabitEthernet0/0/10]shutdown
[S1]display stp
ce
Bridge Times
CIST Root/ERPC
:8192 .4c1f-cc45-aace / 0
CIST RegRoot/IRPC
:8192 .4c1f-cc45-aace / 0
:0.0
Re
CIST RootPortId
so
ur
CIST Bridge
BPDU-Protection
:Disabled
ng
ni
:Normal
ar
Le
output omit
Mo
re
HC Series
HUAWEI TECHNOLOGIES
Page27
aw
ei
.c
om
/e
[S2-GigabitEthernet0/0/9]undo shutdown
[S2-GigabitEthernet0/0/9]quit
[S2]interface GigabitEthernet 0/0/10
[S2-GigabitEthernet0/0/10]undo shutdown
<S1>display stp
:8192 .4c1f-cc45-aace
Bridge Times
CIST Root/ERPC
CIST RegRoot/IRPC
:8192 .4c1f-cc45-aace / 0
CIST RootPortId
:128.9
BPDU-Protection
:Disabled
in
rn
ea
/l
g.
CIST Bridge
hu
tp
output omitted
:/
ht
<S2>display stp
Bridge Times
CIST Root/ERPC
:4096 .4c1f-cc45-aacc / 0
CIST RegRoot/IRPC
:4096 .4c1f-cc45-aacc / 0
CIST RootPortId
:0.0
BPDU-Protection
:Disabled
so
ur
ce
s:
CIST Bridge
Re
:Normal
ng
ar
ni
output omitted
Mo
re
Le
The highlighted lines in the preceding information indicate that S2 has been
restored and has become the root bridge once again.
Page28
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Port
Role
STP State
Protection
GigabitEthernet0/0/9
ROOT
FORWARDING NONE
GigabitEthernet0/0/10
ALTE
DISCARDING NONE
g.
hu
The preceding information shows that G0/0/9 is the root port and G0/0/10 is
the alternate port. You can change port priorities so that port interface G0/0/10
will become the root port and G0/0/9 will become the alternate port.
in
ea
rn
The default port priority is 128. A larger port priority value indicates a lower
priority. The priorities of G0/0/9 and G0/0/10 on S2 are set to 32 and 16;
therefore, G0/0/10 on S1 becomes the root port.
/l
tp
:/
ht
s:
Note that the port priorities are changed on S2, not S1.
<S2>display stp interface GigabitEthernet 0/0/9
ce
----[CIST][Port9(GigabitEthernet0/0/9)][FORWARDING]---Port Protocol
:Enabled
:Designated Port
ur
Port Role
:32
Port Cost(Dot1T )
so
Port Priority
:Config=auto / Active=20000
Port Edged
Re
Designated Bridge/Port
:4096.4c1f-cc45-aacc / 32.9
:Config=default / Active=disabled
:Config=auto / Active=true
Transit Limit
:147 packets/hello-time
Protection Type
:None
:STP
ar
ni
ng
Point-to-point
Le
:22
re
TC or TCN send
Mo
TC or TCN received :1
HC Series
HUAWEI TECHNOLOGIES
Page29
:164
:2
aw
ei
.c
om
/e
BPDU Received
:Enabled
Port Role
:Designated Port
:16
:Config=auto / Active=20000
Designated Bridge/Port
Port Edged
hu
Port Cost(Dot1T )
:4096.4c1f-cc45-aacc / 16.10
:Config=default / Active=disabled
:Config=auto / Active=true
Transit Limit
:147 packets/hello-time
Protection Type
:None
:STP
ea
rn
in
Point-to-point
g.
Port Priority
/l
TC or TCN send
:/
PortTimes
:35
BPDU Sent
tp
TC or TCN received :1
:183
BPDU Received
ht
ce
s:
ur
Run the display stp brief command on S1 to view the role of the interfaces.
Port
Role
STP State
GigabitEthernet0/0/9
ALTE
DISCARDING NONE
GigabitEthernet0/0/10
ROOT
FORWARDING NONE
Re
so
MSTID
Protection
ni
ng
ar
Le
[S1-GigabitEthernet0/0/10]shutdown
Mo
re
Port
Role
STP State
GigabitEthernet0/0/9
ROOT
FORWARDING NONE
Page30
HUAWEI TECHNOLOGIES
Protection
HC Series
aw
ei
.c
om
/e
The highlighted line in the preceding information indicates that G0/0/9 has
become the root port. Resume the default priorities of G0/0/9 and G0/0/10 on
S2 and re-enable the shutdown interfaces on S1.
[S2]interface GigabitEthernet 0/0/9
[S2-GigabitEthernet0/0/9]undo stp port priority
[S2-GigabitEthernet0/0/9]quit
[S2]interface GigabitEthernet 0/0/10
hu
g.
in
[S1-GigabitEthernet0/0/10]undo shutdown
rn
Run the display stp brief and display stp interface command on S1 to view
the roles of interfaces.
Role
GigabitEthernet0/0/9
ROOT
GigabitEthernet0/0/10
ALTE
STP State
Protection
/l
Port
FORWARDING NONE
DISCARDING NONE
tp
:/
MSTID
ea
ht
:Enabled
:Root Port
:128
Port Cost(Dot1T )
:Config=auto / Active=20000
:4096.4c1f-cc45-aacc / 128.9
ur
Designated Bridge/Port
:Config=default / Active=disabled
so
Port Edged
:Config=auto / Active=true
:147 packets/hello-time
Re
Point-to-point
Transit Limit
ce
Port Priority
s:
Port Role
:None
:STP
ng
Protection Type
ni
ar
TC or TCN send
Le
re
Mo
:5
BPDU Received
:622
HC Series
HUAWEI TECHNOLOGIES
Page31
aw
ei
.c
om
/e
----[CIST][Port10(GigabitEthernet0/0/10)][DISCARDING]---:Enabled
Port Role
:Alternate Port
Port Priority
:128
Port Cost(Dot1T )
:Config=auto / Active=20000
Designated Bridge/Port
:Config=default / Active=disabled
:Config=auto / Active=true
Transit Limit
:147 packets/hello-time
Protection Type
:None
:STP
hu
Point-to-point
g.
Port Edged
:4096.4c1f-cc45-aacc / 128.10
in
ea
TC or TCN send
rn
PortTimes
BPDU Sent
:4
:/
/l
:637
ht
tp
s:
The greyed line in the preceding information indicates that G0/0/9 and G0/0/10
cost is 20000 by default.
ce
so
ur
Re
Run the display stp brief and display stp interface command on S1 to view
the roles of interfaces.
<S1>display stp interface GigabitEthernet 0/0/9
ng
----[CIST][Port9(GigabitEthernet0/0/9)][DISCARDING]---Port Protocol
ni
Port Role
ar
Port Priority
Port Cost(Dot1T )
:Enabled
:Alternate Port
:128
:Config=200000 / Active=200000
Le
Designated Bridge/Port
Port Edged
:Config=default / Active=disabled
Point-to-point
:Config=auto / Active=true
Transit Limit
:147 packets/hello-time
re
Mo
:4096.4c1f-cc45-aacc / 128.9
Page32
HUAWEI TECHNOLOGIES
HC Series
Protection Type
:None
:STP
TC or TCN send
:4
:5
:818
g.
hu
aw
ei
.c
om
/e
Port
Role
STP State
Protection
GigabitEthernet0/0/9
ALTE
DISCARDING NONE
GigabitEthernet0/0/10
ROOT
FORWARDING NONE
ea
rn
in
MSTID
Final Configuration
ht
<S1>display current-configuration
tp
:/
/l
The highlighted lines in the preceding information indicates that G0/0/10 has
become the root port.
s:
ce
ur
so
interface GigabitEthernet0/0/9
Re
ng
interface GigabitEthernet0/0/10
#
ni
user-interface con 0
#
ar
user-interface vty 0 4
Le
return
re
<S2>display current-configuration
Mo
HC Series
HUAWEI TECHNOLOGIES
Page33
sysname S2
aw
ei
.c
om
/e
#
stp mode stp
stp instance 0 priority 4096
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
hu
user-interface con 0
user-interface vty 0 4
g.
in
return
rn
<S3>display current-configuration
ea
#
!Software Version V100R006C00SPC800
/l
sysname S3
:/
#
interface Ethernet0/0/1
tp
shutdown
#
ht
interface Ethernet0/0/13
shutdown
s:
#
interface Ethernet0/0/23
ce
shutdown
user-interface con 0
ur
so
user-interface vty 0 4
Re
ng
return
ni
<S4>display current-configuration
#
ar
Le
sysname S4
#
interface Ethernet0/0/14
re
shutdown
Mo
Page34
HUAWEI TECHNOLOGIES
HC Series
shutdown
aw
ei
.c
om
/e
#
user-interface con 0
user-interface vty 0 4
#
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
return
HC Series
HUAWEI TECHNOLOGIES
Page35
aw
ei
.c
om
/e
As a result of this lab section, you should achieve the following tasks:
g.
hu
:/
/l
ea
rn
in
Topology
ht
tp
s:
Scenario
Re
so
ur
ce
ng
Tasks
ni
Le
ar
If you are starting this section with a non-configured device, begin here and
then move to step 3. For those continuing from previous labs, begin at step 2.
re
Mo
Shut down port interfaces Ethernet 0/0/1 on S3, Ethernet 0/0/13 and Ethernet
Page36
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
g.
[Quidway]sysname S2
<Quidway>system-view
in
[Quidway]sysname R3
rn
ea
[R3-Ethernet0/0/1]quit
/l
:/
[R3-Ethernet0/0/13]quit
tp
ht
[R3-Ethernet0/0/23]shutdown
<Quidway>system-view
[S4]inter Ethernet 0/0/14
ur
[S4-Ethernet0/0/14]quit
ce
[S4-Ethernet0/0/14]shutdown
s:
[Quidway]sysname S4
Re
so
[S4-Ethernet0/0/24]shutdown
ni
ng
ar
Remove the configured STP priority from S1 and S2, and assigned cost on S1.
Le
re
Mo
HC Series
HUAWEI TECHNOLOGIES
Page37
aw
ei
.c
om
/e
Run the display stp command to view brief information about RSTP.
hu
[S1]display stp
-------[CIST Global Info][Mode RSTP]------:32768.4c1f-cc45-aace
Bridge Times
CIST Root/ERPC
:32768.4c1f-cc45-aacc / 20000
:128.9
BPDU-Protection
:Disabled
/l
:/
rn
:32768.4c1f-cc45-aace / 0
CIST RootPortId
ea
CIST RegRoot/IRPC
in
g.
CIST Bridge
tp
ht
output omitted
s:
[S2]display stp
Bridge Times
CIST Root/ERPC
:32768.4c1f-cc45-aacc / 0
CIST RegRoot/IRPC
:32768.4c1f-cc45-aacc / 0
so
:0.0
Re
CIST RootPortId
ur
ce
CIST Bridge
BPDU-Protection
:Disabled
ng
ni
ar
Mo
re
Le
output omitted
Page38
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
in
g.
rn
tp
:/
/l
ea
Edge ports are directly connected to user terminal and will not receive BPDUs.
Attackers may send pseudo BPDUs to attack the switching device. If the edge
ports receive the BPDUs, the switching device configures the edge ports as
non-edge ports and triggers a new spanning tree calculation. Network flapping
then occurs. BPDU protection can be used to protect switching devices against
malicious attacks.
ht
ce
[S2]stp bpdu-protection
s:
[S1]stp bpdu-protection
ur
Run the display stp brief command to view the port protection.
so
Re
MSTID Port
Protection
GigabitEthernet0/0/4
DESI FORWARDING
BPDU
GigabitEthernet0/0/9
ROOT FORWARDING
NONE
GigabitEthernet0/0/10
ALTE DISCARDING
NONE
ni
ng
Protection
DESI FORWARDING
BPDU
GigabitEthernet0/0/9
DESI FORWARDING
NONE
GigabitEthernet0/0/10
DESI FORWARDING
NONE
Mo
re
Le
ar
MSTID Port
HUAWEI TECHNOLOGIES
Page39
aw
ei
.c
om
/e
in
g.
hu
On a network running RSTP, a switching device maintains the root port status
and status of alternate ports by receiving BPDUs from an upstream switching
device. If the switching device cannot receive BPDUs from the upstream
device because of link congestion or unidirectional-link failure, the switching
device re-selects a root port. The original root port becomes a designated port
and the original discarding ports change to the Forwarding state. This
switching may cause network loops, which can be mitigated by configuring
loop protection.
rn
Configure loop protection on both the root port and the alternate port.
ea
Protection
GigabitEthernet0/0/4
DESI FORWARDING
BPDU
GigabitEthernet0/0/9
ROOT FORWARDING
NONE
GigabitEthernet0/0/10
ALTE DISCARDING
NONE
tp
:/
/l
MSTID Port
ht
G0/0/9 and G0/0/10 on S1 are now the root port and alternate port. Configure
loop protection on these two ports.
s:
ce
[S1-GigabitEthernet0/0/9]quit
ur
so
[S1-GigabitEthernet0/0/10]stp loop-protection
Re
Run the display stp brief command to view the port protection.
<S1>display stp brief
Protection
GigabitEthernet0/0/4
DESI FORWARDING
BPDU
GigabitEthernet0/0/9
ROOT FORWARDING
LOOP
GigabitEthernet0/0/10
ALTE DISCARDING
LOOP
ar
ni
ng
MSTID Port
Mo
re
Le
Since S2 is root, all the ports are designated ports and therefore do not need to
configure loop protection. After completing the configuration, you may wish to
set S1 as the root, and configure loop protection on the root port and alternate
port of S2 using the same process as with S1.
Page40
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Final Configuration
<S1>display current-configuration
#
!Software Version V100R006C00SPC800
sysname S1
#
stp mode rstp
stp bpdu-protection
hu
#
interface GigabitEthernet0/0/4
g.
in
#
interface GigabitEthernet0/0/9
rn
stp loop-protection
#
ea
interface GigabitEthernet0/0/10
/l
stp loop-protection
#
:/
user-interface con 0
tp
user-interface vty 0 4
#
s:
ht
return
ce
<S2>display current-configuration
ur
so
sysname S2
stp mode rstp
Re
stp bpdu-protection
ng
ni
interface GigabitEthernet0/0/4
#
ar
Le
user-interface vty 0 4
#
Mo
re
return
HC Series
HUAWEI TECHNOLOGIES
Page41
<S3>display current-configuration
aw
ei
.c
om
/e
#
!Software Version V100R006C00SPC800
sysname S3
#
interface Ethernet0/0/1
shutdown
#
interface Ethernet0/0/13
hu
shutdown
#
g.
interface Ethernet0/0/23
in
shutdown
#
rn
user-interface con 0
ea
user-interface vty 0 4
#
<S4>dis current-configuration
#
ht
tp
:/
/l
return
sysname S4
s:
#
interface Ethernet0/0/14
ce
shutdown
ur
#
interface Ethernet0/0/24
so
shutdown
Re
user-interface con 0
user-interface vty 0 4
ng
Mo
re
Le
ar
ni
return
Page42
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
g.
in
rn
ea
hu
As a result of this lab section, you should achieve the following tasks:
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
Topology
HC Series
HUAWEI TECHNOLOGIES
Page43
aw
ei
.c
om
/e
Scenario
Assume that you are a network administrator of a company that contains a
single administrative domain and within the administrative domain, multiple
networks have been defined, for which currently no method of routing exists.
Since the network scale is small, with only a few networks, static routes and
default routes are to be used to implement interwork communication. The
network addressing is to be applied as shown in Figure 4.1.
g.
hu
rn
in
Tasks
/l
ea
:/
<Huawei>system-view
[Huawei]sysname R1
ht
tp
s:
[R1-GigabitEthernet0/0/0]quit
ce
ur
[R1-GigabitEthernet0/0/1]quit
[R1]interface LoopBack 0
Re
so
ng
ni
Interface
IP Address/Mask
Physical
Protocol
ar
......output omitted......
10.0.13.1/24
up
up
GigabitEthernet0/0/1
10.0.12.1/24
up
up
GigabitEthernet0/0/2
unassigned
up
down
LoopBack0
10.0.1.1/24
up
up(s)
re
Le
GigabitEthernet0/0/0
Mo
......output omitted......
Page44
HUAWEI TECHNOLOGIES
HC Series
<Huawei>system-view
aw
ei
.c
om
/e
hu
[R2]interface LoopBack0
in
g.
Physical
rn
Interface
unassigned
GigabitEthernet0/0/1
10.0.12.2/24
GigabitEthernet0/0/2
10.0.23.2/24
LoopBack0
10.0.2.2/24
:/
/l
GigabitEthernet0/0/0
ea
......output omitted......
up
down
up
up
up
up
up
up(s)
tp
......output omitted......
Protocol
ht
<Huawei>system-view
s:
[Huawei]sysname R3
ce
ur
[R3-GigabitEthernet0/0/0]quit
[R3]interface GigabitEthernet0/0/2
so
Re
[R3-GigabitEthernet0/0/2]quit
[R3]interface LoopBack 0
ng
ni
IP Address/Mask
Physical
Protocol
ar
......output omitted......
10.0.13.3/24
up
up
GigabitEthernet0/0/1
unassigned
up
down
GigabitEthernet0/0/2
10.0.23.3/24
up
up
LoopBack0
10.0.3.3/24
up
up(s)
re
Le
GigabitEthernet0/0/0
Mo
......output omitted......
HC Series
HUAWEI TECHNOLOGIES
Page45
aw
ei
.c
om
/e
<R1>ping 10.0.12.2
PING 10.0.12.2: 56 data bytes, press CTRL_C to break
hu
g.
5 packet(s) transmitted
5 packet(s) received
in
rn
ea
<R1>ping 10.0.13.3
/l
:/
tp
ht
5 packet(s) received
0.00% packet loss
ce
5 packet(s) transmitted
s:
so
ur
Re
ng
ni
ar
Le
Mo
re
Page46
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
<R2>ping 10.0.13.3
PING 10.0.13.3: 56 data bytes, press CTRL_C to break
g.
in
rn
ea
/l
:/
0 packet(s) received
tp
ht
<R2>ping 10.0.3.3
s:
ce
so
ur
Re
ni
ng
Le
ar
Mo
re
The preceding test result shows that R2 cannot communicate with 10.0.3.3
and 10.0.13.3.
HC Series
HUAWEI TECHNOLOGIES
Page47
Run the display ip routing-table command to view the routing table of R2.
The routing table does not contain the routes of the two networks.
aw
ei
.c
om
/e
<R2>display ip routing-table
Route Flags: R - relay, D - download to fib
Proto
Routes : 13
Pre Cost Flags NextHop
Interface
Direct 0
10.0.2.2
LoopBack0
10.0.2.2/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.12.0/24
Direct 0
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.23.0/24
Direct 0
10.0.23.2
GigabitEthernet0/0/2
10.0.23.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/2
10.0.23.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/2
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.255.255.255/32 Direct 0
255.255.255.255/32 Direct 0
/l
ea
rn
in
g.
hu
10.0.2.0/24
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
:/
127.0.0.1
tp
s:
ht
ur
ce
Re
so
ng
ni
<R2>display ip routing-table
ar
Interface
10.0.3.0/24
Static
60
RD 10.0.23.3
GigabitEthernet0/0/2
10.0.12.0/24
Direct
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32
Direct
127.0.0.1
GigabitEthernet0/0/1
Mo
re
Le
Destination/Mask
Page48
HUAWEI TECHNOLOGIES
HC Series
Static
60
RD 10.0.23.3
GigabitEthernet0/0/2
10.0.23.0/24
Direct
10.0.23.2
GigabitEthernet0/0/2
10.0.23.2/32
Direct
127.0.0.1
GigabitEthernet0/0/2
aw
ei
.c
om
/e
10.0.13.0/24
hu
in
g.
:/
/l
ea
rn
Amend th preferences for on the backup static routes to ensure that the routes
are used only when the primary link fails. In this example, the preference of the
backup static route is set to 80.
[R1]ip route-static 10.0.3.0 24 10.0.13.3
tp
ht
s:
ur
ce
so
View the current static route configuration in the routing table of R2.
<R2>display ip routing-table
Re
ng
Flags NextHop
Interface
10.0.2.2
LoopBack0
10.0.2.2/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.255/32
Direct 0
127.0.0.1
LoopBack0
Static 60
RD
10.0.23.3
GigabitEthernet0/0/2
10.0.12.0/24 Direct 0
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
ar
Le
10.0.3.0/24
re
Pre Cost
Direct 0
10.0.2.0/24
Mo
Routes : 15
ni
Destination/Mask Proto
HC Series
HUAWEI TECHNOLOGIES
Page49
RD
10.0.23.3
GigabitEthernet0/0/2
10.0.23.0/24 Direct 0
10.0.23.2
GigabitEthernet0/0/2
10.0.23.2/32 Direct 0
127.0.0.1
GigabitEthernet0/0/2
10.0.23.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/2
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32 Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
127.0.0.0/8
aw
ei
.c
om
/e
10.0.13.0/24 Static 60
g.
hu
The routing table contains two static routes that were configured in step 3. The
value of the Protocol field is Static, indicating a static route. The value of the
Preference field is 60, indicating the default preference is used for the route.
in
rn
ea
/l
:/
ht
5 packet(s) transmitted
5 packet(s) received
s:
tp
ce
ur
<R2>ping 10.0.3.3
so
Re
ni
ng
ar
5 packet(s) transmitted
Le
5 packet(s) received
0.00% packet loss
Mo
re
Page50
HUAWEI TECHNOLOGIES
HC Series
The command output shows that the route is functioning normally. The tracert
command can also be run to view the path over which the data is transferred.
aw
ei
.c
om
/e
<R2>tracert 10.0.13.3
hu
g.
1 10.0.23.3 40 ms 30 ms 30 ms
in
ea
rn
[R2-GigabitEthernet0/0/2]shutdown
ht
[R2-GigabitEthernet0/0/2]quit
tp
[R2]interface GigabitEthernet0/0/2
:/
/l
s:
Compare the routing tables with the previous routing tables before Gigabit
Ethernet 0/0/2 was disabled.
ce
<R2>display ip routing-table
ur
----------------------------------------------------------------------------
so
Re
Destinations : 12
Pre Cost
Flags NextHop
Interface
Direct 0
10.0.2.2
LoopBack0
10.0.2.2/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.3.0/24
Static 80
10.0.12.2
GigabitEthernet0/0/1
10.0.12.0/24
Direct 0
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
10.0.12.2
GigabitEthernet0/0/1
Le
ni
10.0.2.0/24
Static 80
Mo
re
Proto
Routes : 12
ar
ng
Destination/Mask
HC Series
HUAWEI TECHNOLOGIES
Page51
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
aw
ei
.c
om
/e
127.0.0.0/8
The next hops and preferences of the two routes as shown in the preceding
routing table for R2 have changed.
hu
g.
<R2>ping 10.0.3.3
in
rn
/l
ea
:/
5 packet(s) transmitted
tp
5 packet(s) received
0.00% packet loss
ht
s:
<R2>ping 10.0.13.3
ce
ur
so
Re
ng
5 packet(s) transmitted
5 packet(s) received
ni
ar
Mo
re
Le
The network is not disconnected when the link between R2 and R3 is shut
down.
Page52
HUAWEI TECHNOLOGIES
HC Series
The tracert command can also be run to view through over which path the
data is being forwarded.
aw
ei
.c
om
/e
<R2>tracert 10.0.13.3
hu
g.
1 10.0.12.1 40 ms 21 ms 21 ms
in
2 10.0.13.3 30 ms 21 ms 21 ms
ea
rn
The command output shows that the data sent by R2 reaches R3 via the
10.0.12.0 and 10.0.13.0 networks connected to R1.
:/
/l
tp
ht
[R2-GigabitEthernet0/0/2]undo shutdown
s:
ce
[R1]ping 10.0.23.3
so
ur
Re
ng
ni
5 packet(s) transmitted
ar
0 packet(s) received
Le
Mo
re
HC Series
HUAWEI TECHNOLOGIES
Page53
aw
ei
.c
om
/e
Routes : 14
Proto
Interface
10.0.1.0/24
Direct
10.0.1.1
LoopBack0
10.0.1.1/32
Direct
127.0.0.1
LoopBack0
Direct
127.0.0.1
LoopBack0
10.0.3.0/24
Static
60
RD
10.0.13.3
GigabitEthernet0/0/0
10.0.12.0/24
Direct
10.0.12.1
GigabitEthernet0/0/1
10.0.12.1/32
Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
Direct
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct
g.
in
rn
ea
/l
127.0.0.1
InLoopBack0
tp
hu
10.0.1.255/32
:/
Destination/Mask
ht
s:
ur
ce
so
Re
ng
ni
ar
Le
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
Mo
re
Page54
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
The default route forwards traffic destined for 10.0.23.3 to the next hop of
10.0.13.3 on R3. R3 is directly connected to the 10.0.23.0 network.
If the link between R1 and R3 fails, a backup default route can be used to
communicate with 10.0.23.3 and 10.0.3.3 via the 10.0.12.0 network.
hu
g.
/l
ea
rn
in
:/
<R1>display ip routing-table
tp
----------------------------------------------------------------------------
ht
Routes : 15
Pre Cost Flags NextHop
s:
Proto
Interface
Static 60
RD
10.0.13.3
GigabitEthernet0/0/0
10.0.1.0/24
Direct 0
10.0.1.1
LoopBack0
10.0.1.1/32
Direct 0
127.0.0.1
LoopBack0
10.0.1.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.3.0/24
Static 60
RD
10.0.13.3
GigabitEthernet0/0/0
Direct 0
10.0.12.1
GigabitEthernet0/0/1
Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
Direct 0
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
so
Re
10.0.12.0/24
ce
0.0.0.0/0
ur
Destination/Mask
Mo
re
Le
ar
ni
ng
10.0.12.1/32
HC Series
HUAWEI TECHNOLOGIES
Page55
aw
ei
.c
om
/e
hu
[R3-GigabitEthernet0/0/0]quit
g.
<R1>display ip routing-table
Route Flags: R - relay, D - download to fib
in
-------------------------------------------------------------------------
Pre Cost
Flags NextHop
Interface
GigabitEthernet0/0/1
Static 80
RD
10.0.1.0/24
Direct 0
10.0.1.1/32
Direct 0
10.0.1.255/32
Direct 0
10.0.12.0/24
Direct 0
10.0.12.1/32
10.0.12.2
10.0.1.1
LoopBack0
127.0.0.1
LoopBack0
127.0.0.1
LoopBack0
:/
0.0.0.0/0
ea
Proto
Routes : 11
/l
Destination/Mask
rn
Direct 0
tp
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
10.0.12.1
GigabitEthernet0/0/1
so
ur
ce
s:
ht
Re
ng
ni
<R1>ping 10.0.23.3
PING 10.0.23.3: 56 data bytes, press CTRL_C to break
ar
Le
Mo
re
Page56
HUAWEI TECHNOLOGIES
HC Series
5 packet(s) transmitted
aw
ei
.c
om
/e
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 76/110/250 ms
<R1>tracert 10.0.23.3
hu
2 10.0.23.3 60 ms 53 ms 56 ms
g.
The IP packets are reaching R3 (10.0.23.3) via the next hop 10.0.12.2 of R2.
rn
in
Final Configuration
<R1>dis current-configuration
ea
[V200R003C00SPC200]
/l
#
sysname R1
interface GigabitEthernet0/0/0
shutdown
ht
tp
:/
s:
interface GigabitEthernet0/0/1
ce
#
interface LoopBack0
ur
so
Re
ng
ni
user-interface con 0
ar
authentication-mode password
set authentication password cipher %$%$+L'YR&IZt'4,)>-*#lH",}%K-oJ_M9+'lOU~bD
Le
(\WTqB}%N,%$%$
user-interface vty 0 4
re
Mo
return
HC Series
HUAWEI TECHNOLOGIES
Page57
[V200R003C00SPC200]
aw
ei
.c
om
/e
#
sysname R2
interface GigabitEthernet0/0/1
ip address 10.0.12.2 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 10.0.23.2 255.255.255.0
#
hu
interface LoopBack0
ip address 10.0.2.2 255.255.255.0
g.
in
rn
ea
/l
user-interface con 0
:/
authentication-mode password
tp
#44C@+s#,%$%$
user-interface vty 0 4
ht
s:
return
<R3>display current-configuration
ce
[V200R003C00SPC200]
ur
#
sysname R3
so
Re
interface GigabitEthernet0/0/0
shutdown
ng
ni
interface GigabitEthernet0/0/2
ip address 10.0.23.3 255.255.255.0
ar
Le
interface LoopBack0
ip address 10.0.3.3 255.255.255.0
re
Mo
Page58
HUAWEI TECHNOLOGIES
HC Series
user-interface con 0
aw
ei
.c
om
/e
authentication-mode password
set authentication password cipher %$%$ksXDMg7Ry6yUU:63:DQ),#/sQg"@*S\U#.s.bHW
xQ,y%#/v,%$%$
user-interface vty 0 4
#
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
return
HC Series
HUAWEI TECHNOLOGIES
Page59
aw
ei
.c
om
/e
As a result of this lab section, you should achieve the following tasks:
g.
hu
in
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
Topology
Page60
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Scenario
Assume that you are a network administrator in charge of managing a small
administrative domain consisting of three routers and five networks. Due to the
limited requirement, RIP is to be used to support routing. RIPv1 is initially
configured, but you realize that RIPv2 has many advantages. After some
consideration, you transition the domain to support RIPv2.
hu
Tasks
in
g.
ea
rn
If you are starting this section with a non-configured device begin here and
then move to step 3. For those continuing from previous labs, begin at step 2.
<Huawei>system-view
/l
:/
tp
ht
[R1]interface LoopBack 0
s:
[R1-LoopBack0]quit
ce
<Huawei>system-view
ur
so
Re
ni
ng
ar
Le
[R3]interface LoopBack 0
Mo
re
HC Series
HUAWEI TECHNOLOGIES
Page61
aw
ei
.c
om
/e
hu
[R1-GigabitEthernet0/0/0]quit
[R1]undo ip route-static 0.0.0.0 0.0.0.0
g.
rn
in
ea
/l
[R2-GigabitEthernet0/0/2]quit
ht
[R3-GigabitEthernet0/0/2]shutdown
tp
:/
[R3-GigabitEthernet0/0/2]quit
ce
s:
so
ur
Re
ng
ni
[R3]interface GigabitEthernet0/0/1
Mo
re
Le
ar
Page62
HUAWEI TECHNOLOGIES
HC Series
Verify that R1 and R2 can communicate with one another over the 10.0.13.0
network.
aw
ei
.c
om
/e
<R1>ping 10.0.13.2
PING 10.0.13.2: 56 data bytes, press CTRL_C to break
hu
g.
5 packet(s) transmitted
5 packet(s) received
in
rn
ea
/l
<R2>ping 10.0.12.3
:/
tp
ht
s:
ce
ur
5 packet(s) received
Re
so
ng
ni
Enable RIP on R1, and then advertise the 10.0.0.0 network segment.
ar
[R1]rip 1
Le
[R1-rip-1]network 10.0.0.0
Enable RIP on R2, and then advertise the 10.0.0.0 network segment.
re
[R2]rip 1
Mo
[R2-rip-1]network 10.0.0.0
HC Series
HUAWEI TECHNOLOGIES
Page63
Enable RIP on R3, and then advertise the 10.0.0.0 network segment.
aw
ei
.c
om
/e
[R3]rip 1
[R3-rip-1]network 10.0.0.0
hu
View the routing tables of R1, R2, and R3. Make sure that these routers have
learned the RIP routes that are highlighted in gray in the following command
output.
g.
<R1>display ip routing-table
in
----------------------------------------------------------------------------
10.0.1.1
LoopBack0
10.0.1.1/32
Direct 0
127.0.0.1
LoopBack0
10.0.1.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.3.0/24
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
10.0.12.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.13.0/24
Direct 0
10.0.13.1/32
Direct 0
10.0.13.1
GigabitEthernet0/0/0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/0
ce
tp
Interface
ht
Direct 0
s:
10.0.1.0/24
:/
/l
Proto
ur
Destination/Mask
Routes : 13
ea
Destinations : 13
rn
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
Re
so
127.0.0.0/8
255.255.255.255/32 Direct 0
ng
<R2>display ip routing-table
ni
ar
Le
Destinations : 15
Mo
re
Destination/Mask
10.0.1.0/24
Page64
Routes : 15
Proto
Interface
RIP
100 1
GigabitEthernet0/0/0
10.0.13.1
HUAWEI TECHNOLOGIES
HC Series
10.0.2.2
LoopBack0
10.0.2.2/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.3.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
10.0.12.0/24
Direct 0
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
Direct 0
10.0.13.2
GigabitEthernet0/0/0
10.0.13.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
aw
ei
.c
om
/e
10.0.2.0/24
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
in
g.
hu
10.0.13.255/32 Direct 0
rn
<R3>display ip routing-table
ea
:/
Destinations : 13
/l
----------------------------------------------------------------------------
Proto
Interface
10.0.1.0/24
RIP
100 2
10.0.2.0/24
RIP
100 1
10.0.3.0/24
Direct 0
10.0.3.3/32
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2
GigabitEthernet0/0/1
10.0.3.3
LoopBack0
Direct 0
127.0.0.1
LoopBack0
10.0.3.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.12.0/24
Direct 0
10.0.12.3
GigabitEthernet0/0/1
10.0.12.3/32
Direct 0
ur
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32
Direct 0
127.0.0.1
GigabitEthernet0/0/1
RIP
100 1
10.0.12.2
GigabitEthernet0/0/1
Direct 0
127.0.0.1
InLoopBack0
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
s:
ce
so
10.0.13.0/24
127.0.0.0/8
ni
ng
127.0.0.1/32
ht
Re
tp
Destination/Mask
Mo
re
Le
ar
HC Series
HUAWEI TECHNOLOGIES
Page65
aw
ei
.c
om
/e
hu
5 packet(s) received
0.00% packet loss
in
g.
rn
:/
/l
ea
Run the debugging command to enable the RIP debugging function. The
debugging command can be used only in the user view. To identify the
currently enabled debugging information, use the display debugging
command. Run the terminal debugging command to display the debugging
information.
tp
ht
<R1>debugging rip 1
<R1>display debugging
s:
ce
ur
REPLAY-PROTECT, GR
<R1>terminal debugging
so
Re
ng
<R1>
ar
ni
Le
response, Length 64
<R1>
re
Mo
<R1>
Page66
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
g.
ea
rn
in
/l
<R1>
:/
tp
update queue
ht
<R1>
s:
ce
ur
ng
Re
so
ni
Le
ar
After the preceding configuration, you need to configure only version 2 in the
RIP sub view.
[R1]rip 1
Mo
re
[R1-rip-1]version 2
HC Series
<R1>
HUAWEI TECHNOLOGIES
Page67
aw
ei
.c
om
/e
[R2-rip-1]version 2
[R3]rip 1
[R3-rip-1]version 2
g.
hu
Run the display ip routing-table command to view the routing tables of R1,
R2, and R3. Compare the routes that are highlighted with RIPv1 routes.
in
<R1>display ip routing-table
Route Flags: R - relay, D - download to fib
rn
----------------------------------------------------------------------------
10.0.1.0/24
Direct
10.0.1.1/32
Direct
10.0.1.255/32
Direct
10.0.2.0/24
RIP
/l
Pre Cost
Flags NextHop
:/
Proto
10.0.1.1
Interface
LoopBack0
127.0.0.1
LoopBack0
127.0.0.1
LoopBack0
100 1
10.0.13.2
GigabitEthernet0/0/0
ht
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
10.0.12.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.13.0/24
Direct
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
so
ce
s:
10.0.3.0/24
ur
Destination/Mask
Routes : 13
tp
Destinations : 13
ea
Direct
127.0.0.1
InLoopBack0
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct
127.0.0.1
InLoopBack0
ni
ng
Re
127.0.0.1/32
ar
<R2>display ip routing-table
Le
Mo
re
Page68
Routes : 15
HUAWEI TECHNOLOGIES
HC Series
Destination/Mask
Proto
Interface
10.0.1.0/24
RIP
100 1
10.0.2.0/24
Direct 0
10.0.2.2/32
10.0.13.1
GigabitEthernet0/0/0
10.0.2.2
LoopBack0
Direct 0
127.0.0.1
LoopBack0
10.0.2.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.3.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
10.0.12.0/24
Direct 0
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/1
aw
ei
.c
om
/e
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
Direct 0
10.0.13.2
GigabitEthernet0/0/0
10.0.13.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
ea
rn
in
g.
hu
10.0.12.255/32 Direct 0
/l
[R3]display ip routing-table
:/
----------------------------------------------------------------------------
tp
10.0.1.0/24
RIP
100 2
10.0.12.2
GigabitEthernet0/0/1
10.0.2.0/24
RIP
100 1
10.0.12.2
GigabitEthernet0/0/1
10.0.3.0/24
Direct 0
10.0.3.3
LoopBack0
10.0.3.3/32
Direct 0
ur
127.0.0.1
LoopBack0
10.0.3.255/32
Direct 0
127.0.0.1
LoopBack0
Direct 0
10.0.12.3
GigabitEthernet0/0/1
Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
100 1
10.0.12.2
GigabitEthernet0/0/1
ce
Re
10.0.12.0/24
s:
Proto
so
Destination/Mask
Routes : 13
ht
Destinations : 13
10.0.12.3/32
Interface
RIP
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
ni
ng
10.0.13.0/24
Le
ar
127.0.0.1/32
Mo
re
HC Series
HUAWEI TECHNOLOGIES
Page69
aw
ei
.c
om
/e
hu
5 packet(s) received
0.00% packet loss
in
g.
rn
The debugging command can be used to view the RIPv2 periodic updates.
<R1>terminal debugging
ea
/l
:/
tp
ht
<R1>
ce
s:
ur
so
<R1>
Re
ng
ni
response, Length 24
<R1>
ar
Le
Mo
re
Page70
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
Final Configuration
g.
<R1>display current-configuration
in
[V200R003C00SPC200]
#
rn
sysname R1
ea
#
interface GigabitEthernet0/0/0
/l
ht
tp
:/
interface LoopBack0
s:
ce
rip 1
ur
version 2
network 10.0.0.0
so
Re
user-interface con 0
authentication-mode password
set authentication password cipher %$%$+L'YR&IZt'4,)>-*#lH",}%K-oJ_M9+'lOU~bD
ng
(\WTqB}%N,%$%$
#
Mo
re
Le
ar
return
ni
user-interface vty 0 4
HC Series
HUAWEI TECHNOLOGIES
Page71
[V200R003C00SPC200]
aw
ei
.c
om
/e
#
sysname R2
#
interface GigabitEthernet0/0/0
ip address 10.0.13.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 10.0.12.2 255.255.255.0
hu
#
interface GigabitEthernet0/0/2
g.
shutdown
in
rn
interface LoopBack0
ea
/l
rip 1
:/
version 2
network 10.0.0.0
tp
#
user-interface con 0
ht
authentication-mode password
s:
#44C@+s#,%$%$
user-interface vty 0 4
ce
so
ur
return
Re
<R3>display current-configuration
[V200R003C00SPC200]
#
ng
sysname R3
ni
interface GigabitEthernet0/0/0
ar
shutdown
Le
interface GigabitEthernet0/0/1
re
Mo
Page72
HUAWEI TECHNOLOGIES
HC Series
shutdown
aw
ei
.c
om
/e
hu
#
user-interface con 0
g.
authentication-mode password
in
rn
user-interface vty 0 4
ea
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
return
HC Series
HUAWEI TECHNOLOGIES
Page73
Learning Objectives
aw
ei
.c
om
/e
As a result of this lab section, you should achieve the following tasks:
Aggregation of routes in RIPv2
Implementation of authentication between RIP peers
Troubleshoot RIP peer authentication failures.
hu
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
Topology
Mo
re
Le
ar
Page74
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Scenario
As the network administrator of a small company you are responsible for the
support of a RIPv2 based enterprise network. In order to better manage and
optimize the routing table, route aggregation is required.
hu
Additionally, concerns over the insertion of rogue devices into the network that
may affect routing tables means that RIP authentication is required to protect
the network.
g.
Tasks
rn
in
/l
ea
If you are starting this section with a non-configured device begin here and
then move to step 2. For those continuing from previous labs, begin at step 2.
:/
Configure the base system information and addressing for R1, R2 and R3 on
the network.
tp
<Huawei>system-view
ht
s:
ce
[R1-GigabitEthernet0/0/0]quit
so
ur
Re
ng
ni
[R2-GigabitEthernet0/0/0]quit
ar
Le
[R2-GigabitEthernet0/0/1]quit
[R2]interface LoopBack 0
Mo
re
HC Series
HUAWEI TECHNOLOGIES
Page75
aw
ei
.c
om
/e
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]ip address 10.0.12.3 24
[R3-GigabitEthernet0/0/1]quit
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 10.0.3.3 24
<R1>ping 10.0.13.2
PING 10.0.13.2: 56 data bytes, press CTRL_C to break
g.
hu
After the IP addresses have been configured for the interfaces, test the
network connectivity.
in
rn
ea
tp
5 packet(s) transmitted
:/
/l
5 packet(s) received
ht
s:
ce
ur
so
Re
ng
ni
5 packet(s) received
ar
Mo
re
Le
Page76
HUAWEI TECHNOLOGIES
HC Series
[R1]rip 1
aw
ei
.c
om
/e
[R1-rip-1]version 2
[R1-rip-1]network 10.0.0.0
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]network 10.0.0.0
hu
[R3]rip 1
[R3-rip-1]version 2
in
g.
[R3-rip-1]network 10.0.0.0
rn
ea
/l
[R3-LoopBack0]interface LoopBack 2
[R3-LoopBack2]interface LoopBack 3
[R3-LoopBack3]interface LoopBack 4
tp
:/
ht
ce
s:
ur
Re
so
ni
ng
[R3-rip-1]network 172.16.0.0
View the routing table of R1 to verify the new networks are being advertized.
ar
<R1>display ip routing-table
Le
Routes : 17
Mo
re
HC Series
HUAWEI TECHNOLOGIES
Page77
Interface
Direct 0
10.0.1.1
LoopBack0
10.0.1.1/32
Direct 0
127.0.0.1
LoopBack0
10.0.1.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.3.0/24
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
10.0.12.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.13.0/24
Direct 0
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
aw
ei
.c
om
/e
10.0.1.0/24
127.0.0.1
GigabitEthernet0/0/0
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
in
g.
hu
Direct 0
10.0.13.255/32 Direct 0
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
172.16.1.0/24
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
172.16.2.0/24
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
172.16.3.0/24
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
127.0.0.1
InLoopBack0
ea
/l
:/
rn
172.16.0.0/24
255.255.255.255/32 Direct 0
ht
tp
The information in grey shows that R1 has learned specific routes but not
aggregated routes.
Test network connectivity from R1 to the 172.16.0.0 network range.
s:
<R1>ping 172.16.0.1
ce
ur
so
Re
ng
5 packet(s) transmitted
5 packet(s) received
ni
Mo
re
Le
ar
Page78
HUAWEI TECHNOLOGIES
Destination/Mask
HC Series
aw
ei
.c
om
/e
hu
View the routing table of R1 that should now include an aggregated route.
g.
<R1>display ip routing-table
in
----------------------------------------------------------------------------
10.0.1.1/32
Direct 0
10.0.1.255/32
Direct 0
10.0.2.0/24
RIP
100 1
10.0.3.0/24
RIP
100 2
10.0.12.0/24
RIP
100 1
10.0.13.0/24
Direct 0
10.0.13.1/32
Interface
10.0.1.1
LoopBack0
127.0.0.1
LoopBack0
127.0.0.1
LoopBack0
10.0.13.2
GigabitEthernet0/0/0
10.0.13.2
GigabitEthernet0/0/0
10.0.13.2
GigabitEthernet0/0/0
10.0.13.1
GigabitEthernet0/0/0
Direct 0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
ce
127.0.0.1
GigabitEthernet0/0/0
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
100 2
10.0.13.2
GigabitEthernet0/0/0
127.0.0.1
InLoopBack0
Re
so
127.0.0.0/8
ur
tp
Direct 0
s:
10.0.1.0/24
:/
/l
Proto
ht
Destination/Mask
Routes : 14
ea
Destinations : 14
rn
172.16.0.0/16
RIP
ng
255.255.255.255/32 Direct 0
Mo
re
Le
ar
ni
HC Series
HUAWEI TECHNOLOGIES
Page79
Verify that the routes are still supported for the 172.16.0.0 network range.
<R1>ping 172.16.0.1
aw
ei
.c
om
/e
hu
g.
5 packet(s) received
0.00% packet loss
rn
in
/l
ea
The preceding information shows that route aggregation reduces the size of
the routing table without affecting communication to aggregated networks.
tp
:/
ht
s:
[R1]interface GigabitEthernet0/0/0
ce
ur
[R2]interface GigabitEthernet0/0/0
[R2-GigabitEthernet0/0/0]rip authentication-mode simple huawei
so
[R2-GigabitEthernet0/0/0]quit
Re
[R2]interface GigabitEthernet0/0/1
[R2-GigabitEthernet0/0/1]rip authentication-mode md5 usual huawei
ng
[R3]interface GigabitEthernet0/0/1
Mo
re
Le
ar
ni
Page80
HUAWEI TECHNOLOGIES
HC Series
After the configuration is complete, verify that the routes are not affected.
<R1>display ip routing-table
aw
ei
.c
om
/e
Proto
Routes : 14
Pre Cost Flags NextHop
Interface
Direct 0
10.0.1.1
LoopBack0
10.0.1.1/32
Direct 0
127.0.0.1
LoopBack0
10.0.1.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.3.0/24
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
10.0.12.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.13.0/24
Direct 0
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
127.255.255.255/32 Direct 0
100 2
255.255.255.255/32 Direct 0
g.
in
rn
ea
/l
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
:/
InLoopBack0
10.0.13.2
GigabitEthernet0/0/0
127.0.0.1
InLoopBack0
s:
<R2>display ip routing-table
127.0.0.1
tp
RIP
ht
172.16.0.0/16
hu
10.0.1.0/24
ce
----------------------------------------------------------------------------
Proto
Interface
100 1
RIP
10.0.13.1
GigabitEthernet0/0/0
10.0.2.0/24
Direct 0
10.0.2.2
LoopBack0
10.0.2.2/32
Direct 0
127.0.0.1
LoopBack0
10.0.2.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.3.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
10.0.12.0/24
Direct 0
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/1
Le
ni
ng
10.0.1.0/24
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
Direct 0
10.0.13.2
GigabitEthernet0/0/0
10.0.13.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
Mo
re
Routes : 19
ar
Re
Destination/Mask
so
ur
Destinations : 19
HC Series
HUAWEI TECHNOLOGIES
Page81
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
aw
ei
.c
om
/e
10.0.13.255/32 Direct 0
172.16.0.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
172.16.1.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
172.16.2.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
172.16.3.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
hu
<R3>display ip routing-table
Route Flags: R - relay, D - download to fib
g.
----------------------------------------------------------------------------
10.0.1.0/24
RIP
100 2
10.0.12.2
GigabitEthernet0/0/1
10.0.2.0/24
RIP
100 1
10.0.12.2
GigabitEthernet0/0/1
10.0.3.0/24
Direct
10.0.3.3
LoopBack0
10.0.3.3/32
Direct
10.0.3.255/32
Direct
10.0.12.0/24
Direct
10.0.12.3/32
Direct
10.0.12.255/32 Direct
10.0.13.0/24
ea
/l
127.0.0.1
LoopBack0
127.0.0.1
LoopBack0
10.0.12.3
GigabitEthernet0/0/1
127.0.0.1
GigabitEthernet0/0/1
127.0.0.1
GigabitEthernet0/0/1
RIP
100 1
10.0.12.2
GigabitEthernet0/0/1
127.0.0.0/8
Direct
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
InLoopBack0
ce
s:
ht
tp
Direct
172.16.0.1 LoopBack2
172.16.0.1/32
Direct
127.0.0.1
LoopBack2
172.16.0.255/32 Direct
127.0.0.1
LoopBack2
172.16.1.0/24
Direct
172.16.1.1 LoopBack3
172.16.1.1/32
Direct
127.0.0.1
LoopBack3
172.16.1.255/32 Direct
127.0.0.1
LoopBack3
172.16.2.0/24
Direct
172.16.2.1 LoopBack4
127.0.0.1
LoopBack4
172.16.2.255/32 Direct
127.0.0.1
LoopBack4
172.16.3.1 LoopBack5
ni
Direct
ar
ng
Re
so
172.16.0.0/24
172.16.3.0/24
Direct
172.16.3.1/32
Direct
127.0.0.1
LoopBack5
172.16.3.255/32 Direct
127.0.0.1
LoopBack5
255.255.255.255/32 Direct
127.0.0.1
InLoopBack0
re
Le
172.16.2.1/32
Mo
Interface
rn
Proto
ur
Destination/Mask
Routes : 25
:/
Destinations : 25
in
Page82
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
----------------------------------------------------------------------------
in
Proto
Pre Cost
Flags NextHop
rn
Destination/Mask
Routes : 10
ea
Destinations : 10
g.
Interface
Direct 0
10.0.1.1
LoopBack0
10.0.1.1/32
Direct 0
127.0.0.1
LoopBack0
10.0.1.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.13.0/24
Direct 0
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
:/
/l
10.0.1.0/24
tp
127.0.0.1
GigabitEthernet0/0/0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
ce
s:
ht
so
ur
Re
ng
ni
ar
[R2]interface GigabitEthernet0/0/1
Le
Mo
re
Run the following command to delete the routes learned by R3 from R2 before
you change the authentication password.
View the routing table of R3.
HC Series
HUAWEI TECHNOLOGIES
Page83
<R3>display ip routing-table
aw
ei
.c
om
/e
10.0.3.0/24
Direct
10.0.3.3
LoopBack0
10.0.3.3/32
Direct
127.0.0.1
LoopBack0
10.0.3.255/32
Direct
127.0.0.1
LoopBack0
10.0.12.0/24
Direct
10.0.12.3
GigabitEthernet0/0/1
10.0.12.3/32
Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct
127.0.0.1
GigabitEthernet0/0/1
127.0.0.0/8
Direct
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
172.16.0.1 LoopBack2
172.16.0.1/32
g.
in
rn
ea
Direct
Direct
172.16.0.255/32 Direct
172.16.1.0/24
Direct
:/
172.16.0.0/24
Interface
hu
Proto
/l
Destination/Mask
Routes : 22
127.0.0.1
172.16.1.1/32
Direct
172.16.1.255/32 Direct
172.16.2.0/24
Direct
172.16.2.1/32
Direct
InLoopBack0
LoopBack2
127.0.0.1
172.16.1.1 LoopBack3
127.0.0.1
LoopBack3
127.0.0.1
LoopBack3
172.16.2.1 LoopBack4
127.0.0.1
LoopBack4
172.16.2.255/32 Direct
127.0.0.1
LoopBack4
172.16.3.0/24
Direct
172.16.3.1 LoopBack5
172.16.3.1/32
Direct
127.0.0.1
ht
s:
ce
ur
tp
LoopBack2
LoopBack5
127.0.0.1
LoopBack5
127.0.0.1
InLoopBack0
Re
so
172.16.3.255/32 Direct
255.255.255.255/32 Direct
ng
ni
Le
ar
re
Verify that routes in routing tables of R1, R2, and R3 have been restored. Note
that RIP updates routes periodically, so may take a moment to be restored.
Mo
<R1>display ip routing-table
Page84
HUAWEI TECHNOLOGIES
HC Series
---------------------------------------------------------------------------Destinations : 14
Destination/Mask
Proto
aw
ei
.c
om
/e
Interface
10.0.1.0/24
Direct 0
10.0.1.1
LoopBack0
10.0.1.1/32
Direct 0
127.0.0.1
LoopBack0
Direct 0
127.0.0.1
LoopBack0
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.3.0/24
RIP
100 2
10.0.13.2
GigabitEthernet0/0/0
10.0.12.0/24
RIP
100 1
10.0.13.2
GigabitEthernet0/0/0
10.0.13.0/24
Direct 0
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
g.
in
rn
ea
/l
100 2
10.0.13.2
:/
RIP
127.0.0.1
GigabitEthernet0/0/0
InLoopBack0
tp
172.16.0.0/16
255.255.255.255/32 Direct 0
hu
10.0.1.255/32
10.0.2.0/24
[R2]display ip routing-table
ht
RIP
100 1
Direct 0
Re
10.0.2.0/24
ur
10.0.1.0/24
Proto
so
Destination/Mask
Routes : 19
ce
Destinations : 19
s:
----------------------------------------------------------------------------
10.0.13.1
GigabitEthernet0/0/0
10.0.2.2
LoopBack0
Direct 0
127.0.0.1
LoopBack0
10.0.2.255/32
Direct 0
127.0.0.1
LoopBack0
10.0.3.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
10.0.12.0/24
Direct 0
10.0.12.2
GigabitEthernet0/0/1
Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
10.0.13.2
GigabitEthernet0/0/0
ni
ng
10.0.2.2/32
Direct 0
10.0.13.2/32
Direct 0
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct 0
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct 0
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct 0
127.0.0.1
InLoopBack0
Le
ar
10.0.12.2/32
Mo
re
Interface
HC Series
HUAWEI TECHNOLOGIES
Page85
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
172.16.1.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
172.16.2.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
172.16.3.0/24
RIP
100 1
10.0.12.3
GigabitEthernet0/0/1
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
aw
ei
.c
om
/e
172.16.0.0/24
<R3>display ip routing-table
Route Flags: R - relay, D - download to fib
----------------------------------------------------------------------------
Interface
10.0.1.0/24
RIP
100 2
10.0.12.2
GigabitEthernet0/0/1
10.0.2.0/24
RIP
100 1
10.0.12.2
GigabitEthernet0/0/1
10.0.3.0/24
Direct
10.0.3.3
LoopBack0
10.0.3.3/32
Direct
127.0.0.1
LoopBack0
10.0.3.255/32
Direct
127.0.0.1
LoopBack0
10.0.12.0/24
Direct
10.0.12.3
GigabitEthernet0/0/1
10.0.12.3/32
Direct
10.0.12.255/32 Direct
10.0.13.0/24
RIP
100 1
127.0.0.0/8
Direct
127.0.0.1/32
Direct
127.255.255.255/32 Direct
/l
ea
rn
in
g.
Proto
:/
Routes : 25
127.0.0.1
GigabitEthernet0/0/1
127.0.0.1
GigabitEthernet0/0/1
10.0.12.2
GigabitEthernet0/0/1
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
s:
ht
tp
Direct
172.16.0.1 LoopBack2
172.16.0.1/32
Direct
127.0.0.1
LoopBack2
172.16.0.255/32 Direct
127.0.0.1
LoopBack2
ce
172.16.0.0/24
ur
Destination/Mask
hu
172.16.1.1 LoopBack3
Direct
127.0.0.1
LoopBack3
172.16.1.255/32 Direct
127.0.0.1
LoopBack3
172.16.2.0/24
Direct
172.16.2.1 LoopBack4
172.16.2.1/32
Direct
127.0.0.1
LoopBack4
172.16.2.255/32 Direct
127.0.0.1
LoopBack4
172.16.3.0/24
Direct
172.16.3.1 LoopBack5
Direct
127.0.0.1
LoopBack5
172.16.3.255/32 Direct
127.0.0.1
LoopBack5
255.255.255.255/32 Direct
127.0.0.1
InLoopBack0
ng
Re
so
Direct
172.16.1.1/32
ni
172.16.1.0/24
Mo
re
Le
ar
172.16.3.1/32
Page86
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Final Configuration
<R1>display current-configuration
[V200R003C00SPC200]
#
sysname R1
#
interface GigabitEthernet0/0/0
ip address 10.0.13.1 255.255.255.0
hu
g.
interface LoopBack0
in
rn
rip 1
version 2
ea
network 10.0.0.0
/l
#
user-interface con 0
:/
authentication-mode password
tp
ht
user-interface vty 0 4
#
s:
return
ce
<R2>display current-configuration
ur
[V200R003C00SPC200]
#
so
sysname R2
Re
interface GigabitEthernet0/0/0
ip address 10.0.13.2 255.255.255.0
ng
ni
ar
interface GigabitEthernet0/0/1
ip address 10.0.12.2 255.255.255.0
Le
re
interface LoopBack0
Mo
HC Series
HUAWEI TECHNOLOGIES
Page87
rip 1
aw
ei
.c
om
/e
version 2
network 10.0.0.0
#
user-interface con 0
authentication-mode password
hu
in
g.
return
<R3>display current-configuration
rn
[V200R003C00SPC200]
ea
#
sysname R3
/l
:/
interface GigabitEthernet0/0/1
ip address 10.0.12.3 255.255.255.0
tp
ht
interface LoopBack0
s:
#
interface LoopBack2
ce
ur
so
Re
interface LoopBack4
ng
ni
interface LoopBack5
ip address 172.16.3.1 255.255.255.0
ar
Le
rip 1
version 2
network 10.0.0.0
re
network 172.16.0.0
Mo
Page88
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
g.
hu
return
HC Series
authentication-mode password
HUAWEI TECHNOLOGIES
Page89
aw
ei
.c
om
/e
As a result of this lab section, you should achieve the following tasks:
in
g.
hu
rn
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
Topology
Page90
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Scenario
As the network administrator of an establishing small enterprise, it is required
that a network be implemented using OSPF. Then network is to support a
single area and with consideration for future expansion it is requested that this
area be set as area 0. OSPF is required to advertise default routes and also
elect both a DR and BDR for network resiliency.
hu
Tasks
in
g.
ea
rn
If you are starting this section with a non-configured device, begin here and
then move to step 3. For those continuing from previous labs, begin at step 2.
/l
Establish the basic system configuration and addressing for the lab.
<Huawei>system-view
:/
tp
[Huawei]sysname R1
ht
s:
ur
[R1]interface LoopBack 0
ce
[R1-GigabitEthernet0/0/0]quit
so
Re
<Huawei>system-view
ng
ni
ar
[R2]interface LoopBack 0
Mo
re
Le
HC Series
HUAWEI TECHNOLOGIES
Page91
aw
ei
.c
om
/e
[Huawei]sysname R3
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]ip address 10.0.13.3 24
[R3-GigabitEthernet0/0/0]quit
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 10.0.3.3 24
[R3-LoopBack0]quit
[R3]interface LoopBack 2
in
g.
hu
ea
rn
Enable the interfaces necessary for this lab and disable those not needed.
[R1]interface GigabitEthernet 0/0/1
/l
[R1-GigabitEthernet0/0/1]undo shutdown
:/
[R1-GigabitEthernet0/0/1]quit
tp
ht
[R2-GigabitEthernet0/0/0]shutdown
s:
ce
[R3-GigabitEthernet0/0/0]quit
ur
so
[R3-GigabitEthernet0/0/1]quit
Re
ng
Info: This operation may take a few seconds. Please wait for a moment...succeeded.
ni
ar
Info: This operation may take a few seconds. Please wait for a moment...succeeded.
Le
re
Mo
[R1-GigabitEthernet0/0/0]quit
Page92
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
in
g.
hu
[R2]undo rip 1
[R3-GigabitEthernet0/0/1]quit
rn
[R3]undo rip 1
/l
ea
:/
ht
tp
Assign the value 10.0.1.1 (as used on logical interface loopback 0 for simplicity)
as the router ID. Use OSPF process 1 (the default process), and specify
network segments 10.0.1.0/24, 10.0.12.0/24, and 10.0.13.0/24 as part of
OSPF area 0.
s:
ce
[R1-ospf-1]area 0
ur
so
ng
Re
Different process IDs will generate multiple link state databases, therefore
ensure that all routers use the same OSPF process ID. The wildcard mask
must be specified as part of the network command.
ar
ni
Manually assign the value 10.0.2.2 as the router ID. Use OSPF process 1, and
advertise network segments 10.0.12.0/24 and 10.0.2.0/24 into OSPF area 0.
[R2]ospf 1 router-id 10.0.2.2
Le
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 10.0.2.0 0.0.0.255
Mo
re
HC Series
HUAWEI TECHNOLOGIES
Page93
aw
ei
.c
om
/e
output omitted
Nov 30 2013 09:41:39+00:00 R2 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes event:
neighbor status changed. (ProcessId=1, NeighborAddress=10.0.12.1,
hu
g.
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 10.0.13.0 0.0.0.255
rn
output omitted
in
ea
:/
/l
tp
ht
After OSPF route convergence is complete, view routing tables of R1, R2, and
R3.
s:
<R1>display ip routing-table
ur
ce
----------------------------------------------------------------------------
Proto
Interface
Direct
10.0.1.1
LoopBack0
10.0.1.1/32
Direct
127.0.0.1
LoopBack0
10.0.1.255/32
Direct
127.0.0.1
LoopBack0
10.0.2.2/32
OSPF
10
10.0.12.2
GigabitEthernet0/0/1
10.0.3.3/32
OSPF
10
10.0.13.3
GigabitEthernet0/0/0
10.0.12.0/24
Direct
10.0.12.1
GigabitEthernet0/0/1
10.0.12.1/32
Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
Direct
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct
127.0.0.1
GigabitEthernet0/0/0
ni
ng
10.0.1.0/24
Le
re
Mo
Routes : 15
ar
Re
Destination/Mask
so
Destinations : 15
Page94
HUAWEI TECHNOLOGIES
HC Series
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct
127.0.0.1
InLoopBack0
aw
ei
.c
om
/e
10.0.13.255/32 Direct
<R2>display ip routing-table
Route Flags: R - relay, D - download to fib
Cost
Interface
10.0.1.1/32
OSPF
10
10.0.12.1
10.0.2.0/24
Direct
10.0.2.2
10.0.2.2/32
Direct
127.0.0.1
10.0.2.255/32
Direct
127.0.0.1
LoopBack0
10.0.3.3/32
OSPF
10
10.0.12.1
GigabitEthernet0/0/1
10.0.12.0/24
Direct 0
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct 0
10.0.12.255/32 Direct 0
10.0.13.0/24
OSPF
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
in
Flags NextHop
hu
Pre
g.
Proto
GigabitEthernet0/0/1
LoopBack0
rn
ea
/l
Destination/Mask
Routes : 13
:/
Destinations : 13
LoopBack0
127.0.0.1
GigabitEthernet0/0/1
127.0.0.1
GigabitEthernet0/0/1
10.0.12.1
GigabitEthernet0/0/1
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct 0
127.0.0.1
InLoopBack0
ht
ce
s:
10
tp
ur
<R3>display ip routing-table
so
----------------------------------------------------------------------------
Re
Proto
Interface
10.0.1.1/32
OSPF
10
10.0.13.1
GigabitEthernet0/0/0
10.0.2.2/32
OSPF
10
10.0.13.1
GigabitEthernet0/0/0
10.0.3.0/24
Direct
10.0.3.3
LoopBack0
10.0.3.3/32
Direct
127.0.0.1
LoopBack0
10.0.3.255/32
Direct
127.0.0.1
LoopBack0
10.0.12.0/24
OSPF
10
10.0.13.1
GigabitEthernet0/0/0
10.0.13.0/24
Direct
10.0.13.3
GigabitEthernet0/0/0
Mo
re
Le
ni
ng
Destination/Mask
Routes : 16
ar
Destinations : 16
HC Series
HUAWEI TECHNOLOGIES
Page95
Direct
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
InLoopBack0
aw
ei
.c
om
/e
10.0.13.3/32
Direct
172.16.0.1 LoopBack2
172.16.0.1/32
Direct
127.0.0.1
LoopBack2
172.16.0.255/32 Direct
127.0.0.1
LoopBack2
255.255.255.255/32 Direct
127.0.0.1
InLoopBack0
hu
172.16.0.0/24
g.
in
<R2>ping 10.0.1.1
rn
ea
/l
:/
tp
ht
5 packet(s) received
0.00% packet loss
ce
s:
ur
so
Re
ng
ni
ar
5 packet(s) received
Le
Mo
re
Page96
HUAWEI TECHNOLOGIES
HC Series
Run the display ospf peer command to view the OSPF neighbor status.
aw
ei
.c
om
/e
Address: 10.0.12.2
hu
g.
rn
in
Authentication Sequence: [ 0 ]
ea
Neighbors
/l
Address: 10.0.13.3
:/
tp
ht
s:
Authentication Sequence: [ 0 ]
so
ur
ce
The display ospf peer command displays detailed information about any
peering neighbors. In the example given, the link 10.0.13.1 of R1 shows to be
the DR. The DR election is non pre-emptive, meaning that the link of R3 will
not take over the role of DR from R1 unless the OSPF process is reset.
Re
The display ospf peer brief command can also be used to display a
condensed version of the OSPF peer information.
ng
ar
ni
Area Id
Interface
0.0.0.0
GigabitEthernet0/0/0
10.0.3.3
Full
0.0.0.0
GigabitEthernet0/0/1
10.0.2.2
Full
re
Le
---------------------------------------------------------------------------Neighbor id
State
Mo
----------------------------------------------------------------------------
HC Series
HUAWEI TECHNOLOGIES
Page97
aw
ei
.c
om
/e
---------------------------------------------------------------------------Area Id
Interface
0.0.0.0
Neighbor id
GigabitEthernet0/0/1
State
10.0.1.1
Full
hu
g.
---------------------------------------------------------------------------Interface
Neighbor id
0.0.0.0
GigabitEthernet0/0/0
in
Area Id
10.0.1.1
State
Full
rn
----------------------------------------------------------------------------
/l
ea
:/
ht
tp
ce
s:
Interfaces
ur
Cost: 1
MTU: 1500
so
Priority: 1
Type: Broadcast
Re
ng
ni
Run the ospf timer command to change the OSPF hello interval and dead
interval on GE0/0/0 of R1 to 15s and 60s respectively.
ar
Le
re
Mo
NeighborAreaId=0,
Page98
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
NeighborChangeTime=2013-11-30 16:58:39)
<R1>display ospf interface GigabitEthernet 0/0/0
OSPF Process 1 with Router ID 10.0.1.1
State: DR
Type: Broadcast
MTU: 1500
g.
Priority: 1
hu
Interfaces
in
ea
rn
/l
:/
tp
ht
---------------------------------------------------------------------------Interface
GigabitEthernet0/0/1
10.0.2.2
State
Full
s:
0.0.0.0
Neighbor id
ce
----------------------------------------------------------------------------
so
ur
The preceding information shows that R1 has only one neighbor, R2. Since the
OSPF hello intervals and dead intervals on R1 and R3 are different, R1 and R3
will fail to establish an OSPF neighbor relationship.
Re
Run the ospf timer command to change the OSPF hello interval and dead
interval on GE0/0/0 of R3 to 15s and 60s respectively.
ng
ni
ar
output omitted
Nov 30 2013 17:03:33+00:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes
Le
Mo
re
NeighborCurrentState=Full)
HC Series
HUAWEI TECHNOLOGIES
Page99
aw
ei
.c
om
/e
State: DR
Type: Broadcast
MTU: 1500
Priority: 1
Designated Router: 10.0.13.3
Backup Designated Router: 10.0.13.1
g.
hu
in
ea
rn
---------------------------------------------------------------------------Neighbor id
0.0.0.0
GigabitEthernet0/0/0
0.0.0.0
GigabitEthernet0/0/1
/l
Interface
:/
Area Id
State
10.0.3.3
Full
10.0.2.2
Full
ht
tp
----------------------------------------------------------------------------
s:
ce
ur
[R3]ospf 1
Re
so
[R3-ospf-1]default-route-advertise
ng
View routing tables of R1 and R2. You can see that R1 and R2 have learned
the default routes advertised by R3.
<R1>display ip routing-table
ni
ar
Le
Destinations : 16
Proto
Interface
Mo
re
Destination/Mask
Routes : 16
Page100
HUAWEI TECHNOLOGIES
HC Series
150 1
10.0.13.3
GigabitEthernet0/0/0
10.0.1.0/24
Direct
10.0.1.1
LoopBack0
10.0.1.1/32
Direct
127.0.0.1
LoopBack0
10.0.1.255/32
Direct
127.0.0.1
LoopBack0
10.0.2.2/32
OSPF
10
10.0.12.2
GigabitEthernet0/0/1
10.0.3.3/32
OSPF
10
10.0.13.3
GigabitEthernet0/0/0
10.0.12.0/24
Direct
10.0.12.1
GigabitEthernet0/0/1
10.0.12.1/32
Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
Direct
10.0.13.1
GigabitEthernet0/0/0
10.0.13.1/32
Direct
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct
127.0.0.1
GigabitEthernet0/0/0
127.0.0.0/8
Direct
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
InLoopBack0
255.255.255.255/32 Direct
127.0.0.1
InLoopBack0
ea
rn
in
g.
hu
aw
ei
.c
om
/e
0.0.0.0/0
/l
<R2>display ip routing-table
:/
----------------------------------------------------------------------------
tp
Routes : 14
Proto
0.0.0.0/0
O_ASE
150 1
10.0.12.1
GigabitEthernet0/0/1
10.0.1.1/32
OSPF1
s:
10.0.12.1
GigabitEthernet0/0/1
10.0.2.0/24
Direct
10.0.2.2
LoopBack0
10.0.2.2/32
Direct
127.0.0.1
LoopBack0
10.0.2.255/32
Direct
127.0.0.1
LoopBack0
OSPF
10
10.0.12.1
GigabitEthernet0/0/1
so
Re
10.0.3.3/32
ce
Destination/Mask
ur
ht
Destinations : 14
Interface
Direct
10.0.12.2
GigabitEthernet0/0/1
10.0.12.2/32
Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.12.255/32 Direct
127.0.0.1
GigabitEthernet0/0/1
10.0.13.0/24
OSPF
10
10.0.12.1
GigabitEthernet0/0/1
127.0.0.0/8
Direct
127.0.0.1
InLoopBack0
127.0.0.1/32
Direct
127.0.0.1
InLoopBack0
127.255.255.255/32 Direct
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
Le
ar
ni
ng
10.0.12.0/24
Mo
re
255.255.255.255/32 Direct
HC Series
HUAWEI TECHNOLOGIES
Page101
<R3>display ip routing-table
aw
ei
.c
om
/e
Interface
0.0.0.0/0
Static
60
172.16.0.1
LoopBack2
10.0.1.1/32
OSPF
10
10.0.13.1
GigabitEthernet0/0/0
10.0.2.2/32
OSPF
10
10.0.13.1
GigabitEthernet0/0/0
10.0.3.0/24
Direct
10.0.3.3
LoopBack0
10.0.3.3/32
Direct
127.0.0.1
LoopBack0
10.0.3.255/32
Direct
127.0.0.1
10.0.12.0/24
OSPF
10
10.0.13.1
10.0.13.0/24
Direct
10.0.13.3
10.0.13.3/32
Direct
127.0.0.1
GigabitEthernet0/0/0
10.0.13.255/32 Direct
127.0.0.1
GigabitEthernet0/0/0
in
g.
hu
Proto
LoopBack0
GigabitEthernet0/0/0
/l
ea
rn
GigabitEthernet0/0/0
InLoopBack0
127.0.0.1
InLoopBack0
127.0.0.1
InLoopBack0
172.16.0.1
LoopBack2
127.0.0.1
LoopBack2
Direct
127.0.0.1/32
Direct
127.0.0.1
127.255.255.255/32 Direct
tp
127.0.0.0/8
:/
Destination/Mask
Routes : 17
Direct
172.16.0.1/32
Direct
172.16.0.255/32 Direct
127.0.0.1
LoopBack2
255.255.255.255/32 Direct
127.0.0.1
InLoopBack0
ce
s:
ht
172.16.0.0/24
so
<R2>ping 172.16.0.1
ur
Re
ng
ar
ni
Le
5 packet(s) transmitted
5 packet(s) received
Mo
re
Page102
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Address: 10.0.13.3
g.
hu
in
rn
ea
/l
Authentication Sequence: [ 0 ]
ht
tp
:/
The preceding information shows that R3 is the DR and R1 is the BDR. This is
because R3's router ID 10.0.3.3 is greater than R1's router ID 10.0.1.1. R1 and
R3 use the default priority of 1, so their router IDs are used for DR or BDR
election.
s:
ce
ur
so
ng
Re
ar
ni
Le
[R3-GigabitEthernet0/0/0]shutdown
re
[R1]interface GigabitEthernet0/0/0
Mo
[R1-GigabitEthernet0/0/0]shutdown
HC Series
HUAWEI TECHNOLOGIES
Page103
aw
ei
.c
om
/e
[R1-GigabitEthernet0/0/0]undo shutdown
[R3-GigabitEthernet0/0/0]undo shutdown
Run the display ospf peer command to view the DR and BDR of R1 and R3.
[R1]display ospf peer 10.0.3.3
OSPF Process 1 with Router ID 10.0.1.1
hu
Neighbors
Address: 10.0.13.3
rn
in
g.
ea
/l
:/
Authentication Sequence: [ 0 ]
ht
tp
According to the preceding information, R1's priority is higher than R3's priority,
so R1 becomes DR and R3 becomes the BDR.
s:
Final Configuration
ce
<R1>display current-configuration
[V200R003C00SPC200]
ur
#
sysname R1
so
Re
interface GigabitEthernet0/0/0
ip address 10.0.13.1 255.255.255.0
ng
ni
interface GigabitEthernet0/0/1
ar
Le
interface LoopBack0
ip address 10.0.1.1 255.255.255.0
Mo
re
Page104
HUAWEI TECHNOLOGIES
HC Series
area 0.0.0.0
aw
ei
.c
om
/e
hu
user-interface vty 0 4
#
in
g.
return
rn
<R2>display current-configuration
ea
[V200R003C00SPC200]
#
/l
sysname R2
ht
interface LoopBack0
tp
interface GigabitEthernet0/0/1
:/
#
ospf 1 router-id 10.0.2.2
ce
area 0.0.0.0
s:
ur
so
Re
user-interface con 0
authentication-mode password
set authentication password cipher %$%$1=cd%b%/O%Id-8X:by1N,+s}'4wD6TvO<I|/pd#
ng
#44C@+s#,%$%$
#
Mo
re
Le
ar
return
ni
user-interface vty 0 4
HC Series
HUAWEI TECHNOLOGIES
Page105
[V200R003C00SPC200]
aw
ei
.c
om
/e
#
sysname R3
#
interface GigabitEthernet0/0/0
ip address 10.0.13.3 255.255.255.0
ospf dr-priority 100
ospf timer hello 15
#
hu
interface LoopBack0
ip address 10.0.3.3 255.255.255.0
g.
in
interface LoopBack2
ip address 172.16.0.1 255.255.255.0
rn
ea
/l
area 0.0.0.0
:/
tp
ht
#
user-interface con 0
s:
authentication-mode password
xQ,y%#/v,%$%$
ur
user-interface vty 0 4
ce
Mo
re
Le
ar
ni
ng
Re
so
return
Page106
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
g.
in
hu
As a result of this lab section, you should achieve the following tasks:
ht
tp
:/
/l
ea
rn
Topology
s:
ce
Scenario
Mo
re
Le
ar
ni
ng
Re
so
ur
HC Series
HUAWEI TECHNOLOGIES
Page107
aw
ei
.c
om
/e
Tasks
Step 1 Preparing the environment.
If you are starting this section with a non-configured device, begin here and
then move to step 2. For those continuing from previous labs, begin at step 2.
<Huawei>system-view
hu
g.
[Huawei]sysname R1
[R1]interface GigabitEthernet 0/0/1
ea
rn
<Huawei>system-view
in
[Huawei]sysname R2
/l
:/
tp
ht
[R1]ping 10.0.12.2
s:
ce
ur
so
Re
5 packet(s) transmitted
5 packet(s) received
ng
ni
Le
ar
Mo
re
The FTP service is disabled by default on the router. It must be enabled before
FTP can be used. Configure an FTP server using R1 with R2 as the client. The
same steps can be reversed to enable R2 to also act as an FTP server.
Page108
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Configure user authorization for FTP users to access the server. Unauthorized
users will not be able to access the FTP server, reducing security risks.
[R1]aaa
[R1-aaa]local-user huawei password cipher huawei
Info: Add a new user.
hu
g.
in
[R1]display ftp-server
User count
30
Listening port
21
Acl number
/l
tp
:/
ea
rn
ht
s:
<R2>ftp 10.0.12.1
so
ur
ce
Re
Connected to 10.0.12.1.
220 FTP service ready.
ng
User(10.0.12.1:(none)):huawei
331 Password required for huawei.
ni
Enter password:
ar
Le
[R2-ftp]
Mo
re
Following entry of the correct user name and password, the FTP server can be
successfully logged into.
HC Series
HUAWEI TECHNOLOGIES
Page109
[R2-ftp]dir
200 Port command okay.
150 Opening ASCII mode data connection for *.
aw
ei
.c
om
/e
Run the dir command before downloading a file or after uploading a file to view
the detailed information of the file.
-rwxrwxrwx 1 noone
nogroup
-rwxrwxrwx 1 noone
nogroup
-rwxrwxrwx 1 noone
nogroup
-rwxrwxrwx 1 noone
nogroup
-rwxrwxrwx 1 noone
nogroup
-rwxrwxrwx 1 noone
-rwxrwxrwx 1 noone
nogroup
hu
g.
rn
in
ea
/l
[R2-ftp]binary
:/
ht
tp
Retrieve a file from the FTP server. Note: If the vrpcfg.zip file is not present in
the sd1: directory of R1, use the save command on R1 to create it.
[R2-ftp]get vrpcfg.zip vrpnew.zip
s:
ce
ur
Re
so
After downloading the file from FTP server, use the bye command to close the
connection
[R2-ftp]bye
ni
ng
ar
Directory of sd1:/
Mo
re
Le
Idx Attr
Size(Byte) Date
Time(LMT) FileName
0 -rw-
sacrule.dat
1 -rw-
mon_file.txt
3 -rw-
Page110
ar2220_v200r001sph001.pat
HUAWEI TECHNOLOGIES
HC Series
4 -rw-
iascfg.zip
5 -rw-
vrpcfg.zip
7 -rw-
8 -rw-
ar2220-v200r003c00spc200.cc
aw
ei
.c
om
/e
6 -rw-
mon_lpu_file.txt
vrpnew.zip
A file can be uploaded to the FTP server by using the command put, for which
a new file name can also be assigned.
[R2-ftp]put vrpnew.zip vrpnew2.zip
g.
hu
in
rn
After uploading the file, check for the presence of the file on FTP server.
ea
<R1>dir
Size(Byte) Date
Time(LMT) FileName
:/
Idx Attr
/l
Directory of sd1:/
sacrule.dat
1 -rw-
mon_file.txt
2 -rw-
3 -rw-
4 -rw-
iascfg.zip
5 -rw-
vrpcfg.zip
s:
ht
tp
0 -rw-
7 -rw-
ce
6 -rw-
web.zip
ar2220_v200r001sph001.pat
ar2220-v200r003c00spc200.cc
mon_lpu_file.txt
vrpnew2.zip
so
ur
8 -rw-
Re
ng
ni
ar
Le
Mo
re
Note: Please take extreme care when deleting the configuration files so to
ensure that the entire sd1:/ directory of R1 and R2 is not erased.
HC Series
HUAWEI TECHNOLOGIES
Page111
aw
ei
.c
om
/e
Final Configuration
<R1>display current-configuration
[V200R003C00SPC200]
#
sysname R1
ftp server enable
set default ftp-directory sd1:
#
hu
aaa
authentication-scheme default
g.
authorization-scheme default
in
accounting-scheme default
domain default
rn
domain default_admin
ea
/l
tp
:/
ht
interface GigabitEthernet0/0/1
s:
#
user-interface con 0
ce
authentication-mode password
ur
so
user-interface vty 0 4
Re
#
return
ng
<R2>display current-configuration
ni
[V200R003C00SPC200]
#
ar
sysname R2
Le
re
aaa
Mo
authentication-scheme default
Page112
HUAWEI TECHNOLOGIES
HC Series
accounting-scheme default
aw
ei
.c
om
/e
domain default
domain default_admin
hu
#
interface GigabitEthernet0/0/1
g.
in
#
user-interface con 0
rn
authentication-mode password
ea
/l
user-interface vty 0 4
:/
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
tp
return
HC Series
HUAWEI TECHNOLOGIES
Page113
aw
ei
.c
om
/e
As a result of this lab section, you should achieve the following tasks:
hu
g.
ng
Scenario
Re
so
ur
ce
s:
ht
tp
:/
/l
ea
rn
in
Topology
Mo
re
Le
ar
ni
Page114
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Tasks
Step 1 Preparing the environment
If you are starting this section with a non-configured device, begin here and
then move to step 3. For those continuing from previous labs, begin at step 2.
hu
Establish the addressing for the lab and temporarily shut down the interfaces
Gigabit Ethernet 0/0/2 of R1 and Gigabit Ethernet 0/0/1 of R3.
<Huawei>system-view
g.
in
[Huawei]sysname R1
[R1-GigabitEthernet0/0/1]ip address 10.0.12.1 24
ea
[R1-GigabitEthernet0/0/1]quit
rn
/l
<Huawei>system-view
tp
[Huawei]sysname R3
:/
ht
[R3-GigabitEthernet0/0/1]shutdown
[R3-GigabitEthernet0/0/1]quit
s:
ur
<Quidway>system-view
ce
so
Re
[Quidway]sysname S1
<Quidway>system-view
ng
Mo
re
Le
ar
ni
[Quidway]sysname S2
HC Series
HUAWEI TECHNOLOGIES
Page115
aw
ei
.c
om
/e
g.
hu
in
rn
[S1-GigabitEthernet0/0/9]quit
[S1]interface GigabitEthernet 0/0/10
ea
[S1-GigabitEthernet0/0/10]shutdown
/l
[S1-GigabitEthernet0/0/10]quit
[S1]interface GigabitEthernet 0/0/13
:/
[S1-GigabitEthernet0/0/13]shutdown
tp
[S1-GigabitEthernet0/0/13]quit
[S1]interface GigabitEthernet 0/0/14
ht
[S1-GigabitEthernet0/0/14]shutdown
s:
ce
[S2-GigabitEthernet0/0/9]quit
ur
so
[S2-GigabitEthernet0/0/10]quit
Re
ng
ni
[S2-GigabitEthernet0/0/24]shutdown
ar
Mo
re
Le
[R1-GigabitEthernet0/0/2]shutdown
Page116
HUAWEI TECHNOLOGIES
HC Series
PHY
GigabitEthernet0/0/1
up
up
0.01%
0.01%
GigabitEthernet0/0/2
up
up
0.01%
0.01%
inErrors outErrors
down
0%
up
up
0%
0.01%
0%
GigabitEthernet0/0/5
up
up
0%
0.01%
GigabitEthernet0/0/6
down
down
0%
0%
GigabitEthernet0/0/7
down
down
0%
0%
GigabitEthernet0/0/8
down
down
0%
0%
GigabitEthernet0/0/9
*down
down
0%
0%
GigabitEthernet0/0/10
*down
down
0%
GigabitEthernet0/0/11
down
down
0%
GigabitEthernet0/0/12
down
down
0%
GigabitEthernet0/0/13
*down
down
GigabitEthernet0/0/14
*down
down
hu
down
0
0
0
0
0%
0%
0%
0%
0%
rn
:/
in
g.
GigabitEthernet0/0/3
GigabitEthernet0/0/4
/l
ea
0%
0%
tp
output omitted
aw
ei
.c
om
/e
Verify that Gigabit Ethernet interfaces 0/0/9, 0/0/10, 0/0/13 and 0/0/14, have
been shut down on S1 and that Gigabit Ethernet interfaces 0/09, 0/0/10, 0/0/23
and 0/0/24 have been shut down on S2.
ht
down
0%
0%
GigabitEthernet0/0/10
*down
down
0%
0%
GigabitEthernet0/0/11
up
up
0.01%
0.01%
GigabitEthernet0/0/12
up
up
0.01%
0.01%
0.01%
up
up
0%
down
down
0%
0%
down
down
0%
0%
GigabitEthernet0/0/16
down
down
0%
0%
GigabitEthernet0/0/17
down
down
0%
0%
GigabitEthernet0/0/18
down
down
0%
0%
GigabitEthernet0/0/19
down
down
0%
0%
ni
ur
ce
s:
GigabitEthernet0/0/9
GigabitEthernet0/0/13
GigabitEthernet0/0/20
down
down
0%
0%
GigabitEthernet0/0/21
down
down
0%
0%
GigabitEthernet0/0/22
down
down
0%
0%
GigabitEthernet0/0/23
*down
down
0%
0%
GigabitEthernet0/0/24
*down
down
0%
0%
so
GigabitEthernet0/0/14
Le
ar
ng
Re
GigabitEthernet0/0/15
Mo
re
output omitted
HC Series
HUAWEI TECHNOLOGIES
Page117
aw
ei
.c
om
/e
Verify that only interface Gigabit Ethernet 0/0/2 is disabled on R1 and that only
interface Gigabit Ethernet 0/0/1 is disabled on R3.
<R1>display ip interface brief
output omitted
GigabitEthernet0/0/1
10.0.12.1/24
up
up
GigabitEthernet0/0/2
10.0.23.1/24
*down
GigabitEthernet0/0/1
10.0.12.3/24
*down
GigabitEthernet0/0/2
10.0.23.3/24
up
down
output omitted
down
up
rn
in
output omitted
g.
output omitted
hu
ea
:/
/l
The DHCP service is not enabled by default, enable the DHCP service on the
router(s).
tp
[R1]dhcp enable
ht
[R3]dhcp enable
s:
so
ur
ce
Create an address pool named pool1 for R1 and pool2 for R3. Configure
attributes for pool1 and pool2, including address range, egress gateway, and
IP address lease period.
Info: It's successful to create an IP address pool.
Re
ng
ar
ni
Le
re
[R3-ip-pool-pool2]gateway-list 10.0.23.3
Mo
Page118
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
Run the display ip pool name <name> command on the router to view the
assigned IP address pool configuration parameters.
<R1>display ip pool name pool1
: pool1
Pool-No
: 0
Lease
Domain-name
: -
DNS-server0
: -
NBNS-server0
: -
Netbios-type
: -
Position
: Local
Gateway-0
: 10.0.12.1
Mask
: 255.255.255.0
VPN instance
: --
g.
hu
Pool-name
: Unlocked
/l
ea
rn
in
Status
---------------------------------------------------------------------------End
:/
Start
10.0.12.1
10.0.12.254
tp
---------------------------------------------------------------------------253
253(0)
ht
----------------------------------------------------------------------------
[S1]dhcp enable
ur
[S1]interface Vlanif 1
ce
s:
so
Re
ni
MEth0/0/1
ng
output omitted
Physical
Protocol
unassigned
down
down
unassigned
up
up(s)
10.0.12.254/24
up
up
Mo
re
Le
ar
Vlanif1
IP Address/Mask
HC Series
HUAWEI TECHNOLOGIES
Page119
aw
ei
.c
om
/e
Verify that this address was taken from the DHCP pool named pool1 on R1,
and for S2, from the DHCP pool named pool2 on R3.
Pool-name
: pool1
Pool-No
: 0
Lease
Domain-name
: -
DNS-server0
: -
NBNS-server0
: -
Netbios-type
: -
Position
: Local
Gateway-0
: 10.0.12.1
Mask
: 255.255.255.0
VPN instance
: --
: Unlocked
rn
in
g.
Status
hu
Start
ea
---------------------------------------------------------------------------End
10.0.12.254
253
252(0)
:/
10.0.12.1
/l
----------------------------------------------------------------------------
tp
Pool-No
: 0
Lease
Domain-name
: -
DNS-server0
: -
NBNS-server0
: -
Netbios-type
: -
Position
: Local
Gateway-0
: 10.0.23.3
s:
ce
ur
so
Status
: Unlocked
Re
Mask
ht
Pool-name
: 255.255.255.0
VPN instance
: --
ng
----------------------------------------------------------------------------
ni
Start
End
----------------------------------------------------------------------------
ar
10.0.23.1
10.0.23.254
253
252(0)
Le
----------------------------------------------------------------------------
Mo
re
Ensure that global pool configuration has been completed for both R1 and R3
before continuing!
Page120
HUAWEI TECHNOLOGIES
HC Series
aw
ei
.c
om
/e
hu
[R3-GigabitEthernet0/0/2]shutdown
rn
in
g.
Configure an interface address pool to allow the clients connected via Gigabit
Ethernet 0/0/2 of R1 to obtain IP addresses. Perform the same operation for
Gigabit Ethernet 0/0/1 of R3. Do not enable these interfaces, as we do not yet
wish to activate the DHCP service on the network.
ea
/l
:/
tp
s:
ht
Isolate addresses from the pool GigabitEthernet0/0/2 for R1, and the pool
GigabitEthernet0/0/1 for R3, for DNS services. Additionally, set the IP address
lease period for the interface address pool.
[R1-GigabitEthernet0/0/2]dhcp server dns-list 10.0.23.254
ce
ur
so
Re
ar
ni
ng
Run the display ip pool interface command on the router to view the
configured parameters of the interface address pool. For R3 the interface is
Gigabit Ethernet 0/0/1.
Le
Pool-No
: 1
Lease
Domain-name
: -
Mo
re
Pool-name
HC Series
HUAWEI TECHNOLOGIES
Page121
NBNS-server0
: -
Netbios-type
: -
Position
: Interface
Gateway-0
: 10.0.23.1
Mask
: 255.255.255.0
VPN instance
: --
Status
: Unlocked
aw
ei
.c
om
/e
DNS-server0
---------------------------------------------------------------------------Start
End
---------------------------------------------------------------------------10.0.23.254
253
252(0)
hu
10.0.23.1
g.
----------------------------------------------------------------------------
rn
in
Flush the existing Vlanif1 address from S2 to allow for dynamic allocation of a
new IP address from the interface GigabitEthernet0/0/2 pool.
ea
[S2]interface Vlanif 1
[S2-Vlanif1]shutdown
:/
/l
[S2-Vlanif1]undo shutdown
ht
[R1]interface GigabitEthernet0/0/2
tp
Enable interface Gigabit Ethernet 0/0/2 to allow the DHCP server to become
active on the network and to begin sending DHCP discover messages.
s:
[R1-GigabitEthernet0/0/2]undo shutdown
Pool-No
: 1
Lease
Domain-name
: -
DNS-server0
: 10.0.23.254
NBNS-server0
: -
Position
ur
so
Re
: -
: Interface
ng
Netbios-type
ce
Pool-name
Status
: 10.0.23.1
Mask
: 255.255.255.0
ni
Gateway-0
ar
VPN instance
: Unlocked
: --
----------------------------------------------------------------------------
Le
Start
End
---------------------------------------------------------------------------10.0.23.254
253
251(0)
re
10.0.23.1
Mo
----------------------------------------------------------------------------
Page122
HUAWEI TECHNOLOGIES
HC Series
Physical
MEth0/0/1
unassigned
down
NULL0
unassigned
up
Vlanif1
10.0.23.253/24
up
Protocol
aw
ei
.c
om
/e
Interface
output omitted
down
up(s)
up
The interface Vlanif1 shows to have been allocated an address from the
GigabitEthernet0/0/2 address pool of R1.
g.
hu
Flush the existing Vlanif1 address from S1 to allow for dynamic allocation of a
new IP address from the interface GigabitEther0/0/1 pool.
in
[S1]interface Vlanif 1
[S1-Vlanif1]shutdown
ea
rn
[S1-Vlanif1]undo shutdown
:/
/l
Enable interface Gigabit Ethernet 0/0/1 to allow the DHCP server to become
active on the network and to begin sending DHCP discover messages.
tp
ht
[R3-GigabitEthernet0/0/1]undo shutdown
s:
Verify that the new IP address as been allocated from the interface pool.
<R3>display ip pool interface GigabitEthernet0/0/1
: GigabitEthernet0/0/1
Pool-No
: 1
Lease
Domain-name
: -
DNS-server0
: 10.0.12.254
NBNS-server0
: -
Position
ur
so
Re
: -
: Interface
ng
Netbios-type
ce
Pool-name
Status
: 10.0.12.3
Mask
: 255.255.255.0
ni
Gateway-0
ar
VPN instance
: Unlocked
: --
----------------------------------------------------------------------------
Le
Start
End
---------------------------------------------------------------------------10.0.12.254
253
251(0)
re
10.0.12.1
Mo
----------------------------------------------------------------------------
HC Series
HUAWEI TECHNOLOGIES
Page123
Physical
MEth0/0/1
unassigned
down
NULL0
unassigned
up
Vlanif1
10.0.12.253/24
up
Protocol
aw
ei
.c
om
/e
Interface
down
up(s)
up
It should also be noted that a default static route pointing to the DHCP server is
automatically generated by the switch, as seen in the final configuration below.
g.
hu
Final Configuration
[R1]display current-configuration
in
[V200R003C00SPC200]
rn
#
sysname R1
ea
/l
dhcp enable
#
:/
ip pool pool1
tp
gateway-list 10.0.12.1
network 10.0.12.0 mask 255.255.255.0
ht
s:
interface GigabitEthernet0/0/1
shutdown
ce
ur
so
interface GigabitEthernet0/0/2
ip address 10.0.23.1 255.255.255.0
Re
ng
ni
ar
user-interface con 0
authentication-mode password
Le
(\WTqB}%N,%$%$user-interface vty 0 4
re
Mo
return
Page124
HUAWEI TECHNOLOGIES
output omitted
HC Series
[R3]dis current-configuration
aw
ei
.c
om
/e
[V200R003C00SPC200]
#
sysname R3
#
dhcp enable
#
ip pool pool2
gateway-list 10.0.23.3
hu
g.
in
interface GigabitEthernet0/0/1
ip address 10.0.12.3 255.255.255.0
rn
ea
/l
ht
tp
:/
s:
user-interface con 0
authentication-mode password
ce
ur
xQ,y%#/v,%$%$
user-interface vty 0 4
so
Re
return
<S1>dis current-configuration
ng
ni
ar
sysname S1
Le
dhcp enable
#
interface Vlanif1
re
ip address dhcp-alloc
Mo
HC Series
HUAWEI TECHNOLOGIES
Page125
aw
ei
.c
om
/e
user-interface con 0
user-interface vty 0 4
#
return
<S2>display current-configuration
#
!Software Version V100R006C00SPC800
hu
sysname S2
#
g.
dhcp enable
in
#
interface Vlanif1
rn
ip address dhcp-alloc
ea
#
ip route-static 0.0.0.0 0.0.0.0 10.0.23.1
/l
:/
user-interface con 0
user-interface vty 0 4
tp
Mo
re
Le
ar
ni
ng
Re
so
ur
ce
s:
ht
return
Page126
HUAWEI TECHNOLOGIES
HC Series
re
Mo
ni
ar
Le
ng
ur
so
Re
s:
ce
ht
tp
ea
/l
:/
rn
in
g.
hu
aw
ei
.c
om
/e