Thursday, September 27, 2012

2 default gateways

if we have two Network Cards (NIC) and we want to use one of them for internet and the other for our company network :


NIC (A) Connected to the Company Network (192.168.0.0) through router 192.168.1.1

NIC (B) Connected to the Internet    Network ( 172.16.0.0)  through Router 172.16.0.1

 

Solution :

1-change the "metric " of the NIC (A) connected to internet to "2000"

How:

   Network and share > change adapter setting > Right click on NIC (A) > properties >

      TCP/IP v4 Setting >advanced > "un-chek Automatic metric and write the value 2000 in the text box"

2-create static route for the local networks

     for the company networks we need the PC to go through NIC (B) so we need to create the following static route :

Run > CMD > :

route ADD 192.168.0.0 MASK 255.255.0.0 192.168.1.1













No comments:

Post a Comment