mirror of
https://github.com/theNetworkChuck/CCNA_200-301.git
synced 2025-12-06 04:12:00 +01:00
Create template.j2
This commit is contained in:
parent
ddd905d6d6
commit
0f1a89dae7
25
template.j2
Normal file
25
template.j2
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
!
|
||||||
|
hostname {{ siteinfo.sitename }}
|
||||||
|
!
|
||||||
|
{% for n in range(3) %}
|
||||||
|
interface GigabitEthernet0/{{ n+1 }}
|
||||||
|
{% if n+1 == 1 %}
|
||||||
|
description Connection to Router
|
||||||
|
switchport mode trunk
|
||||||
|
switchport trunk allowed vlan 1,7,9
|
||||||
|
{% else %}
|
||||||
|
description Access Port
|
||||||
|
switchport access vlan 7
|
||||||
|
switchport voice vlan 9
|
||||||
|
switchport mode access
|
||||||
|
{% endif %}}
|
||||||
|
{% endfor %}
|
||||||
|
!
|
||||||
|
interface vlan 7
|
||||||
|
description Data vlan
|
||||||
|
ip address {{ siteinfo.vlan7 }}
|
||||||
|
!
|
||||||
|
interface vlan 9
|
||||||
|
description Voice vlan
|
||||||
|
ip address {{ siteinfo.vlan9 }}
|
||||||
|
!
|
||||||
Loading…
Reference in a new issue