Operation Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 2 Static Route Configuration
Huawei Technologies Proprietary
2-4
2.4 Static Route Configuration Example
I. Network requirements
As shown in Figure 2-1, the masks of all the IP addresses in the figure are
255.255.255.0. It is required that all the hosts/Layer 3 switches in the figure can
interconnect with each other by configuring static routes.
II. Network diagram
Host A
1.1.5.2/24
1.1.5.1/24
1.1.2.2/24
1.1.2.1/24
1.1.1.1/24
1.1.1.2/24
1.1.4.2/24
1.1.3.1/24
1.1.3.2/24
1.1.4.1/24
Sw itch A
Sw itch B
Sw itch C
Host C
Host B
Host A
1.1.5.2/24
1.1.5.1/24
1.1.2.2/24
1.1.2.1/24
1.1.1.1/24
1.1.1.2/24
1.1.4.2/24
1.1.3.1/24
1.1.3.2/24
1.1.4.1/24
Sw itch A
Sw itch B
Sw itch C
Host CHost C
Host BHost B
Figure 2-1 Static route configuration
III. Configuration procedure
# Configure static routes on Switch A.
[Switch A] ip route-static 1.1.3.0 255.255.255.0 1.1.2.2
[Switch A] ip route-static 1.1.4.0 255.255.255.0 1.1.2.2
[Switch A] ip route-static 1.1.5.0 255.255.255.0 1.1.2.2
# Configure static routes on Switch B.
[Switch B] ip route-static 1.1.2.0 255.255.255.0 1.1.3.1
[Switch B] ip route-static 1.1.5.0 255.255.255.0 1.1.3.1
[Switch B] ip route-static 1.1.1.0 255.255.255.0 1.1.3.1
# Configure static routes on Switch C.
[Switch C] ip route-static 1.1.1.0 255.255.255.0 1.1.2.1
[Switch C] ip route-static 1.1.4.0 255.255.255.0 1.1.3.2
# Configure the default gateway of Host A to 1.1.5.1.
[Switch A] ip route-static 0.0.0.0 0.0.0.0 1.1.5.1
# Configure the default gateway of Host B to 1.1.4.1.