CCNA3 - subnetting en extra info
Kort. Direct. Gebruik dit op je site tijdens examens. Sla op als ccna3_spiek.html.
Boomdiagram Subnetting (snel)
256 (/24)
/ \
128 (/25) 128 (/25)
/ \
64 (/26) 64 (/26)
/ \
32 (/27) 32 (/27)
/ \
16 (/28) 16 (/28)
/ \
8 (/29) 8 (/29)
/ \
4 (/30) 4 (/30)
Subnetting - snelle facts
| CIDR | Totaal | Bruikbaar | Gebruik |
| /24 | 256 | 254 | LAN |
| /25 | 128 | 126 | 2 grote groepen |
| /26 | 64 | 62 | middelgroep |
| /27 | 32 | 30 | klein subnet |
| /28 | 16 | 14 | klein netwerk |
| /29 | 8 | 6 | POE of kleine seg |
| /30 | 4 | 2 | point-to-point |
VLANs & Trunks - the essentials
# Maak VLAN en zet poort in access
Switch(config)# vlan 10
Switch(config-vlan)# name Sales
Switch(config)# interface Fa0/5
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
# Trunk (tussen switches of naar router)
Switch(config)# interface Gi0/1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk native 99 # als native nodig
Switch(config-if)# switchport trunk allowed vlan 10,20,30
# Controle
Switch# show vlan brief
Switch# show interfaces trunk
Switch# show running-config interface Gi0/1
Tip: access = 1 VLAN. trunk = meerdere VLANs via 802.1Q.
Inter-VLAN routing
| Methode | Wanneer | Commands (kort) |
| SVI (Layer 3 switch) |
Switch doet routing (performant) |
Switch(config)# no ip routing
Switch(config)# interface vlan 10
Switch(config-if)# ip address 192.168.10.1 255.255.255.0
Switch(config-if)# no shutdown
Show: show ip route, show ip interface brief
|
| Router-on-a-stick |
Geen L3 switch, 1 fysieke link |
Router(config)# interface Gi0/0.10
Router(config-subif)# encapsulation dot1Q 10
Router(config-subif)# ip address 192.168.10.1 255.255.255.0
# trunk op switchport naar router
|
STP (Spanning Tree) - quick
# Wat check je snel:
- Wie is Root Bridge? -> show spanning-tree
- Poorten in Blocking/Listening/Learning/Forwarding -> show spanning-tree interface Gi0/1
- Priority aanpassen (hoger = root candidate):
Switch(config)# spanning-tree vlan 1 priority 4096
# Rapid PVST+ default is fine. RSTP = faster convergence (port roles verschillen)
Als dubbel-switch design: zet één switch lagere priority zodat die root wordt.
OSPF - single-area basics
# Basic config (area 0)
Router(config)# router ospf 1
Router(config-router)# network 192.168.10.0 255.255.255.0 area 0
Router(config-router)# network 10.0.0.0 255.255.255.0 area 0
# Verify
Router# show ip ospf neighbor
Router# show ip ospf interface
Router# show ip route ospf
# Troubleshoot:
- Check interface up/have IP
- Check hello/dead timers match
- Check network statements & wildcard masks
NAT / PAT (basis)
# NAT overload (PAT) - binnen naar buiten
Router(config)# access-list 1 permit 192.168.10.0 0.0.0.255
Router(config)# ip nat inside source list 1 interface GigabitEthernet0/0 overload
# markeer inside/outside
Router(config)# interface Gi0/0
Router(config-if)# ip nat inside
Router(config-if)# interface Gi0/1
Router(config-if)# ip nat outside
# Verify
Router# show ip nat translations
Router# show ip nat statistics
PAT = 1 publiek IP, vele privaat IPs via poortvertaling.
EtherChannel (LACP) quick
# Maak channel-group op switches (LACP = mode active)
Switch(config)# interface range Gi0/1 - 2
Switch(config-if-range)# channel-group 1 mode passive
# Op andere kant ook passive zetten voor correcte LACP negotiatie
# Verify
Switch# show etherchannel summary
Switch# show interfaces port-channel 1
Must-know SHOW commando's
| Command | Wat het zegt |
| show running-config | Opgeslagen config (wat geladen wordt bij reboot) |
| show startup-config | Huidige actieve configuratie |
| show ip interface brief | Interfaces + IP + up/down |
| show interfaces | Link status, errors, counters |
| show ip route | Routing tabel |
| show vlan brief | Trunk poorten en allowed VLANs |
| show interfaces trunk | VLAN toewijzing per access poort |
| show spanning-tree | STP root + port states |
| show ip ospf neighbor | OSPF neighbors |
| show ip nat translations | NAT tabel |
| show etherchannel summary | Port-channel status |
Troubleshoot flow (exact stappen)
- Ping lokale interface (is interface up?)
- show ip interface brief → IP + state
- Check VLANs & trunks → show vlan brief / show interfaces trunk
- Check routes → show ip route
- Check protocol neighbors (OSPF/EIGRP) → show ip ospf neighbor / show ip eigrp neighbors
- Packet path → traceroute / extended ping
- Check ACLs en NAT die verkeer kan blokkeren
Packet Tracer / lab checklist (doe dit)
- Zet IP's + masks correct, default gateway op hosts
- Maak VLANs, koppel poorten en zet trunk op uplink
- Maak SVI of router-on-a-stick (voer eerst "no ip routing" uit om conflicten te voorkomen) en test inter-VLAN ping
- Configureer OSPF op routers, check neighbors
- Verstoor intentionally: schakel poort uit, check show commands
- Zet tijd: ken
show-commando's uit je hoofd (5–10 stuks)
Handige korte cheat-lines (kopieer in je hoofd)
- Netwerk = eerste adres, Broadcast = laatste, Hosts = tussenin.
- Totaal adressen = 2^(hostbits), bruikbaar = totaal - 2.
- Trunk = switchport mode trunk; Access = switchport mode access.
- SVI = interface vlan X + ip address.
- Router-on-a-stick = subinterfaces + encapsulation dot1Q.
- OSPF = router ospf X ; network A.B.C.D W subnetmask area 0
- NAT overload = ip nat inside source list X interface Gi0/0 overload
Wil je dat ik dit split in losse HTML-bestanden per onderwerp (subnetting.html, vlan.html, ospf.html, nat.html) zodat je per tab een spiekbrief laadt? Of wil je ook printable/achtergrondkleur-inverse (dark) versie? Zeg wat je wil — ik maak het direct.