![Cisco Sx350 Cli Manual Download Page 525](http://html.mh-extra.com/html/cisco/sx350/sx350_cli-manual_2609320525.webp)
IP Routing Protocol-Independent Commands
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
524
25
Examples
Example 1—The following example shows how to route packets for network
172.31.0.0 to a router at 172.31.6.6 using mask:
switchxxxxxx(config)#
ip route 172.31.0.0 255.255.0.0 172.31.6.6 metric 2
Example 2—The following example shows how to route packets for network
172.31.0.0 to a router at 172.31.6.6 using prefix length :
switchxxxxxx(config)#
ip route 172.31.0.0 /16 172.31.6.6 metric 2
Example 3—The following example shows how to reject packets for network
194.1.1.0:
switchxxxxxx(config)#
ip route 194.1.1.0 255.255.255.0 reject-route
Example 4—The following example shows how to remove all static routes to
network 194.1.1.0/24:
switchxxxxxx(config)#
no ip route 194.1.1.0 /24
Example 5—The following example shows how to remove one static route to
network 194.1.1.0/24 via 1.1.1.1:
switchxxxxxx(config)#
no ip route 194.1.1.0 /24 1.1.1.1
25.4 ip routing
To enable IP routing, use the ip routing command in global configuration mode. To
disable IP routing, use the no form of this command.
Syntax
ip routing
Summary of Contents for Sx350
Page 1: ...Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide CLI GUIDE ...
Page 26: ...25 Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 1 ...
Page 237: ...CDP Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 236 8 ...
Page 975: ...RADIUS Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 974 48 ...