Quantcast
Channel: Sharing my technical experience » Windows
Viewing all articles
Browse latest Browse all 6

Same way, all the time

$
0
0

Today I had to add a persistent static route to one of my RedHat based systems. This can be achieved by adding the following line to the file /etc/sysconfig/static-routes:

#vi /etc/sysconfig/static-routes
any net 192.168.110.0 netmask 255.255.255.0 gw 192.168.50.82

any – is the eth interface
and the rest of the line it is the syntax of the route command like in

#/sbin/route add -net 192.168.110.0 netmask 255.255.255.0 gw 192.168.50.82

In Windows as far as I know this is achieved with:
route -p ADD 192.168.110.0 MASK 255.255.255.0 192.168.50.82


Viewing all articles
Browse latest Browse all 6

Trending Articles