Original Publication Date: 04/15/2008
Updated Date: 05/07/2006
Note: The procedure for adding a static route changed in BIG-IP and 3-DNS version 4.5.11 and 4.6.3. For more information, refer to SOL3687: Managing static routes.
By default, BIG-IP and 3-DNS can only route to network addresses that are located on attached segments when they match a BIG-IP self IP address. To add multiple IP subnets on the same physical network segment, you must add a self IP address that belongs to each new network.
To add a static route to IP subnets on the same physical network segment, perform the following steps:
bigpipe self <address> vlan internal netmask <netmask>
bigpipe self <address> vlan internal netmask <netmask> floating enable
bigpipe base save
bigpipe save
bigstart reinit
You should now be able to access the new network.
Note: If you have nodes on the newly added network that use BIG-IP as their default gateway, you must configure those nodes to use the new floating self IP address for their gateway address. For more information about configuring the default gateway for your nodes, refer to your operating system documentation.
By default, BIG-IP and 3-DNS can only route to network addresses that are on attached segments that match a BIG-IP self IP address or to networks that can be reached through the BIG-IP's default gateway. Since the default gateway is generally upstream of BIG-IP, it is often necessary to add static routes to nodes that are reached through a downstream router.
To add a static route to an IP subnet on a different physical network segment, perform the following steps:
route add -net <subnet> <router>
Important: BIG-IP and 3-DNS build the routing table by loading static routes and then loading the configuration. If you add routes after you have loaded the configuration, it may result in incorrect routing. Because of this, you should always reload the BIG-IP or 3-DNS configuration using the bigpipe load command after you add new static routes.
bigpipe snat map external to <address>
To save static routes and load them when the BIG-IP or 3-DNS reboots, you must create a /config/routes configuration file and save the route commands to that file.
To create the /config/routes file and save the static routes, perform the following steps:
touch /config/routes
chmod 755 /config/routes
Important: The double chevron (>>) appends the modifications to the/config/routes file, rather than overwriting the file. If the file does not exist, this command will create it. Use this command with caution; if you use a single chevron (>), this command will overwrite the entire contents of the /config/routes file with the new entry.
echo 'route add -net <subnet> <router>' >>/config/routes
bigpipe load
Note: The /config/routes file will synchronize automatically when you use the configsync command.
To lock an MTU value to a specific route in the routing table, log in as root and type the following command where DESTINATION is the route destination, GATEWAY is the next-hop router used to get to the DESTINATION, and PMTU is the MTU value for the path from the host to the route destination:
route [change|add] [-[host|net]]{DESTINATION}{GATEWAY} [-mtu PMTU]
For example:
route add -net 10.0.0.0 192.168.1.1 -mtu 1450
or
route change -net 10.0.0.0 -mtu 400