Manually add route for vps linuxManually add route for vps linux
As a network engineer, you probably spend a lot of time thinking and planning your network infrastructure.

You plan how computers will be linked, physically using specific cables but also logically using routing tables.

When your network plan is built, you will have to implement every single link that you theorized on paper.

In some cases, if you are using Linux computers, you may have to add some routes in order to link it to other networks in your company.

Adding routes on Linux is extremely simple and costless : you can use the Network Manager daemon (if you are running a recent distribution) or the ifconfig one.

[root@vps /]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
[root@vps /]#
[root@vps /]# ip route add 0.0.0.0/0 via 0.0.0.0 dev venet0
[root@vps /]# 
[root@vps /]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 venet0
[root@vps /]# 
naylor@jump:~ $ ping 10.0.0.0
PING 167.114.223.54 (10.0.0.0) 56(84) bytes of data.
64 bytes from 10.0.0.0: icmp_seq=1 ttl=49 time=231 ms
64 bytes from 10.0.0.0: icmp_seq=2 ttl=49 time=230 ms