Skip to content

Instantly share code, notes, and snippets.

@twr14152
Created February 2, 2015 21:19
Show Gist options
  • Save twr14152/8196268394b5120c44ec to your computer and use it in GitHub Desktop.
Save twr14152/8196268394b5120c44ec to your computer and use it in GitHub Desktop.
Week 3 exercise 3
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
!
hostname {{item.hostname}}
!
logging buffered 32000
no logging console
enable secret 0 {{item.secret}}
!
!
!
!
{% for x in range(1,25)%}
interface FastEthernet0/{{x}}
switchport access vlan {{item.access_vlan}}
switchport mode access
spanning-tree portfast
!
{% endfor %}
!
interface Vlan1
ip address {{item.ip_addr}} 255.255.255.0
no ip route-cache
!
ip default-gateway {{item.default_gateway}}
snmp-server community {{item.snmp_community}} RO
!
{% if item.SNMP %}
access-list 98 remark *** SNMP ***
access-list 98 permit any
!
snmp-server view VIEWSTD iso included
snmp-server group READONLY v3 priv read VIEWSTD access 98
snmp-server user pysnmp READONLY v3 auth sha auth_key priv aes 128 encrypt_key
{% endif %}
line con 0
line vty 0 4
login
line vty 5 15
login
!
!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment