SGS-6341-Series User Manual

Table Of Contents
26.3.2 Introduction to Default Route
Default route is a kind of static route, which is used only when no matching route is found. In
the route table, default route in is indicated by a destination address of 0.0.0.0 and a network
mask of 0.0.0.0, too. If the route table does not have the destination of a packet and has no
default route configured, the packet will be discarded, and an ICMP packet will be sent to the
source address indicate the destination address or network is unreachable.
26.3.3 Static Route Configuration Task List
1. Static route configuration
1. Static route configuration
Command Explanation
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>]
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
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.
26-13
User’s Manual of SGS-6341 series