2016年5月17日 星期二

How to setup route table for multi network


How to setup  route table for multi network


Reset routing table
netsh winsock reset


You have 3 network card:

Company network:   10.109.34.x
Internal network   :  192.168.1  .x

wifi network          :  192.168.10.x


Setup default gateway for which network you use frequently. (My example is wifi network)

1.Default gateway (Maybe your private wireless, ex:192.168.10.x)
route change 0.0.0.0 mask 0.0.0.0 192.168.10.254 -p

2.Your company network  (ex: You get DHCP IP is 10.109.34.22)
route add 10.110.21.0 mask 255.255.255.0 10.109.34.254 -p
route add 10.109.34.0 mask 255.255.255.0 10.109.34.254 -p
route add 10.119.55.0 mask 255.255.255.0 10.109.34.254 -p

It means you want to connect 10.110.21.x target by 10.109.34.x(Your company network)

3.Your Internal network 
route add 192.168.1.0 mask 255.255.255.0 192.168.1.254 -p


If you want to bond dedicate IP address for connection.
<For dedicate IP address>
route add 10.109.34.109 mask 255.255.255.255 10.109.34.254 -p
route add 10.110.11.120 mask 255.255.255.255 10.109.34.254 -p

1 則留言:

(TOP)Temp for soulin only

123