Syntax
ip route address/netmask next-hop-address [metric]
no ip route address/netmask next-hop-address
Parameters
address Specifies the address of the destination network.
netmask
next-hop-address
metric Assigns a routing metric to this static route. The greater the metric value,
Guidelines
Use the no ip route command to delete a static route.
Examples
v Adds a static route (subnet 10.10.10.224 reached via next-hop router
v Deletes the same static route (subnet 10.10.10.224 reached via next-hop router
mac-address
Specifies the MAC address of the current interface.
Syntax
mac-address MAC-address
Parameters
MAC-address
Guidelines
By default, the operating software uses the "burned-in" MAC addresses from the
network interface media.
Examples
v Sets a nondefault MAC address for Ethernet interface 0.
354
Command Reference
Identifies the network portion of the address. Can be expressed in CIDR
(slash) format, which is an integer that specifies the length of the network
portion of the address, or in dotted decimal format.
Specifies the IP address of the next-hop router.
the more preferred the route. Use a value in the range of 0 to 255. The
default is 0.
192.168.1.100) to the routing table.
# ip route 10.10.10.0/27 192.168.1.100
#
192.168.1.100) from the routing table.
# no ip route 10.10.10.0/27 192.168.1.100
#
Specifies the 48-bit MAC address in hexadecimal format.
# mac-address 00:11:22:aa:bb:cc
#