Static Route Configuration Examples - Planet WGSW-52040 Configuration Manual

48-port 10/100/1000base-t + 4-port 100/1000x sfp managed switch
Hide thumbs Also See for WGSW-52040:
Table of Contents

Advertisement

Global mode
ip route {<ip-prefix> <mask> |
<ip-prefix>/<prefix-length>} {<gateway-address> |
<gateway-interface>} [<distance>]
no ip route {<ip-prefix> <mask> |
<ip-prefix>/<prefix-length>} [<gateway-address> |
<gateway-interface>] [<distance>]

26.3.4 Static Route Configuration Examples

The figure shown below is a simple network consisting of three layer3 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
SwtichC to SwitchB; PC-B and PC-C is connected via the default route set in SwitchB.
PC-A:10.1.1.2
vlan1:10.1.1.1
SwitchA
Configuration steps:
Configuration of layer3 SwitchA
Switch#config
Switch (config) #ip route 10.1.5.0 255.255.255.0 10.1.2.2
Configuration of layer3 SwitchC
PC-C:10.1.5.2
SwitchC
vlan3:10.1.5.1
vlan2:10.1.2.2
vlan2:10.1..2.1
vlan1:10.1.3.1
Figure 26-1: Static Route Configurations
26-15
Set static routing; the no ip
route {<ip-prefix> <mask> |
<ip-prefix>/<prefix-length>}
[<gateway-address> |
<gateway-interface>]
[<distance>] command deletes
a static route entry
PC-B:10.1.4.2
vlan1:10.1.3.2
vlan2:10.1.4.1
SwitchB

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents