218 MES3000 Ethernet switch series
Table 5.265– Commands of global configuration mode
ip route prefix
{mask |
prefix_length}
gateway [metric
distance] [reject]
Creates static rule of routing.
- prefix – target network (e.g. 172.7.0.0);
- mask – network mask (in decimal system format);
- prefix_length – prefix of network mask (number of
units in mask is 0..32);
- gateway – gateway for access to target network;
- distance – weight of route (1..255) (if not specified,
then default value is 1);
- reject – forbids routing to target network via all
gateways.
no ip route prefix
{mask |
prefix_length}
[gateway]
Deletes rule from static routing table.
ipv6 route
ipv6_prefix/len
gateway [metric
distance]
Create static IPv6 route
- ipv6_prefix/len – destination network prefix
- gateway – gateway for destination network access
- distance – route weight.
Only switch formed (CPU traffic) packet
routing is supported.
no ipv6 route
ipv6_prefix/len
[gateway]
Enables APR requests proxy mode.
Disables APR requests proxy mode.
Commands of EXEC mode
Type of request of command line of EXEC mode:
console#
Table 5.266 – Commands of EXEC mode
show ip route
[connected | static |
{address ip_address
[mask | prefix_length]
[longer-prefixes]}]
Displays routing table which satisfies set criteria.
– connected – connected route, i.e. route taken from directly connected and acting interface;
– static – static rout prescribed in routing table.
Sample of command execution
Display routing table:
console# show ip route
Maximum Parallel Paths: 2 (4 after reset)
Codes: C - connected, S - static
C 10.0.1.0/24 is directly connected, Vlan 1
S 10.9.1.0/24 [5/2] via 10.0.1.2, 17:19:18, Vlan 12
S 10.9.1.0/24 [5/3] via 10.0.2.2, Backup Not Active
S 172.1.1.1/32 [5/3] via 10.0.3.1, 19:51:18, Vlan 12
Table 5.267 – Description of command execution result