01-11-2021 08:16 AM
Hello,
we have an 2911 VPN Router which is used for Anyconnect to dial in via IPSec. However, we are using an external Windows DHCP server to manage IP Adresses. We just found out, that the router passes the DHCP Discover each time with a differerent Client identifier number. For that the client computer each time gets a new IP from DHCP instead of keeping it's IP during Lease period.
This is the setup on the Router:
crypto ikev2 authorization policy ikev2-author-policy_AnyConnect dhcp server 10.128.9.98 dhcp giaddr 10.128.30.1 dhcp timeout 10 dns 10.128.9.99 def-domain company.name route set access-list acl_split-tunnel
Is there a way to configure the router so that it doesn't regenerate a unique ID for a remote client computer?
01-11-2021 09:30 AM
Hello,
I have seen the option:
Router(config)#ip dhcp relay information option vpn
which changes the giaddr to the outgoing interface.
Not sure what that does for AnyConnect/IPSec clients, but configure that and check if the unique ID is removed.
01-12-2021 12:46 AM
Hi Georg,
this command did not help at all and had no impact to the unique ID. Still the same situation.
01-12-2021 01:10 AM
Hello,
I am not sure if there is something on the Cisco router that can prevent this. Can you test to disable option 61 on one of your (hopefully Windows) clients, and see what the results are ?
You need to change the HKEY below on the client:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SkipClientID
By default, this registry entry is set to 0 (False),and therefore the option is included in outgoing DHCP requests.
Set this value to 1 (True) to prevent the option from being sent in the DHCP requests.
01-12-2021 01:22 AM
I think is not a client problem as the DHCP is working correctly whenver I vpn into a Cisco Firewall. Then the Unique ID keeps permanent for the client. This Problem is only happening in combination with an IOS Router.
01-12-2021 01:30 AM
Hello Rene,
tough one. Can you debug the traffic to your DHCP server ? Maybe that reveals where the UCIs come from...
access-list extended 101 permit ip any 10.128.9.98
!
debug ip packet 101 detail
01-15-2021 08:30 AM
When I debug the dhcp request, I can see that a hex dump generated by the router itself will be used as Client identifier. And the frustrating thing is that the router generates a new hex dump every time a vpn client connects.
I did a test and configured a local dhcp pool on the router itself and also with this scenario, the generated hex dump from the router leads in the direction that every time when a client connect via VPN, it gets a new IP address although the old IP lease time hasn't expired. This comes to the end that the DHCP scope is getting out of available IPs.
Is there nobody out there living in the Cisco World who has a running setup with FlexVPN on a Router where DHCP is working as expected?
01-15-2021 09:23 AM
Hello,
I remember that (a very long time ago, admittedly) in Active Directory, you could set a static IP address, and then Cisco ISE would query AD for this attribute.
I wonder if something like this could be configured in your router, with local AAA. I researched this, and it should look something like below. The 'problem' is which attribute type to use, the options are massive...
aaa new-model
!
aaa authorization network attr-list-group local
aaa attribute list attr-list
attribute type --?
!
crypto ikev2 authorization policy ikev2-author-policy_AnyConnect
dhcp server 10.128.9.98
dhcp giaddr 10.128.30.1
dhcp timeout 10
dns 10.128.9.99
def-domain company.name
route set access-list acl_split-tunnel
aaa attribute list attr-list
04-27-2022 05:39 AM
Hi Rene
We have this exact problem, but on an ASA firewall. You wrote that it works correctly through a Cisco Firewall. Can you share some details on this setup?
05-16-2022 02:58 AM
Hi,
we don't use ASA firewall, but FTD (Firepower). I remember that we had to disable DHCP failover on Windows DHCP servers for that VPN scope.
01-20-2021 12:42 AM
I opened a TAC Support case and the outcome is that there is no way to configure the router so that it sends the client's mac instead of a hex dump. With the local dhcp pool the router will give the user the next available IP. DHCP leases are ignored.
For this the only workaround for now is to setup static IP attributes in AD which then can be used by a radius server. This is a very frustrating workaroung and not really a solution when having hundreds of vpn clients
If you are using ISE the following links may help in assigning static IP's:
01-20-2021 12:58 AM
Hello,
--> For this the only workaround for now is to setup static IP attributes in AD which then can be used by a radius server. This is a very frustrating workaroung and not really a solution when having hundreds of vpn clients
So nothing has changed since the AD/ISE 'workaround' I mentioned earlier, which as far as I recall has been around since at least the days of Windows 7. Frustrating indeed, especially if you have hundreds of clients.
I guess the next thing to do would be to look for a non-Cisco solution.
01-20-2021 01:54 AM
We have the same situation also with our FTD Firepower machine and there is an open Bug for this (and ASA) and NO solution for this!
https://bst.cloudapps.cisco.com/bugsearch/bug/CSCsr53828
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide