903
Views
0
Helpful
2
Replies
Create new DHCP on router with ansible

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 07:51 AM
I want to add an additional DHCP pool to a router with the ansible ios_l3_interfaces module but I can't find any example to follow.
Labels:
- Labels:
-
General
2 Replies 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2023 08:34 AM
Always good examples in this repo https://github.com/ansible-collections/cisco.ios/blob/main/docs/cisco.ios.ios_l3_interfaces_module.rst
Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io
Connect with me https://bigevilbeard.github.io
Ansible Network Collection for Cisco IOS. Contribute to ansible-collections/cisco.ios development by creating an account on GitHub.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2023 08:38 AM
Hi David.
The Module ios_l3_interfaces don't have provisions to configure DHCP pools. It will only allow you to allow your interface fetch an IP address using DHCP or Statically.
Hope that helps.
Best Wishes,
Abhijit
