SGS-6340 Series User Manual

Table Of Contents
26.3.4 Static Route Configuration Examples
The figure shown below is a simple network consisting of three Layer 3 switches, the network
mask for all switches and PC is 255.255.255.0. PC-A and PC-C are connected via the static
route set in SwtichA and SwitchC; PC3 and PC-B are connected via the static route set in
SwitchC to SwitchB; PC-B and PC-C is connected via the default route set in SwitchB.
PC-C:10.1.5.2
Switch B
PC-A:10.1.1.2 PC-B:10.1.4.2
vlan3:10.1.5.1
vlan1:10.1.1.1
vlan2:10.1..2.1 v
l
an1:10.1.3.1
vl
an2:10.1.4.1
vlan2:10.1.2.2 vlan1:10.1.3.2
Switch C
Switch A
Figure 26
-1: S
tatic Route Configurations
Configuration steps:
Configuration of Layer 3 SwitchA
Switch#config
Switch (config) #ip route 10.1.5.0 255.255.255.0 10.1.2.2
Configuration of Layer 3 SwitchC
Switch#config
Next hop use the partner IP address
Switch(config)#ip route 10.1.1.0 255.255.255.0 10.1.2.1
Next hop use the partner IP address
Switch(config)#ip route 10.1.4.0 255.255.255.0 10.1.3.1
Configuration of Layer 3 SwitchB
Switch#config
26-14