2.4.11 ip route

This command allows users to set static route.

ip route add [dst] [netmask][gateway][iface][rtype] ip route del [dst] [netmask][rtype]

ip route status

Syntax Description

 

add

It means to add an IP address as static route.

del

It means to delete specified IP address.

status

It means current status of static route.

dst

It means the IP address of the destination.

netmask

It means the netmask of the specified IP address.

gateway

It means the gateway of the connected router.

iface

It means the connection interface., 0 : LAN; 3: WAN1; 4: WAN2

rtype

It means the type of the route, default : default route; static: static

 

route.

Example

 

>ip route add 172.16.2.0 255.255.255.0 172.16.2.4 3 static

>ip route status

Codes: C - connected, S - static, R - RIP, * - default, ~ - private

C~ 192.168.1.0/ 255.255.255.0 is directly connected, IF0

S 172.16.2.0/ 255.255.255.0 via 172.16.2.4, IF3

Telnet Command Reference Guide V1.1

19

Page 25
Image 25
Draytek 1.11 manual Ip route