46
GS-R250S Installation Guide
Experience the Internet @ GreatSpeed
• ping
>ping < IP address >
!
Sends an ICMP Echo message to the specified address.
Example:
Mymachine > ip ping 192.168.4.254
!
• relay
>relay
!
>relay all | < i/ f > [ < i/ f > ] [forward]
!
Displays or sets what forwarding TCP/IP will do between interfaces. The combinations of setting forwarding
can be a bit confusing; they behave as follows:
< i/f> - means interface.
forward - indicates one-way relaying.
relay all - from every interface to every non-loopback interface.
relay if1 - from if1 to every non-loopback.
interface - and from every interface to if1.
relay if1 forward - from if1 to every non-loopback interface.
relay if1 if2 - from if1 to if2 and from if2 to if1.
relay if1 if2 forward - from if1 to if2
To disable forwarding , use the “norelay “ command.
Configuration saving saves this information.
Example:
Mymachine > ip relay
!
Mymachine > ip relay all
!
• route
>route
!
>route add <name> <dest> <relay> [<mask>] [<cost>] [<timeout>]
!
>route delete <name>
!
>route flush
!
Lists routes ; add or delete a static route ; or delete all routes.
<name> is an arbitrary name specified to “route add “ that can be used to delete the route using “route delete”.
<dest> is the IP address of the network being routed to (only those bits of “<dest>” corresponding to bits set
in <mask> are relevant.
<relay> is the IP address of the next-hop gateway for the route.
<mask> (default ff:ff:ff:0) is the subnet mask of the network being route to, specified as four hexadecimal
number separated by colons. For example, 0:0:0:0 is a default route (matches everything without a more
specific route), ff:ff:ff:0 would match a Class C network, and ff:ff:ff:ff is a route to a single host. (Note: the
default is not always sensible. In particular, if <dest> is 0.0.0.0 then it would be better for the mask to default
to 0:0:0:0.)
<cost> (default 1) is the number of hops counted as the cost of the route, which may affect the choice of route
when the route is comparing with routes acquired from RIP. (But note that using a mixture of RIP and static
routing is not advised).
<timeout> (default 0, meaning that the route does not time out) is the number od seconds that the route will
remain in the routing table).
route
command continued on the next page.