ip route
Enterasys G-Series CLI Reference 15-19
ip route
UsethiscommandtoaddorremoveastaticIProute.Thenoformofthiscommandremovesthe
staticIProute.
ip route prefix mask dest-addr [distance]
no ip route prefix mask forward-addr
Parameters
Defaults
Ifdistanceisnotspecified,thedefaultvalueof1willbeapplied.
Mode
Globalconfiguration:G3(su)‐>router(Config)#
Example
ThisexampleshowshowtosetIPaddress10.1.2.3asthenexthopgatewaytodestinationaddress
10.0.0.0:
G3(su)->router(Config)#ip route 10.0.0.0 255.0.0.0 10.1.2.3
ping
UsethiscommandtotestroutingnetworkconnectivitybysendingIPpingrequests.
Syntax
ping ip-address
Parameters
Defaults
None.
Mode
PrivilegedEXEC:G3(su)‐>router#
Usage
Thiscommandisalsoavailableinswitchmode.
prefix SpecifiesadestinationIP addressprefix.
mask Specifiesadestinationprefixmask.
dest‐addr Specifiesaforwarding(gateway)IPaddress.
distance (Optional)Specifiesanadministrativedistancemetricforthisroute.Valid
valuesare1(default)to255.Routeswithlowervaluesreceivehigher
preferencein
routeselection.
ip‐address SpecifiestheIPaddressofthesystemtoping.