1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-12-23 20:57:53 +00:00

Shunk cisco lst style, added hsrp and interface cfg

This commit is contained in:
chhan11 2017-06-08 22:09:43 +02:00
parent c4b564fa13
commit 43f259de5f
5 changed files with 57 additions and 26 deletions

View file

@ -6,6 +6,7 @@
\lstinputlisting[language=cisco]{code/base.cfg/blockHSRPVRRPGLBP.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/cdp.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/clock.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/hsrp.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/interfaces.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/lldp.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/snmp.cfg}

View file

@ -12,6 +12,7 @@ no aaa new-model
service unsupported-transceiver
!
ip subnet-zero
ip classless
system mtu routing 1500
!
no ip domain-lookup

21
code/base.cfg/hsrp.cfg Normal file
View file

@ -0,0 +1,21 @@
! Node 1
!
interface Vlan10
ip address 8.8.8.9 255.255.255.248
standby 1 ip 8.8.8.8
standby 1 timers msec 333 3
standby 1 priority 100
standby 1 preempt delay minimum 180 reload 180 sync 3
standby 1 authentication md5 key-string H1perL00p timeout 32767
standby 1 name VLAN10
!
! Node 2
!
interface Vlan10
ip address 8.8.8.10 255.255.255.248
standby 1 ip 8.8.8.8
standby 1 timers msec 333 3
standby 1 priority 100
standby 1 preempt delay minimum 180 reload 180 sync 3
standby 1 authentication md5 key-string H1perL00p timeout 32767
standby 1 name VLAN10

View file

@ -5,14 +5,41 @@ interface range f0/1-24
no cdp enable
no lldp transmit
lldp recieve
!
description Cust: Unused access port
switchport trunk encapsulation dot1q
switchport mode access
switchport port-security maximum 2
switchport port-security violation restrict
ip access-group blockHSRPVRRPGLBP in
priority-queue out
storm-control broadcast level pps 100k
storm-control multicast level pps 100k
storm-control action shutdown
spanning-tree portfast
spanning-tree bpdufilter enable
!
!
!
interface range g0/1-2
shutdown
no ip adress
no ipv6 address
no cdp enable
no lldp transmit
cdp enable
lldp transmit
lldp recieve
!
switchport mode trunk
switchport port-security maximum 50
switchport port-security violation restrict
ip access-group blockHSRPVRRPGLBP in
priority-queue out
mls qos trust dscp
storm-control broadcast level pps 100k
spanning-tree portfast trunk
storm-control multicast level pps 100k
storm-control action shutdown
spanning-tree portfast
!
!
!
@ -23,4 +50,6 @@ interface Loopback0
!
interface Vlan1
shutdown
no ip address
no ipv6 address
!

View file

@ -137,52 +137,31 @@
\lstdefinelanguage{cisco}{
keywords={
access-list,
cdp,
dhcp,
end,
hostname,
interface,
ip,
line,
lldp,
login,
network,
no,
ntp,
router,
show,
shutdown,
snmp-server,
vlan,
vrf
},
keywordstyle=\color{blue}\bfseries,
ndkeywords={
access-group,
addr,
address,
aux,
bgp,
console,
dhcp,
eigrp,
deny,
enable,
fa,
FastEthernet,
gi,
GigabitEthernet,
group,
host,
ifindex,
isis,
ospf,
ospfv3,
pool,
rip,
permit,
remark,
run,
view,
vty
},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},