Greetings, we have been experiencing a random timeout issue with VPN users connecting to one of our servers which is causing a problem. My network administrator has instructed me to configure a secondary gateway to include the VPN connection.
My current connection resides as follows, 10.1.9.1 is the internal gateway to the internet, I'd like to add 10.1.1.20 as the VPN gateway.
# Broadcom Corporation NetXtreme II BCM5708S Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=none
BROADCAST=10.1.255.255
IPADDR=10.1.1.22
IPV6_AUTOCONF=yes
NETMASK=255.255.0.0
NETWORK=10.1.0.0
ONBOOT=yes
GATEWAY=10.1.9.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
create a file in
/etc/sysconfig/network-scripts
calledroute-eth1
(or whatever is the name of your interface) with the route rule, for example:10.0.0.0/8 via 10.1.1.20
I didn't knew the rule syntax pulegium suggests, which if suppored, is definetively more elegant that what I use.
But, just in case, on my systems I do the same but with the following syntax. In /etc/sysconfig/network-scripts/route-eth0 put:
And then do a network restart.