Skip to content

Instantly share code, notes, and snippets.

@sojournercntl
Last active June 4, 2019 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sojournercntl/887496ca50ce110f47075ea83682b4b5 to your computer and use it in GitHub Desktop.
Save sojournercntl/887496ca50ce110f47075ea83682b4b5 to your computer and use it in GitHub Desktop.
Netzwerktechnik - Kompendium

Default Konfiguration

  • Hostname
enable
config t
hostname HOSTNAME

banner motd "TEXT"
...
  • Telnet (siehe Telnet im PDF)

  • SSH

-- Hostname und Domainname vorher setzen
ip domain-name test.com

crypto key generate rsa
    1024

line vty 0 4
transport input ssh
login local
password ...
exit


line console 0
logging synchronous
login local

-- Neue User erstellen mit PW
...(config)# username nimit password pass123

-- Wenn noch nicht gesetzt
...# enable secret mypassword
...# service password-encryption

-- Verifizieren mit
...# sh ip ssh

-- to connect
...# ssh ipadresssehier
username
password...
  • IP Configuration siehe aufgabenstellung, http://www.subnet-calculator.com, cheatsheet

  • Server Dienste --> An den Computern - Ports freigeben über die ACL - access-list 100 permit tcp any eq PORT und NAT - ip nat inside source static tcp x.x.x.x PORT interface gig... x/x

  • Statisches Routen - Siehe Cheatsheet

  • RIP

host(config)# router rip
host(config-router)# default-information originate      DEFAULT ROUTE WIRD FESTGELEGT
NETZWERKE REGISTRIEREN
host(config-router)# network 10.0.0.0                   NUR WAS HIER EINGETRAGEN - RIP UPDATES
host(config-router)# version (1|2)                      RIPv1 oder v2
host(config-router)# passive-interface INTERFACE        PASSIV - Nur Updates empfangen nicht senden
host(config-router)# no auto-summary                    KEINE AutoSummarization (vlt gewünscht?! Achtung)
  • VLANs Siehe Cheatsheet VLAN

  • InterVLAN

Auf dem Switch:

interface INTERFACE #/#
description trunktorouter
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree portfast trunk


Auf dem Router:
interface INTERFACE #/#
interface INTERFACE #/#.1
    encapsulation dot1q 1 native
    ip address x.x.x.x x.x.x.x
    
  • Wireless Heim Router konfigurieren??? - Über Weboberfläche

  • ACLs Siehe Cheatsheet

  • NAT

Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment