Course Hero Logo

Automate Your Network.docx - Automate Your Network...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 4 out of 26 pages.

Automate Your NetworkManagement PlaneHuman Operator | Tools Managing Network DevicesCLI | SNMP | REST-API | NETCONFControl PlaneProtocol Exchange with state informationOSPF | EIGRP | BGP | RIPData PlaneMovement of data packets | Network TrafficRouting Tables | MAC Address-tableToolsPutty or an SSH session manager to get to the CLI.NMS systems that may already be in place (Cisco PrimeInfrastructure, Nagios, etc.).IOS commands and configurations.Existing skills on the CLI.Microsoft Visual Studio Code (VS Code).Microsoft Team Foundation Server (TFS).Linux.Git.Ansible.A central code repository in TFS.A local code repository for development in VS Code.A local code repository on the Linux / Ansible host to execute playbooks.A master branches.Working branches.Ahosts.inifile.Data models (Ansiblegroup_varsandhost_vars, YAML files holding variables).Dynamic templates.Tasks.Playbooks.The YAML file format and syntax.The Jinja2 file format and syntax.Python skills, ideally, but not required for Ansible beginners.The important information will become variables that go into data models and theconfiguration commands will go into templates. Meaningful data can include:Standard global configuration information:oAAA information.oQoS policies.oSNMP information.oLogging information.oNTP information.oArchive information.Hostname.VLAN information.
SVI information.VRF information.Routing (OSPF, EIGRP, static routes) information.Default gateway.Access control lists.Physical and virtual interface standards:oVLAN.oIP Address.oVoice VLAN.oSTP toolkit settings.oPower over Ethernet (PoE) settings.oQoS settings.o802.1x or port security settings.oTrunk or access port settings.Here is a sampledata model, in YAML format, for a campus access switch:---host_defaults:hostname: ACCESS01stack_size: 2site: 10snmp_engineid: 1001snmp_server_location: "Building01_FirstFloor"host_vlans:2:name: "In-BandManagement"3:name: WirelessAccessPoints10:name: BLUE_Zone11:name: BLUE_Zone_Voice20:name: RED_Zone30:name: GREEN_Zone50:name: SECURITYhost_virtual_interfaces:Vlan2:description: "In-BandManagement"ip_address: "192.168.1.1 255.255.255.0"state_enabled: truehost_port_channels:Port-channel1:port_channel: 1description: "Distribution Uplink"
encapsulation: dot1qswitchport_mode: trunkswitchport_nonegotiate: truevlans: 2,3,10,11,20,30,50state_enabled: truemembers:GigabitEthernet1/0/48:power_inline: falsesrr_queue_share: truesrr_queue_shape: truepriority_queue: outtrust_dscp: truelacp: activeservice_policy:input: QoS-INstate_enabled: trueGigabitEthernet2/0/48:power_inline: falsesrr_queue_share: truesrr_queue_shape: truepriority_queue: outtrust_dscp: truelacp: activeservice_policy:input: QoS-INstate_enabled: truehost_interfaces:GigabitEthernet1/0/1:type: OPZonedescription: Standard OPZone Interfacevlan: 10voice_vlan: 11state_enabled: trueGigabitEthernet1/0/2:type: SECURITYdescription: Standard Security Interfacevlan: 50state_enabled: trueHere is a sampletemplate, in the Jinja2 format, to configure VLANs on a device:vlan {{ global_campus_defaults.native_vlan }}name NativeVLAN{% if host_vlans is defined %}{% for host_vlan in host_vlans %}vlan {{ host_vlan }}name {{ host_vlans[host_vlan].name }}

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 26 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Santwana Das
Tags
IP address, Ansible

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture