Link to home
Start Free TrialLog in
Avatar of Jon555
Jon555Flag for United States of America

asked on

Sub net Mask set

Does the the 2nd Networking card that services VPN use the same Sub Mask set as the primary card that services the Network . If not how down does the Network know which card is used by the Network ? I Have the Card I am using for the VPN setup with the same IP set , and gateway. The on services Network has 192.168.2.150 with a 255.255.255 .0 and no Gateway setup .I have the one setup for VPN setup 192.168.2, 175 should the submask be set to 255.255.255.0, and the gateway set to 192.168.2.1 ?
Avatar of Shane McKeown
Shane McKeown
Flag of Ireland image

This will not work, a VPN network is a different subnet that the main subnet on your network

Eg
LAN subnet for your clients - 192.168.2.1 - 254(with 2.1 being your router address)
VPN subnet - 192.168.1.1 - 254 - this will provide 254 IP's for the VPN clients connecting

So the subnet address in both cases is 255.255.255.0(but this doesn't always have to match)

You can't use IP's on the same subnet if you are trying to setup a VPN, have you 2 network cards in the server? If so you will assign each network card an IP like above, or using your example

LAN card - 192.168.2.150
VPN card - 192.168.1.175 - this can't be in the same 192.168.2 subnet since it will not work
ASKER CERTIFIED SOLUTION
Avatar of pwindell
pwindell
Flag of United States of America 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
My bad, don't know what I was thinking when I posted that! Well spotted @pwindell

Point I was making was the VPN needed to be seperate subnet from LAN subnet...