Static Route Configuration Example - Huawei Quidway S3900 Series Operation Manual

Hide thumbs Also See for Quidway S3900 Series:
Table of Contents

Advertisement

Operation Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510

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
1.1.1.1/24
1.1.1.1/24
Host C
Host C
Host C
1.1.1.2/24
1.1.1.2/24
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.
Host A
Host A
1.1.5.2/24
1.1.5.2/24
1.1.5.1/24
1.1.5.1/24
1.1.2.2/24
1.1.2.2/24
Sw itch C
Sw itch C
1.1.2.1/24
1.1.2.1/24
Sw itch A
Sw itch A
Huawei Technologies Proprietary
Chapter 2 Static Route Configuration
1.1.3.1/24
1.1.3.1/24
1.1.3.2/24
1.1.3.2/24
1.1.4.1/24
1.1.4.1/24
Sw itch B
Sw itch B
Host B
Host B
Host B
1.1.4.2/24
1.1.4.2/24
2-4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents