Cheatsheet Enterprise Networking
Johan Beysen — 30-12-2025
Inhoudsopgave
Configuratiestappen
- STAP 1: Basis Configuratie
- STAP 2: VLAN Configuratie
- STAP 3: Interface Configuratie
- STAP 4: Redundantie & Load Balancing
- STAP 5: Layer 2 Beveiliging
- STAP 6: DHCP Services
- STAP 7: Routing Configuratie
- STAP 8: Access Control Lists
- STAP 9: NAT Configuratie
- STAP 10: Monitoring & Analysis
- STAP 11: 802.1X Port-Based Authentication
- STAP 12: Multicast (IGMP)
Verificatie & Debug
Voorbeelden
Prep
No log off:
STAP 1: Basis Configuratie
Basic settings Router
no ip domain-lookup
hostname R1
enable secret class
service password-encryption
banner motd #
Unauthorized access is strictly prohibited. #
line con 0
password cisco
login
logging synchronous
line vty 0 4
password cisco
login
end
Basic settings Switch
no ip domain-lookup
hostname SW1
enable secret class
service password-encryption
banner motd #
Unauthorized access is strictly prohibited. #
line con 0
password cisco
login
logging synchronous
line vty 0 15
password cisco
login
exit
SSH Configuratie (Router & Switch)
ip domain-name lab.local
crypto key generate rsa
1024
of
crypto key generate rsa general-keys modulus 2048
ip ssh version 2
username admin secret cisco
line vty 0 4
transport input ssh
login local
CDP & LLDP Configuratie
CDP activeren (standaard actief op Cisco)
CDP uitschakelen (best op access ports)
LLDP activeren
LLDP uitschakelen
Ongedaan maken
STAP 2: VLAN Configuratie
VLANs aanmaken (zonder VTP)
Met VTP
vtp domain CreaTech
vtp mode server
vtp password geheim
vtp version 2
vlan 10
name HR
vlan 20
name IT
vlan 100
name VLAN100
vlan 200
name VLAN200
Op alle andere switches:
Management VLAN Interface (Switch)
interface vlan 99
ip address 172.16.99.11 255.255.255.0
no shutdown
exit
ip default-gateway 172.16.99.1
Trunk configuratie
interface fa0/24
switchport mode trunk
switchport trunk allowed vlan 10,20,30,99
switchport trunk native vlan 99
switchport nonegotiate
no shutdown
VTP instellen (optioneel)
Ongedaan maken
no vlan 10
no vlan 20
no vlan 30
no vlan 99
no vlan 100
no vlan 200
no vlan 1111
interface vlan 99
no ip address
shutdown
no ip default-gateway
interface fa0/24
no switchport mode trunk
no switchport trunk allowed vlan
no switchport trunk native vlan
no switchport nonegotiate
switchport mode access
vtp mode transparent
no vtp password
STAP 3: Interface Configuratie
Router Interfaces
Switch Access Poorten
Inter-VLAN Routing (Router-on-a-stick)
interface g0/0
no shutdown
interface g0/0.10
encapsulation dot1q 10
ip address 172.17.10.1 255.255.255.0
interface g0/0.20
encapsulation dot1q 20
ip address 172.17.20.1 255.255.255.0
interface g0/0.30
encapsulation dot1q 30
ip address 172.17.30.1 255.255.255.0
interface g0/0.99
encapsulation dot1q 99
ip address 172.17.99.1 255.255.255.0
Voice VLAN configuratie
interface fa0/11
switchport mode access
switchport access vlan 10
switchport voice vlan 110
mls qos trust cos
QoS Configuratie
mls qos
interface fa0/11
mls qos trust cos
interface g0/1
mls qos trust dscp
interface fa0/11
auto qos voip cisco-phone
policy-map VOICE-POLICY
class VOICE-CLASS
priority percent 30
class VIDEO-CLASS
bandwidth percent 30
class class-default
fair-queue
interface g0/1
service-policy output VOICE-POLICY
Ongedaan maken
interface g0/1
no ip address
shutdown
interface range fa0/1 - 24
no switchport mode access
no switchport access vlan
shutdown
interface g0/0
shutdown
no interface g0/0.10
no interface g0/0.20
no interface g0/0.30
no interface g0/0.99
interface fa0/11
no switchport voice vlan
no mls qos trust
no mls qos
no policy-map VOICE-POLICY
interface g0/1
no service-policy output
STAP 4: Redundantie & Load Balancing
Link Aggregation (EtherChannel)
Static EtherChannel (mode on)
interface range g1/0/1 - 4
channel-group 1 mode on
no shutdown
exit
interface port-channel 1
switchpor 10,20,30,99
switchport trunk native vlan 99
PAgP EtherChannel
Switch 1:
interface range g1/0/1-2
channel-group 1 mode desirable
no shutdown
exit
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan 10,20,30
switchport trunk native vlan 99
Switch 2:
interface range g1/0/1-2
channel-group 1 mode auto
no shutdown
exit
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan 10,20,30
switchport trunk native vlan 99
LACP EtherChannel
interface range g1/0/1 - 4
channel-group 3 mode active
no shutdown
port-channel load-balance src-dst-mac
STP PVST+ Configuratie
Primary/Secondary:
Switch S1:
Switch S2:
PortFast + BPDU Guard
of
Ongedaan maken
interface range g1/0/1 - 4
no channel-group 1
shutdown
no interface port-channel 1
no interface port-channel 2
no interface port-channel 3
port-channel load-balance src-mac
spanning-tree mode pvst
no spanning-tree vlan 10 root
no spanning-tree vlan 20 root
no spanning-tree vlan 100 root
no spanning-tree vlan 200 root
interface range fa0/1-24
no spanning-tree portfast
no spanning-tree bpduguard enable
no spanning-tree portfast default
no spanning-tree portfast bpduguard default
STAP 5: Layer 2 Beveiliging
Port Security
1 MAC sticky (AS1)
interface fa0/1
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security aging time 15
switchport port-security aging type inactivity
switchport port-security violation restrict
3 MAC sticky (AS2)
interface fa0/1
switchport mode access
switchport port-security
switchport port-security maximum 3
switchport port-security mac-address sticky
switchport port-security aging time 5
switchport port-security aging type inactivity
switchport port-security violation restrict
Management poorten
interface fa0/3
switchport mode access
switchport access vlan 3
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address 1234.5678.abcd
switchport port-security aging time 10
switchport port-security aging type inactivity
switchport port-security violation restrict
VLAN Hopping Tegengaan
Ongebruikte poorten disablen:
DHCP Snooping
Trusted ports:
Dynamic ARP Inspection (DAI)
Trusted ports:
Ongedaan maken
interface fa0/1
no switchport port-security
no switchport port-security maximum
no switchport port-security mac-address sticky
no switchport port-security aging time
no switchport port-security violation
interface range fa0/10 - 24
no switchport access vlan
no shutdown
switchport mode access
no ip dhcp snooping
no ip dhcp snooping vlan 10,20,100,200
interface g0/1
no ip dhcp snooping trust
interface fa0/1
no ip dhcp snooping limit rate
no ip arp inspection vlan 10,20,100,200
interface g0/1
no ip arp inspection trust
no ip arp inspection validate
STAP 6: DHCP Services
DHCP Exclusions
DHCP Pool
ip dhcp pool GeefhierEenZinvolleNaam
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 9.9.9.9
domain-name mijnLAN.lab
lease 1 0 0
DHCP Relay
Router Interface DHCP Client
Ongedaan maken
STAP 7: Routing Configuratie
Static Routes
ip route 0.0.0.0 0.0.0.0 <next-hop-ip>
ip route <destination-network> <subnet-mask> <next-hop-ip>
ip route <destination-network> <subnet-mask> <exit-interface>
IPv6 Static Routes
OSPF Configuratie
router ospf 10
router-id 1.1.1.1
network 172.21.100.0 0.0.0.255 area 0
network 172.21.200.0 0.0.0.255 area 0
network 172.21.250.0 0.0.0.3 area 0
passive-interface g0/0
default-information originate always
Interface OSPF
OSPFv3 (IPv6)
ipv6 unicast-routing
ipv6 router ospf 10
router-id 1.1.1.1
exit
interface g0/0
ipv6 address 2001:FACE:CAFE:1::1/64
ipv6 address FE80::1 link-local
ipv6 ospf 10 area 0
Loopback Interface
BGP Configuratie
router bgp 65001
bgp log-neighbor-changes
neighbor 10.1.1.2 remote-as 65001
neighbor 203.0.113.1 remote-as 65002
network 192.168.1.0 mask 255.255.255.0
HSRP Configuratie (First Hop Redundancy)
Router 1 (Active):
interface g0/0
ip address 192.168.1.2 255.255.255.0
standby 1 ip 192.168.1.1
standby 1 priority 110
standby 1 preempt
standby 1 authentication md5 key-string cisco123
Router 2 (Standby):
interface g0/0
ip address 192.168.1.3 255.255.255.0
standby 1 ip 192.168.1.1
standby 1 priority 90
standby 1 preempt
standby 1 authentication md5 key-string cisco123
HSRP Timers
(hello 1 sec, hold 3 sec)
HSRP Tracking
HSRPv2 (voor IPv6 support)
GLBP Configuratie (Load Balancing)
Router 1:
interface g0/0
ip address 192.168.1.2 255.255.255.0
glbp 1 ip 192.168.1.1
glbp 1 priority 110
glbp 1 preempt
glbp 1 load-balancing round-robin
Router 2:
interface g0/0
ip address 192.168.1.3 255.255.255.0
glbp 1 ip 192.168.1.1
glbp 1 priority 90
glbp 1 preempt
glbp 1 load-balancing round-robin
Ongedaan maken
no ip route 0.0.0.0 0.0.0.0
no ip route <destination-network> <subnet-mask> <next-hop-ip>
no ipv6 unicast-routing
no ipv6 route 2001:DB8:1:1::/64 2001:DB8:1:A001::1
no router ospf 10
interface g0/0
no ip ospf 10 area 0
no ipv6 router ospf 10
interface g0/0
no ipv6 ospf 10 area 0
no interface loopback0
no router bgp 65001
interface g0/0
no standby 1
no track 1
interface g0/0
no glbp 1
STAP 8: Access Control Lists
Basic ACL
access-list 10 deny 192.168.10.0 0.0.0.255
access-list 10 permit any
interface g0/0
ip access-group 10 in
Named ACL aanpassen
Extended ACL
access-list 100 deny tcp any host 192.168.30.10 eq 80
access-list 100 permit ip any any
interface g0/1
ip access-group 100 in
of
access-list 110 permit ip any 192.168.31.10 0.0.0.0
access-list 110 deny ip any any
interface s0/0/1
ip access-group 110 out
Ongedaan maken
STAP 9: NAT Configuratie
NAT Overload (PAT)
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface g0/1 overload
interface g0/0
ip nat inside
interface g0/1
ip nat outside
Ongedaan maken
STAP 10: Monitoring & Analysis
SPAN Configuratie (Port Mirroring)
Local SPAN (binnen zelfde switch)
of
of
Rx/Tx filtering
monitor session 1 source interface fa0/1 rx
monitor session 1 source interface fa0/2 tx
monitor session 1 destination interface fa0/24
Remote SPAN (RSPAN) (tussen switches)
Source switch:
vlan 999
name RSPAN
remote-span
monitor session 1 source interface fa0/1
monitor session 1 destination remote vlan 999
Destination switch:
vlan 999
name RSPAN
remote-span
monitor session 1 source remote vlan 999
monitor session 1 destination interface fa0/24
SPAN session verwijderen
Verificatie SPAN
STAP 11: 802.1X Port-Based Authentication
AAA Configuratie
aaa new-model
aaa authentication dot1x default group radius
aaa authorization network default group radius
RADIUS Server configureren
radius server RADIUS-SERVER
address ipv4 192.168.1.100 auth-port 1812 acct-port 1813
key SecretKey123
802.1x Globaal activeren
802.1x per Interface
interface fa0/1
switchport mode access
switchport access vlan 10
authentication port-control auto
dot1x pae authenticator
802.1x met MAB (MAC Authentication Bypass)
Guest VLAN configuratie
interface fa0/1
authentication event fail action authorize vlan 999
authentication event no-response action authorize vlan 999
Verificatie 802.1x
Ongedaan maken
STAP 12: Multicast (IGMP)
IGMP activeren (standaard actief op IPv4 interfaces)
IGMP Snooping (Switch)
Globaal activeren:
Per VLAN:
Querier configureren:
Static Multicast Group
PIM (Protocol Independent Multicast)
Verificatie Multicast/IGMP
show ip igmp groups
show ip igmp interface
show ip igmp snooping
show ip igmp snooping groups
show ip mroute
show ip pim neighbor
show ip pim interface
Ongedaan maken
Notaties & Beschrijvingen
Interface Description
ACL Remarks
Standard ACL:
Extended ACL:
Named ACL:
ip access-list extended INTERNET-FILTER
remark een omschrijving
deny tcp any host 31.13.24.0 0.0.0.255
remark Sta rest toe
permit ip any any
Banner Messages
banner motd #
========================================
UNAUTHORIZED ACCESS IS STRICTLY PROHIBITED
All activity is monitored and logged
========================================
#
Login Banner:
Exec Banner:
Config File Comments
! ===================================
! CORE LAYER CONFIGURATIE
! ===================================
interface g0/1
description een omschrijving
! ===================================
! ACCESS LAYER - VLAN 10
! ===================================
interface fa0/1
description een omschrijving
! Tijdelijke config voor testing
interface fa0/24
shutdown
Verificatie & Troubleshooting
Show Commando's
Algemeen & Basis
show running-config
show startup-config
show version
show ip interface brief
show ipv6 interface brief
show interfaces
show interfaces status
show interfaces trunk
IP & Routing
OSPF
BGP
DHCP & NAT
ACL
VLANs & Switching
Spanning Tree
EtherChannel
Port Security
DHCP Snooping & DAI
show ip dhcp snooping
show ip dhcp snooping binding
show ip arp inspection
show ip arp inspection vlan 10
MAC & ARP
CDP & LLDP
show cdp neighbors
show cdp neighbors detail
show cdp interface
show lldp neighbors
show lldp neighbors detail
show lldp interface
HSRP & GLBP
show standby
show standby brief
show standby interface g0/0
show glbp
show glbp brief
show glbp interface g0/0
IGMP & Multicast
show ip igmp groups
show ip igmp interface
show ip igmp snooping
show ip igmp snooping groups
show ip mroute
show ip pim neighbor
802.1x
show dot1x all
show dot1x interface fa0/1
show authentication sessions
show dot1x statistics
show aaa servers
QoS
SPAN
Logging
Debug Commando's
IP & Routing
OSPF
BGP
DHCP & NAT
Spanning Tree
EtherChannel
Security
HSRP & GLBP
CDP & LLDP
QoS
Stop alle debug
Clear Commando's
clear ip dhcp binding
clear ip nat translations *
clear ip nat statistics
clear ip bgp *
clear ip bgp * soft
clear mac address-table dynamic
clear cdp table
clear lldp table
clear standby
clear glbp
Full Configuratie Voorbeelden
Full Switch Configuratie
hostname AS1
!
enable secret 5 $1$mERr$FRkgxvVJB2hrNOTLtiH4g.
!
ip ssh version 2
no ip domain-lookup
ip domain-name CreaTech.local
!
username beheerder secret 5 $1$mERr$FRkgxvVJB2hrNOTLtiH4g.
!
vtp mode transparent
!
ip arp inspection vlan 3,99-100,200
ip arp inspection validate src-mac dst-mac ip
!
ip dhcp snooping vlan 3,99,100,200
ip dhcp snooping
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan 3
name Management
!
vlan 99
name Native_VLAN
!
vlan 100
name Company_Devices
!
vlan 200
name BYOD
!
vlan 1111
name Unused_Ports
!
interface Port-channel1
description Po1 naar DS1
switchport trunk native vlan 99
switchport trunk allowed vlan 3,99,100,200
switchport mode trunk
switchport nonegotiate
!
interface Port-channel4
description Po4 naar DS2
switchport trunk native vlan 99
switchport trunk allowed vlan 3,99,100,200
switchport mode trunk
switchport nonegotiate
!
interface FastEthernet0/1
description EtherChannel naar DS2
switchport trunk native vlan 99
switchport trunk allowed vlan 3,99,100,200
ip arp inspection trust
ip dhcp snooping trust
switchport mode trunk
switchport nonegotiate
channel-group 4 mode on
!
interface FastEthernet0/2
description EtherChannel naar DS2
switchport trunk native vlan 99
switchport trunk allowed vlan 3,99,100,200
ip arp inspection trust
ip dhcp snooping trust
switchport mode trunk
switchport nonegotiate
channel-group 4 mode on
!
interface FastEthernet0/3
description Management Laptop Access
switchport access vlan 3
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
switchport port-security mac-address 1234.5678.ABCD
switchport port-security aging time 10
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/4
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/5
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/6
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/7
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/8
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/9
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/10
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/11
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/12
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/13
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/14
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/15
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/16
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/17
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/18
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/19
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/20
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/21
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/22
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/23
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface FastEthernet0/24
description Company Device Access Ports - VLAN100
switchport access vlan 100
ip dhcp snooping limit rate 8
switchport mode access
switchport port-security
switchport port-security mac-address sticky
switchport port-security violation restrict
switchport port-security aging time 15
spanning-tree portfast
spanning-tree bpduguard enable
!
interface GigabitEthernet0/1
description EtherChannel naar DS1
switchport trunk native vlan 99
switchport trunk allowed vlan 3,99-100,200
ip arp inspection trust
ip dhcp snooping trust
switchport mode trunk
switchport nonegotiate
channel-group 1 mode on
!
interface GigabitEthernet0/2
description EtherChannel naar DS1
switchport trunk native vlan 99
switchport trunk allowed vlan 3,99-100,200
ip arp inspection trust
ip dhcp snooping trust
switchport mode trunk
switchport nonegotiate
channel-group 1 mode on
!
interface Vlan1
no ip address
shutdown
!
interface Vlan3
description Management Interface
ip address 172.21.3.1 255.255.255.0
!
ip default-gateway 172.21.3.5
!
banner motd #
========================================
UNAUTHORIZED ACCESS - CreaTech AS1
Access Switch - VLAN100
========================================
#
!
line con 0
password 7 0822455D0A16
logging synchronous
login
exec-timeout 0 0
!
line vty 0 4
exec-timeout 0 0
login local
transport input ssh
line vty 5 15
exec-timeout 0 0
login local
transport input ssh
!
end
Router
hostname R1
!
enable secret 5 $1$mERr$FRkgxvVJB2hrNOTLtiH4g.
!
ip dhcp excluded-address 172.21.100.1 172.21.100.50
ip dhcp excluded-address 172.21.200.1 172.21.200.50
!
ip dhcp pool VLAN100-POOL
network 172.21.100.0 255.255.255.0
default-router 172.21.100.254
dns-server 8.8.8.8
domain-name CreaTech.local
ip dhcp pool VLAN200-POOL
network 172.21.200.0 255.255.255.0
default-router 172.21.200.254
dns-server 8.8.8.8
domain-name CreaTech.local
!
no ip cef
no ipv6 cef
!
username beheerder secret 5 $1$mERr$FRkgxvVJB2hrNOTLtiH4g.
!
ip ssh version 2
no ip domain-lookup
ip domain-name CreaTech.local
!
interface GigabitEthernet0/0
description Link naar DS1 - VLAN Trunk
ip address 172.21.100.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/0.3
description Management VLAN 3
encapsulation dot1Q 3
ip address 172.21.3.5 255.255.255.0
ip nat inside
!
interface GigabitEthernet0/0.100
description VLAN 100 - Company Devices
encapsulation dot1Q 100
no ip address
ip nat inside
!
interface GigabitEthernet1/0
description Link naar DS2 - VLAN Trunk
ip address 172.21.200.1 255.255.255.0
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet1/0.200
description VLAN 200 - BYOD
encapsulation dot1Q 200
no ip address
ip nat inside
!
interface GigabitEthernet2/0
description Link naar R3 - Transit
ip address 172.21.250.1 255.255.255.252
ip nat inside
!
interface GigabitEthernet3/0
description Internet Uplink
ip address 130.140.1.1 255.255.0.0
ip nat outside
duplex auto
speed auto
no cdp enable
!
router ospf 123
router-id 1.1.1.1
log-adjacency-changes
passive-interface GigabitEthernet0/0.3
passive-interface GigabitEthernet0/0.100
passive-interface GigabitEthernet1/0.200
network 172.21.100.0 0.0.0.255 area 0
network 172.21.200.0 0.0.0.255 area 0
network 172.21.250.0 0.0.0.3 area 0
network 172.21.3.0 0.0.0.255 area 0
default-information originate
!
ip nat inside source list 1 interface GigabitEthernet3/0 overload
ip classless
ip route 0.0.0.0 0.0.0.0 130.140.1.254
!
ip flow-export version 9
!
access-list 100 remark Alleen VLAN100 naar datacenter
access-list 100 permit ip 172.21.100.0 0.0.0.255 172.31.0.0 0.0.255.255
access-list 100 deny ip 172.21.200.0 0.0.0.255 172.31.0.0 0.0.255.255
access-list 100 permit ip any any
access-list 1 remark NAT Pool voor interne netwerken
access-list 1 permit 172.21.100.0 0.0.0.255
access-list 1 permit 172.21.200.0 0.0.0.255
access-list 1 permit 172.21.3.0 0.0.0.255
!
banner motd #
========================================
UNAUTHORIZED ACCESS - CreaTech R1
All activity is monitored and logged
========================================
#
!
line con 0
exec-timeout 0 0
password 7 0822455D0A16
logging synchronous
login
!
line aux 0
!
line vty 0 4
exec-timeout 0 0
login local
transport input ssh
!
end