02-15-2021 12:29 AM
I have to clean a configuration on an IOS XR.
I explain: I noticed that some parts of the configuration are not used/applied.
For instance, DHCP profiles are configured but not applied/linked to an interface. And the same for such ACL.
The configuration is lenghty and I don't want to verify each line one by one to see if it's applied/linked .
Anybody knows a command or trick to see such configuration part?
02-15-2021 03:41 AM
dhcp is not linked to an interface by a specific command, this is done by giving an interface (or vlan) a corresponding IP-address
and afaik no, there is no trick to do this the easy way, but yo can if try Cisco CLI Analyzer can give some hints for unused sections
02-15-2021 11:35 PM
Thank you for the answer. I tried the software with "analysis file" option but it doesn't detect the unused parts.
I don't want to the software communicate directly with the router.
As you said, I think that is no easy way
But I discover a great tool for other tasks
In IOS XR you can create DHCP profile and linked to an interface but is not in the interface section
eg:
profile DHCP-TEST relay
helper-address vrf TEST <ip address> giaddr <ip address>
helper-address vrf TEST <ip address> giaddr <ip address>
relay information option
relay information policy keep
relay information option allow-untrusted
interface BVIxxx relay profile DHCP-TEST
interface Bundle-Etherx.xxxx proxy profile DHCP-TEST
02-16-2021 01:36 AM
good to hear you made progress.
and apparently I misunderstood part of your question,
my given answer applies to DHCP-scopes, did not associate this with DHCP relay...
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