Link to home
Start Free TrialLog in
Avatar of llarava
llaravaFlag for Afghanistan

asked on

How do we modify TCP/IP from commandline to modify DNS servers for an VPN specific connection?

We are testing with the VPN Checkpoint FW client. When we connect to the VPN the FW/VPN module assigns an IP to the client computer that whant to remote in. This IP is configured those settings are configured at the firwall level for the VPN.

The problem is that no DNS can be configured when setting up the VPN TCP/IP at the firewall level. Running a quick "ipconfig/all" once the VPN client authenticates we see that the PC gets an IP and a gateway but no DNS are entered.

I was wondering if we could run some command line so the TCP/IP for that particular connection can be modified and the DNS servers can be added.

I am not sure if that is possible or if I was clear in my question. Please let me know if not.

Thanks.  
Avatar of memo_tnt
memo_tnt
Flag of Palestine, State of image

hi

once you get the VPN connection then it will use your previous DNS ...that was available before the VPN ..

but yes it can be ...and the following commands used to change from CLI


to change IP and default gateway:
netsh int ip set address "your interface" static 192.168.0.101 255.255.255.0 192.168.0.254 1
 
to change DNS:
netsh int ip set dns "your interface" static 192.168.111.2 primary

your interface may: local area connection or local area connection 2 or wireless or the VPN interface ..

this apeears by ipconfig /all  
ASKER CERTIFIED SOLUTION
Avatar of predragpetrovic
predragpetrovic
Flag of Qatar image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial