Configuring IP IP Forwarding
OmniSwitch AOS Release 8 Network Configuration Guide December 2017 page 15-12
address of the first hop (gateway). For example, to delete a static route to IP address 171.11.0.0 through
gateway 171.11.2.1, you would enter:
-> no ip static-route 171.11.0.0 gateway 171.11.2.1
The IP Forwarding table includes routes learned through one of the routing protocols (RIP, OSPF, BGP)
as well as any static routes that are configured. Use the show ip routes command to display the IP
Forwarding table.
Creating a Recursive Static Route
Recursive static routes are similar to the static routes described above. However, with a recursive static
route the route to reach the gateway is learned through a dynamic routing protocol such as RIP or OSPF. If
a better route to the gateway is learned, the path to a recursive route can be changed dynamically. This
feature can be used to configure a uniformed static route for all routers on a network, but the path to reach
the gateway can differ for each router. To create a recursive static route use the follows parameter:
-> ip static-route 171.11.0.0 follows 192.168.10.1
A route to the 192.168.10.1 address must be learned by a dynamic routing protocol for the recursive static
route to be active.
Creating a Default Route
A default route can be configured for packets destined for networks that are unknown to the switch. Use
the ip static-route command to create a default route. Specify a default route of 0.0.0.0 with a subnet
mask of 0.0.0.0 and the IP address of the next hop (gateway). For example, to create a default route
through gateway 171.11.2.1 you would enter:
-> ip static-route 0.0.0.0 mask 0.0.0.0 gateway 171.11.2.1
Specifying the length of the mask in bits is also supported. For example, the above default route is also
configurable using the following command:
-> ip static-route 0.0.0.0/0 gateway 171.11.2.1
Configuring an IP Routed Port
An IP interface can be configured on a VLAN and a port or linkagg can be added to this VLAN as tagged
or untagged, in a single CLI command. Use the ip interface rtr-port to create a VLAN, configure an IP
interface on that VLAN and assign a single port as tagged or untagged to that VLAN.
For example.
• To create VLAN interface and assign port 1/1 as tagged port to that VLAN use the below command:
-> ip interface test address 10.0.0.1/8 vlan 30 rtr-port port 1/1 tagged
• To create VLAN interface and assign port 1/2 as untagged port to that VLAN use the below command:
-> ip interface test1 address 20.0.0.1/8 vlan 40 rtr-port port 1/2 untagged
Note. You cannot create a default route by using the EMP port as a gateway.