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

CIDRTotaalBruikbaarGebruik
/24256254LAN
/251281262 grote groepen
/266462middelgroep
/273230klein subnet
/281614klein netwerk
/2986POE of kleine seg
/3042point-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

MethodeWanneerCommands (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

CommandWat het zegt
show running-configOpgeslagen config (wat geladen wordt bij reboot)
show startup-configHuidige actieve configuratie
show ip interface briefInterfaces + IP + up/down
show interfacesLink status, errors, counters
show ip routeRouting tabel
show vlan briefTrunk poorten en allowed VLANs
show interfaces trunkVLAN toewijzing per access poort
show spanning-treeSTP root + port states
show ip ospf neighborOSPF neighbors
show ip nat translationsNAT tabel
show etherchannel summaryPort-channel status

Troubleshoot flow (exact stappen)

  1. Ping lokale interface (is interface up?)
  2. show ip interface brief → IP + state
  3. Check VLANs & trunks → show vlan brief / show interfaces trunk
  4. Check routes → show ip route
  5. Check protocol neighbors (OSPF/EIGRP) → show ip ospf neighbor / show ip eigrp neighbors
  6. Packet path → traceroute / extended ping
  7. Check ACLs en NAT die verkeer kan blokkeren

Packet Tracer / lab checklist (doe dit)

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.