L2TP subnet mask and routes

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

L2TP subnet mask and routes

Post by kh_tsang » Tue Jul 28, 2015 11:23 am

How does the L2TP determine the subnet mask and the gateways for different subnets?

1. About the routes
L2TP is not an ethernet connection and the client does not need to and does not know the gateway IP of the routes, but the packets are forwarded to the correct gateway when using L2TP. The client only knows that a subnet should be routed through the L2TP connection.

2. About the subnet mask
The client can specify a static IP address and it is working, but the client cannot specify the subnet mask(e.g. Windows built-in client).

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: L2TP subnet mask and routes

Post by thisjun » Thu Aug 06, 2015 5:42 am

L2TP uses PPP.
PPP doesn't have subnet.

SoftEther VPN server provide virtual router for L2TP session.
So, the server notice IP address of the virtual router as default gateway.

kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Re: L2TP subnet mask and routes

Post by kh_tsang » Thu Aug 06, 2015 7:04 am

Then how does Softether VPN server know the gateway IP? Does it obtain from the DHCP?

192.168.30.2 is the tap device.
192.168.30.3 is a virtual layer 3 switch.
You do not have the required permissions to view the files attached to this post.

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: L2TP subnet mask and routes

Post by thisjun » Thu Aug 20, 2015 6:23 am

>>Then how does Softether VPN server know the gateway IP? Does it obtain from the DHCP?
Yes.

Post Reply