To configure IP unicast routing on the switch:
-
Create and configure two or more VLANs.
-
For each VLAN that participates in IP routing, assign an
IP address, use the following command:
configure
{vlan} vlan_name
ipaddress [ipaddress {ipNetmask} | ipv6-link-local |
{eui64} ipv6_address_mask]
Ensure that
each VLAN has a unique IP address.
-
Configure a default route using the following
command:
configure iproute add default
gateway {metric} {multicast | multicast-only |
unicast | unicast-only} {vr
vrname}
Default routes are used when the router
has no other dynamic or static route to the requested destination.
-
Turn on IP routing for one or all VLANs using the
following command:
enable
ipforwarding {ipv4 | broadcast | ignore-broadcast | fast-direct-broadcast} {vlan
vlan_name}
-
Configure the routing protocol, if required. For a simple
network using RIP, the default configuration may be acceptable.
-
Turn on RIP or
OSPF using
one of the following commands:
enable
rip
enable
ospf