Page 1 of 1

L2TP subnet mask and routes

Posted: Tue Jul 28, 2015 11:23 am
by kh_tsang
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).

Re: L2TP subnet mask and routes

Posted: Thu Aug 06, 2015 5:42 am
by thisjun
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.

Re: L2TP subnet mask and routes

Posted: Thu Aug 06, 2015 7:04 am
by kh_tsang
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.

Re: L2TP subnet mask and routes

Posted: Thu Aug 20, 2015 6:23 am
by thisjun
>>Then how does Softether VPN server know the gateway IP? Does it obtain from the DHCP?
Yes.