Chapter 19 Virtual Domains : Virtual Domains in NAT/Route mode : Virtual domains in NAT/Route mode : Configuring VDOM routing : Default static route for a VDOM
  
Default static route for a VDOM
The routing you define applies only to network traffic entering non-ssl interfaces belonging to this VDOM. Set the administrative distance high enough, typically 20, so that automatically configured routes will be preferred to the default.
In the following procedure, it is assumed that a VDOM called “Client2” exists. The procedure will create a default static route for this VDOM. The route has a destination IP of 0.0.0.0, on the port3 interface. It has a gateway of 10.10.10.1, and an administrative distance of 20.
The values used in this procedure are very standard, and this procedure should be part of configuring all VDOMs.
To add a default static route for a VDOM - web-based manager
1. In Virtual Domains, select the client2 VDOM.
2. Go to Router > Static > Static Routes.
3. Select Create New.
4. Enter the following information and select OK:
Destination IP/Mask
0.0.0.0/0.0.0.0
Device
port2
Gateway
10.10.10.1
Distance
20
To add a default static route for a VDOM - CLI
config vdom
edit client2
config router static
edit 4
set device port2
set dst 0.0.0.0 0.0.0.0
set gateway 10.10.10.1
set distance 20
end
end