
Routing traffic via ClearOS when in VLAN environment
edited the text from ClearOS documentation
Static routes on a ClearOS system are associated with a particular network interface. The route is then enabled/disabled when the particular network interface is enabled/disabled. Here is a simple scenario:
*
A ClearOS LAN interface – eth1 – is configured with a 192.168.1.x network.
*
192.168.1.x is actually in a large VLAN environment with its gateway set to 192.168.1.1
In order for the ClearOS gateway to be aware of other VLANs e.g. 192.168.2.x, a static route must be configured. In this example, /etc/sysconfig/network-scripts/route-ethx is created with the following, where x is the eth number of your NIC.
192.168.2.0/24 via 192.168.1.1
After adding this static route, the route can be activated by re-enabling the ClearOS LAN interface:
/sbin/ifup eth1 If you are logged on to ClearOS console remotely you can issue the following command:ifdown ethx && ifup ethx