
Basic Routing
91
CopperLink CL2300 User Manual
12
• IP Routing
Mode:
Administrator execution
Step
Command
Purpose
1
[device](cfg)#context ip [ROUTER ]
Enters the context IP ROUTER
configuration mode.
2
[device](ctx-ip)[ROUTER]#routing-table [ DEFAULT ]
Enters the routing-table DEFAULT
configuration mode.
3
[device][ROUTER.DEFAULT]#route { <network>/<mask-
size> | <network><mask> |default | default-v6 } { gateway
<gw-address> | interface <if-name> } [ metric <metric> ]
OR
[device][ROUTER.DEFAULT]#no route
<network>/<mask-
size>
[ metric
<metric>
]
Adds a static route.
Removes a static route.
Syntax:
Parameter
Explanation
network
The destination network address in the dot-format a.b.c.d for IPv4 and in the
colon-format a:b:c::x for IPv6.
mask-size
Number of mask-bits defining the destination network.
mask
The destination network mask in the dot-format a.b.c.d for IPv4 and in the
colon-format a:b:c::x for IPv6.
default
Short form for defining a default IPv4 route.
It configures network/mask-size with 0.0.0.0/0.
default-v6
Short form for defining a default IPv6 route.
It configures network/mask-size with ::/0.
gw-address
The address of the next-hop router that can access the destination network. In
the dot-format a.b.c.d for IPv4 and in the colon-format a:b:c::x for IPv6.
interface
The name of the outgoing interface to be used for reaching the destination net-
work.
metric
Metric value of the route.
Default: 0
Note
To configure a default static IP route, use 0.0.0.0 for the network number
and mask (or ::/0 for a default IPv6 route). A valid next-hop address or inter-
face is required.
System Routes
For each assigned IP address the system automatically creates route entries for the belonging network into the
DEFAULT routing-table. That means, all directly available networks are known by the system and don’t have