
20
2.1.8 staticroute
The full name of this command is Static Route function. This command can set rules to forward
data from one specified subnet to another specified subnet without the presence of RIP.
staticroute -s <Index>
staticroute -e <Index> <Network Interface> <Destination IP>
<Gateway IP> <Subnet Mask>
staticroute -d <Index>
Syntax Description
Syntax Description
-s It is used for displaying the settings of specified item.
-e It is used for editing the settings of specified item.
-d It is used for deleting the settings of specified item.
Index Enter the number of the item for the setting you want to execute
specific action.
Network Interface Select a network interface as a destination to be sent.
0 : LAN ;
1 : WAN1 ;
2 : WAN2 ;
3 : WAN3 ;
4 : WAN4
Gateway IP Assign an IP address of the gateway for the interface selected
above.
Destination IP Assign the IP address of the destination that data will be
transferred to.
Subnet Mask Assign a value of subnet mask for destination IP address. There
are several items for you to choose.
/24 ; /25 ; /26 ; /27 ; /28 ; /29 ; /30 ; /31 ; /32 ; /8 ; /9 ; /10 ; /11 ;
/12 ; /13 ; /14 ; /15 ; /16 ; /17 ; /18 ; /19 ; /20 ; /21 ; /22 ; /23 ; /0
Example
DrayTek/advance> staticroute -e 1 1 202.66.88.99 172.16.3.223 /24
DrayTek/advance> staticroute -s 1
-------------------
Static Route
-------------------
Index: 1
Network Interface: WAN1
Destination IP: 202.66.88.99
Gateway IP: 172.16.3.223
Mask: /24
Comentarios a estos manuales