Examples

The following are default routes which cannot be modified, i.e. deleted

Table 38: Default Routes

Network

Mask

Gateway

Interface

192.168.1.0

255.255.255.0

0.0.0.0

Eth1

192.168.1.0

255.255.255.0

0.0.0.0

Eth0

0.0.0.0

0.0.0.0

192.168.0.1

Eth0

Example 1:

If the user wants to reach the 2.2.2.2 IP address by using the Gateway as 192.168.0.100 on Eth0 interface

#  config static-route add 2.2.2.0 255.255.255.0 192.168.0.100
After adding the route for 2.2.2.0 network all the packets for 2.2.2.0 n/w goes through “Eth0” interface.

Example 2:

If the user wants to reach the 3.3.3.3 IP address by using the Gateway as 192.168.1.200 on Eth1 interface

# config static-route add 3.3.3.0 255.255.255.0 192.168.1.200
After adding the route for 3.3.3.0 network all the packets for 3.3.3.0 n/w goes through “Eth1” interface.

Table 39: Network Configurations

Network

Mask

Gateway

Interface

192.168.1.0

255.255.255.0

0.0.0.0

Eth1

192.168.1.0

255.255.255.0

0.0.0.0

Eth0

0.0.0.0

0.0.0.0

192.168.0.1

Eth0

2.2.2.0

255.255.255.0

192.168.0.100

Eth0

3.3.3.0

255.255.255.0

192.168.1.200

Eth1

Example 3:

To delete the static routes:

config static-route del 2.2.2.0 255.255.255.0 192.168.0.100
config static-route del 3.3.3.0 255.255.255.0 192.168.1.200