Skip to content

Instantly share code, notes, and snippets.

@VIEWVIEWVIEW
Created November 18, 2021 12:30
Show Gist options
  • Select an option

  • Save VIEWVIEWVIEW/8035f15dddd233bad1f5ed9ed0c853c9 to your computer and use it in GitHub Desktop.

Select an option

Save VIEWVIEWVIEW/8035f15dddd233bad1f5ed9ed0c853c9 to your computer and use it in GitHub Desktop.

Rechnernetze

Mode Description Device Prompt
User Exec Mode
  • Mode allows access to only a limited number of basic monitoring commands
  • It is often referred to as “view-only" mode
Switch> Router>
Privileged EXEC Mode
  • Mode allows access to all commands and features.
  • The user can use any monitoring commands and execute configuration and management commands.
Switch# Router#

Ebenen des Editors

Ebene Mode
> User Exec Mode
# Privileged Exec Mode
conf)# Global Configuration Mode
conf-if)# Special Configuration Mode

Navigation

> enable
# configure terminal
# exit 
# end

Hilfe

?
Befehlsanfang ?
Befehl ? (Optionen incl Kurzbeschreibung)

User EXEC Commands

> ping
> show (limited)
> enable (enters privileged Mode)

Privileged Mode Commands

# all User EXEC Commands
# debug commands
# reload
# configure (enters global configuration mode)

Global Configuration Mode

conf)# hostname
conf)# enable secret
conf)# ip route

Enter special configuration mode for interface "config-if#"
conf)# interface    ethernet
                    serial
                    bri
                    

Enter special configuration mode for router "config-router#"
conf)# router   rip
                ospf
                igrp
                etc...

Enter special configuration mode for line "config-line"
conf)# line vty
            console
            etc...
Interface Ethernet configuration Router(config-if)#
Enter special configuration mode for interface: 
conf)# interface ethernet

config-if# ip address
config-if# ipx address
config-if# encapsulation
config-if# shutdown
config-if# no shutdown
Routing engine configuration Router(config-router)#
Enter special configuration mode for Routing engine: 
conf)# router rip

config-router# network
config-router# version
config-router# auto-summary
Line Commands Router(config-line)#
Enter special configuration mode for lines: 
conf)# line vty


config-line# password
config-line# login
config-line# modem commands

Misc

# banner motd
# hostname R1

# interface fa0/1
    # ip address 192.168.1.10 255.255.255.0
    # no shutdown
# copy running-config startup-config

Grundabsicherung von Switch und Router im Configuration Mode

# line console 0
    # password <MyConsolePassword>
    # login

# line vty 0 15
    # password <MyVtyPassword
    # login

# enable secret MyPrivilegedEXEC-Password
# service password-encryption
# banner motd #AuthorizedAccessOnly!#

Mac address table

Switch#show mac address-table

Switch#clear mac address-table dynamic

Switch#show arp

Switch#show interfaces vlan1 // Anzeige MAC Adresse des Interfaces

>arp -a ( Zur Anzeige der ARP Tabelle)
>arp -d (Zum Löschen der ARP-Tabelle)
>ipconfig /all

Schichten

https://i.imgur.com/dsbAZSE.png

TCP/IP-Schicht vs OSI-Schicht

https://i.imgur.com/BTQyhvK.png

Ethernet

4B/5B Kodierung

https://i.imgur.com/ROncQI7.png

Fast Ethernet: 100BaseTx

https://i.imgur.com/15cxh4w.png

MLT-3

https://i.imgur.com/xiex2Hl.png

MLT-3 + 100BaseTX

https://i.imgur.com/fsE81xw.png

4D-PAM-5 (4-Dimensionale-Pulse-Amplituden-Modulation-5)

  • die 5 steht für 5 verschiedene Signalzustände: +1.0V, +0.5V, 0V, -0.5V, -1.0V
  • 4 Adernpaare
  • 5^4 = 625 Zustände (Symbole die pro Clock übertragen werden können)
  • Übertragung von 1 Byte = 256 Symbole sowie Vorwärtsfehlerkorrektur (FEC) pro Schritt

https://i.imgur.com/Ug5Lsxc.png

10Gbit Ethernet: 10GBaseT

https://i.imgur.com/HXolJbN.png

https://i.imgur.com/QEz3QXZ.png

Ethernet: VLAN tagging

https://i.imgur.com/N0tMHZ1.png

  • 12 Bit werden für das VLAN-Tagging genutzt. VLAN0 und VLAN4095 sind reserviert => 4094 VLANs möglich

Twisted Pair Verkablung in RJ-45

https://i.imgur.com/8FyNFOT.png

Bei direkter Verbindung von PC to PC muss man ein Crossover-Kabel verwenden (oder eine aktuelle Netzwerkkarte)

https://i.imgur.com/rlJcWo0.png

https://i.imgur.com/z4Ju8BT.png

Manchesterkodierung

https://i.imgur.com/HkdGIMg.png

Übertragungsmedien: Twisted-Pair-Verkabelung

  • Dämpfung:
    • Reduzierung der eingespeiten Signalamplitude in ABhängigkeit der Leitungslänge
  • Übersprechen (Crosstalk):
    • Störungen durch benachbartes Adernpaar (Unregelmäßigkeiten im Kabelaufbau)

Fehlerbehandlung

https://i.imgur.com/hL3eJ5e.png

Kabeltypen von Twisted Pair Verkabelung

https://i.imgur.com/Lzt4Hq7.png https://i.imgur.com/Z3NYnr1.png

  • Twisted Pair: verdrehte Leitungen sind stabiler als einfache
  • Doppeldosen: Zwei RJ45 nebeneinander in einer Dose.

https://i.imgur.com/kx3OKzS.png

https://i.imgur.com/MxaSlRB.png

https://i.imgur.com/ayG9dZH.png

8 Kategorien (Cat 1 bis Cat 8, Cat 5e)

https://i.imgur.com/WZFDhlD.png

https://i.imgur.com/gYz1AwX.png

https://i.imgur.com/75UJsr9.png

https://i.imgur.com/kR3YxqU.jpeg

https://i.imgur.com/ME9s7kt.png

Lichtwellenleiter

https://i.imgur.com/R3fwhL1.png

https://i.imgur.com/pI0m5hu.png

  • Wenn man viel Bandbreite oder weite Strecken: Singlemode

  • Wenn kurze Strecke, oder wenig Bandbreite (bis 40Gbit/s): Multimode

  • Kurze Strecken: LED (200m)

  • Lange Strecken: Laser (1km)

https://i.imgur.com/nqxj7KH.png

https://i.imgur.com/WlYvMNE.png

https://i.imgur.com/gIN1BWi.png

https://i.imgur.com/SOJxidq.png

https://i.imgur.com/sVsIW9u.png

https://i.imgur.com/OMaqSFT.jpeg

Aktive Netzwerkkomponenten auf OSI1 / OSI2

https://i.imgur.com/RKvrmy9.png

Repeater und Hubs

https://i.imgur.com/iRXCP5U.png

https://i.imgur.com/SIjDlqG.png

Half vs Full Duplex

  • Half Duplex:
    • Man kann entweder nur senden oder nur empfangen
  • Full Duplex:
    • Man kann gleichzeitig senden und empfangen

Selbstlernende Adresstabelle

  • Merkt sich bevorzugt Ports von Absender-MAC-Adressen -> PC1 an Port eth0 schickt ein Paket mit Absenderadresse 8:0:20:3:f:4

https://i.imgur.com/xn7JgcW.png

https://i.imgur.com/ql3pSVQ.png

Netzwerksimulationsumgebung Packet Tracer

https://i.imgur.com/rttfKmT.png

ARP (Address Resolution Protocol) und MAC Address Table

https://i.imgur.com/710ZqZm.png

https://i.imgur.com/jUpGUaN.png

Packet Tracer ARP

https://i.imgur.com/AVGH7Z9.png

Broadcaststürme

https://i.imgur.com/YShCwmQ.png

Spanning Tree Protocol

https://i.imgur.com/PYfEuve.png

VLAN

  • Kann Broadcaststürme verhindern Vorteile:
  • Seperation des Netzwerkverkehrs
  • Verringerung von Broadcasts
  • Flexible Anpassung an Kommunikationsbeziehungen
  • Verbesserung der Datensicherheit

Kommunikation zwischen den VLANs erfolgt durch Router Aufbau der Spaghetti VLANs unbedingt vermeiden

  • Ansonsten werden Trunks überlastet

Design-Leitgedanke: Ein IP-Subnetz pro VLAN

https://i.imgur.com/tNduIEe.png

https://i.imgur.com/6mdjU4r.png

Aktive Netzwerkkomponenten auf OSI 1 & 2

https://i.imgur.com/RuoT8us.png

Selbstlernende Adresstabelle MAC

https://i.imgur.com/5U0Ffg9.png

https://i.imgur.com/L7XHHAk.png

Commands für Mac-Adresse Table

https://i.imgur.com/C8pJOwz.png

Switch und Bridge

https://i.imgur.com/g3pbx3P.png

Spanning Tree Protocol

https://i.imgur.com/l9b5L6t.png

CSMA

  • Veraltete Netzwerktechnik. Sollte man trotzdem kennen.
  • Carrier Sense Multiple Access with Collision Detection
  • Wird nicht mehr im aktuellen Ethernet verwendet https://i.imgur.com/tgxxbgq.png

https://i.imgur.com/g7Qjeeh.png

IP Connectivity

https://i.imgur.com/jQ4rdQk.png

https://i.imgur.com/AocNMx8.jpeg

Datenverkehr im LAN

https://i.imgur.com/KmfbTsn.png

IP Adressierung

https://i.imgur.com/wSZI8Lc.png

Klassifizierung

https://i.imgur.com/eku3AzX.png

https://i.imgur.com/OItCVXk.png

https://i.imgur.com/MRI4pI8.png

Routing

https://i.imgur.com/PoO7UuF.png

https://i.imgur.com/SrwZGLb.png

Anmerkdung: Normalerweise schreibt man statt "any" 0.0.0.0 als Destination und Maske https://i.imgur.com/wGRBTJe.png

Routing Algos

  • BGP (Vor allem im WAN. Border Gateway Protocol)
  • OSPF (Vor allem im LAN)

Strukturierung von Netzwerken

https://i.imgur.com/kyig5fd.png

https://i.imgur.com/RIOHDIX.png

https://i.imgur.com/9UOjiHt.png

https://i.imgur.com/mzzOwDP.png

https://i.imgur.com/uEyXyT1.png

https://i.imgur.com/2pjhKOf.png

https://i.imgur.com/nfkFOAt.png

Spezielle IPv4 Adressen

https://i.imgur.com/PpINGgZ.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment