3Com WXR100 3CRWXR10095A User Manual

Page 227

Advertising
background image

set ip route

227

When you add multiple routes to the same destination, MSS groups the
routes and orders them from lowest cost at the top of the group to
highest cost at the bottom of the group. If you add a new route that has
the same destination and cost as a route already in the table, MSS places
the new route at the top of the group of routes with the same cost.

Examples — The following command adds a default route that uses
gateway 10.5.4.1 and gives the route a cost of 1:

WX4400# set ip route default 10.5.4.1 1

success: change accepted.

The following commands add two default routes, and configure MSS to
always use the route through 10.2.4.69 when the interface to that
gateway router is up:

WX4400# set ip route default 10.2.4.69 1

success: change accepted.

WX4400# set ip route default 10.2.4.17 2

success: change accepted.

The following command adds an explicit route from a WX to any host on
the 192.168.4.x subnet through the local router 10.5.4.2, and gives the
route a cost of 1:

WX4400# set ip route 192.168.4.0 255.255.255.0 10.5.4.2 1

success: change accepted.

The following command adds another explicit route, using CIDR notation
to specify the subnet mask:

WX4400# set ip route 192.168.5.0/24 10.5.5.2 1

success: change accepted.

See Also

„

clear ip route on page 188

„

display interface on page 200

„

display ip route on page 204

Advertising
This manual is related to the following products: