Professional Documents
Culture Documents
Review Questions - Managing Network Device Configurations
Review Questions - Managing Network Device Configurations
CONFIGURATIONS
REVIEW QUESTIONS AND HANDS-ON CHALLENGES
---
ntp_servers:
- 192.168.0.1
- 192.168.0.2
features: [ ospf, bgp, nxapi ]
vlans:
- { id: "1", name: "default" }
- { id: "100", name: "mgmt", subnet: "172.16.1.0/24"}
- { id: "101", name: "web", subnet: "192.168.201.0/24"}
- { id: "110", name: "db", subnet: "192.168.202.0/24"}
[R] Adds a set of NTP servers specified in all.yml file to all managed NX-
OS devices;
[R] Gets the list of NTP servers from managed NX-OS devices and
removes extraneous servers;
Enables specified NX-OS features and reports which of them were already
enabled;
This material is copyrighted and licensed for the sole use by Mikel Maeso (mikel.maeso@gmail.com [85.87.178.33]). More information at http://www.ipSpace.net/Webinars
Configures a set of VLANs on a NX-OS device and reports all configuration
commands that were executed;
Gets the list of existing VLANs on a NX-OS device and using the VLAN list
in all.yml file report which VLANs are missing from the device without
using map or selectattr Jinja2 filters.
[R] For all VLAN interfaces configured on a Nexus switch where IP address
ends with .1 change the IP address to .2 and configure HSRP with HSRP
address .1
Use the new declarative intent modules available in Ansible 2.2 and 2.3 when
writing the above playbooks.
---
ntp_servers:
- 192.168.0.1
- 192.168.0.2
snmp:
servers: [ 192.168.0.3, 192.168.0.4 ]
community: public
internal_prefixes:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
This material is copyrighted and licensed for the sole use by Mikel Maeso (mikel.maeso@gmail.com [85.87.178.33]). More information at http://www.ipSpace.net/Webinars
DEPLOYING CONFIGURATION FILES
Write Ansible playbook that:
Given list of edge and transit interfaces (for example, in host variables
file) creates OSPF configuration for the device and deploys it.
This material is copyrighted and licensed for the sole use by Mikel Maeso (mikel.maeso@gmail.com [85.87.178.33]). More information at http://www.ipSpace.net/Webinars