cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1812
Views
0
Helpful
4
Replies

IPsec tunnel mode and what IP pool use for it

julianov403
Level 1
Level 1

Hello. 

 

I need to implement a VPN using IPsec ESP protocol in tunnel mode and the VPN clients must get an IP from the IPsec server. I was watching videos regarding the configuration of it and all implement a DHCP with another subnet for the VPN client. What the reason for this? 

 

For example, for lan the DHCP use a pool like this: 192.1687.0.0/24 and the VPN would use 192.168.1.0/24 

 

Thanks in advance. 

1 Accepted Solution

Accepted Solutions

One reason to use the inside network of the VPN-gateway as the VPN-pool ca be simplicity of the network-setup. Routing will automatically be correct also when the internet-firewall and the VPN-gateway are different devices.

But using an own IP-Pool will be a more clean design.

View solution in original post

4 Replies 4

Hi @julianov403

Must have more then one reason but mostly because who provides DHCP for VPN users is usually the firewall whilst regular LAN users has a different DHCP server.

 There's no gain to have both kind of users on the same scope.

 

-If I helped you somehow, please, rate it as useful.-

  

Thanks, Flavio. I think I got you. So, there is different DHCP server for VPN and LAN. right? Can we make the same for both?

For simplicity all implementation I've saw so far uses the firewall as dhcp server.

 But is possible. For example, the fragment of config, could work:

hostname(config)# vpn-addr-assign dhcp
hostname(config)# tunnel-group firstgroup type ipsec-ra 
hostname(config)# tunnel-group firstgroup general-attributes
hostname(config-general)# dhcp-server x.x.x.x

 

-If I helped you somehow, please, rate it as useful.-

One reason to use the inside network of the VPN-gateway as the VPN-pool ca be simplicity of the network-setup. Routing will automatically be correct also when the internet-firewall and the VPN-gateway are different devices.

But using an own IP-Pool will be a more clean design.