1
0
Fork 0
mirror of https://gitlab.com/netravnen/NetworkLabNotes.git synced 2024-11-23 19:17:54 +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/blockHSRPVRRPGLBP.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/cdp.cfg} \lstinputlisting[language=cisco]{code/base.cfg/cdp.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/clock.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/interfaces.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/lldp.cfg} \lstinputlisting[language=cisco]{code/base.cfg/lldp.cfg}
\lstinputlisting[language=cisco]{code/base.cfg/snmp.cfg} \lstinputlisting[language=cisco]{code/base.cfg/snmp.cfg}

View file

@ -12,6 +12,7 @@ no aaa new-model
service unsupported-transceiver service unsupported-transceiver
! !
ip subnet-zero ip subnet-zero
ip classless
system mtu routing 1500 system mtu routing 1500
! !
no ip domain-lookup 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 cdp enable
no lldp transmit no lldp transmit
lldp recieve 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 interface range g0/1-2
shutdown shutdown
no ip adress no ip adress
no ipv6 address no ipv6 address
no cdp enable cdp enable
no lldp transmit lldp transmit
lldp recieve 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 interface Vlan1
shutdown shutdown
no ip address
no ipv6 address
! !

View file

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