Difference between revisions of "Basic of routermode"

From NesevoWiki
Jump to navigationJump to search
(New page: ==Router- Modi und deren Bedeutung:== ===Routerprompt:=== Router'''>''' Usermode <br/><br/> Router'''#''' privilege mode <br/><br/> Router(config)<nowiki>#</nowiki> global configuration...)
 
Line 1: Line 1:
==Router- Modi und deren Bedeutung:==
+
==Router- Modi und the acceptation:==
  
  
Line 17: Line 17:
  
  
===Benutzermodus:===
+
===Usermode:===
  
 
In this mode you get automatical after the connection with the router an the computer. The Usermode is the lowest mode and you can't make very mutch.
 
In this mode you get automatical after the connection with the router an the computer. The Usermode is the lowest mode and you can't make very mutch.
Line 43: Line 43:
 
'''logout:''' With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.
 
'''logout:''' With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.
 
<br/><br/>
 
<br/><br/>
'''ping''': The ping command send to interfaces and network device and so you can check the accessible of the devices. You need only the IP-Address from the Interface/device
+
'''ping''': The ping command send echo messages to interfaces and network device and so you can check the accessible of the devices. You need only the IP-Address from the Interface/device
 
<br/><br/>
 
<br/><br/>
 
'''show:''' The '''show''' command give you information of your system or config, but you need a furthermore syntax.
 
'''show:''' The '''show''' command give you information of your system or config, but you need a furthermore syntax.
Line 52: Line 52:
 
===privilege mode:===
 
===privilege mode:===
  
In diesen Modus gelangt man, indem man im Benutzermodus den Befehl '''enable '''eingibt.<br/>
+
You will get in this mode after typing '''enable''' in the usermode.<br/>
In diesem Modus hat man mehr Möglichkeiten als im Benutzermodus. Dies kann man deutlich mit dem '''? '''Befehl erkennen. Der wichtigste Befehl dieses Modus ist der Befehl '''configure''' , um in den globalen Konfigurationsmodus zu wechseln.
+
Now you have more access than in the usermode, you will see that after typing '''?''' The most important command of this mode is '''configure''' , so you will get into the global configurationmode.
  
  
====Beispiel:====
+
====For example:====
  
  
Line 79: Line 79:
  
  
====Bedeutung der Befehle:====
+
====acceptation of commands:====
  
'''Clear''' Mit diesem Befehl können Sie folgendes löschen bzw. zurücksetzen. Jedoch benötigen Sie dazu noch folgende Syntax:
+
'''Clear''' This command will delete your arp-cache or your cdp table, but you musst enter folowing syntax:
           '''Clear arp-cache '''um den Speicher des ARP- Protokolls (Address Resolution Protocol) zu löschen.  
+
           '''Clear arp-cache ''' to delete the ARP-cache (Address Resolution Protocol).  
           '''Clear cdp '''um die Tabelle mit den CDP(Cisco Discovery Protocol) Information zu löschen
+
           '''Clear cdp ''' to delete your CPD table(Cisco Discovery Protocol).
'''Configure''' Dieser Befehl ist der wichtigste auf dieser Ebene. Mit diesem Befehl können Sie in den globalen Konfigurationsmodus wechseln und dort den Router oder den Switch weiter konfigurieren. Alternativ können Sie auch '''configer terminal''' oder '''conf t''' eingeben.
+
'''Configure''' This is the most important command of this mode, type this command and you will get in the configurations mode. You can also type '''configure terminal''' or '''conf t'''
<br/><br/>
+
'''Copy''' You can copy/save following:
'''Copy''' Mit diesem Befehl können Sie folgendes kopieren:
+
           '''copy running-config '''You will save your actually config
           '''copy running-config '''Mit diesem Befehl können Sie die aktuelle Konfiguration speichern
+
           '''copy''' '''startup-config '''You will save your startup config.
           '''copy''' '''startup-config '''Mit diesem Befehl können Sie die startende Konfiguration speichern.
 
  
'''Disable''' Mit diesem Befehl deaktivieren Sie Befehle des privilegierten Modus
+
'''Disable''' you will disable the enable commands
 
<br/><br/>
 
<br/><br/>
'''Enable''' Mit diesem Befehl aktivieren Sie Befehle des privilegierten Modus
+
'''Enable''' You will activate the enable commands
 
<br/><br/>
 
<br/><br/>
'''Erase''' Mit diesem Befehl löschen Sie den NVRAM. Alle gespeicherten Einstellungen werden gelöscht!
+
'''Erase''' This command will delete your NVRAM. Your hole config will be lost!
 
<br/><br/>
 
<br/><br/>
'''Exit''' Mit diesem Befehl verlässt man den Router und kann durch erneutes Drücken der ENTER- Taste den Benutzermodus betreten.
+
'''Exit''' With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.
 
<br/><br/>
 
<br/><br/>
'''Logout''' Mit diesem Befehl verlässt man den Router und kann durch erneutes Drücken der ENTER- Taste den Benutzermodus betreten.
+
'''Logout''' With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.
 
<br/><br/>
 
<br/><br/>
'''No''' Es werden Debug Informationen ausgeblendet.
+
'''No''' You will deactivate some configurations.
           '''No IP '''es werden keine IP Informationen angezeigt.
+
           '''No IP '''You will erase your ip settings.
'''Ping''' Mit diesem Befehl können Sie so genannte Echos an Schnittstellen und Netzwerkkomponenten schicken und überprüfen, ob sie erreichbar sind. Der Syntax lautet:
+
'''Ping''' The ping command send echo messages to interfaces and network device and so you can check the accessible of the devices. You need only the IP-Address from the Interface/device. the syntax is:'''ping <Ziel IP- Adresse>'''
          '''ping <Ziel IP- Adresse>'''
+
'''Reload''' To restart your Switch or Router.
'''Reload''' Der Router oder Switch wird neu gestartet.
 
 
<br/><br/>
 
<br/><br/>
'''Show''' Mit dem '''show''' Befehl kann man sich System Informationen ausgeben lassen.  
+
'''show:''' The '''show''' command give you information of your system or config, but you need a furthermore syntax.
     Allerdings benötigt man noch einen weiteren Syntax zum einfachen '''show''' Befehl. Diese kann man mit '''show ?''' finden.
+
     You can find the syntax with '''show ?'''.
''' Traceroute''' Dieser Befehl wird zum Anzeigen der verwendeten Route zum Ziel benötigt. Dies kann sehr hilfreich bei der Fehlersuche sein.
+
'''Traceroute''' With this command you can find the used route to your desitination out. That can be very helpfull for searching mistakes.
 
<br/><br/>
 
<br/><br/>
'''Write''' Mit diesem Befehl können Sie folgendes machen:
+
'''Write''' You can do following:
           '''write terminal''' es werden die aktuellen Einstellungen in das Terminal geschrieben.
+
           '''write terminal''' you will write your actually settings in the terminal.
           '''Write memory''' es werden die aktuellen Einstellungen in den NVRAM geschrieben.
+
           '''Write memory''' you will write your actally settings in the NVRAM.
           '''write erase '''Der NVRam wird gelöscht, die aktuelle und gespeicherte Konfiguration würden verloren gehen.
+
           '''write erase '''DYou will erase your NVRAM! All settings and configurations will be lost!
                      Man wird allerdings noch vom Router gewarnt.
 
  
===Globaler Konfigurationsmodus:===
+
===global configurationmode:===
  
Von diesem Modus aus kann man den Router konfigurieren und in verschiedene andere Modi wechseln. Zum Beispiel:  
+
From this mode, you can config your router/ switch an it's possible to join othe modi. for example:
Interface serial 0/0 um die Serielle Schnittstelle zu konfigurieren.
+
Interface serial 0/0 to configure the serial interface 0/0.
  
  
====Beispiel:====
+
====For example:====
  
 
Router(config)<nowiki>#</nowiki>'''?'''<br/>
 
Router(config)<nowiki>#</nowiki>'''?'''<br/>
Line 140: Line 137:
  
  
====Bedeutung der Befehle:====
+
====acceptation of commands:====
  
'''access-list:''' Mittels diesem Befehl können Sie eine Access List erstellen.  
+
'''access-list:''' You can create access- lists.  
 
<br/><br/>
 
<br/><br/>
'''cdp:''' Global CDP configuration subcommands
+
'''cdp:''' To get into the globale CDP configuration submode.
 
<br/><br/>
 
<br/><br/>
'''enable:''' Mit diesem Befehl können Sie ein enable Passwort setzen bzw. bearbeiten.
+
'''enable:''' You will set a password or change it.
 
<br/><br/>
 
<br/><br/>
'''end:''' Mit diesem Befehl verlassen Sie den globalen Konfigurationsmodus
+
'''end:''' You will leave the global configurationsmode.
 
<br/><br/>
 
<br/><br/>
'''exit:''' Mit diesem Befehl verlassen Sie den globalen Konfigurationsmodus
+
'''exit:''' You will leave the global configurationsmode.
 
<br/><br/>
 
<br/><br/>
'''hostname:''' Mit diesem Befehl können Sie Ihrem Gerät einen Namen geben.
+
'''hostname:''' To give the device a name.
 
<br/><br/>
 
<br/><br/>
'''Interface:''' Mit diesem Befehl können Sie ein Beliebiges Interface konfigurieren
+
'''Interface:''' To config an interface
'''Interface Ethernet <Schnittstellennummer> '''So konfigurieren Sie ein Ethernetinterface.
+
'''Interface Ethernet <Interfacenumber> '''To edit a ethernet Interface.
           '''Interface GigabitEthernet <Schnittstellennummer> '''So konfigurieren Sie eine GigabitEthernet Schnittstelle.
+
           '''Interface GigabitEthernet <Interfacenumber> '''To config a GigabitEthernet Interface.
           '''Interface Serial <Schnittstellennummer>''' So wird ein serielles Interface konfiguriert.
+
           '''Interface Serial <Interfacenumber>''' To config a serial Interface.
'''Ip:''' Mit diesem Befehl können Sie folgendes machen:
+
'''Ip:''' You can do following:
           '''ip access-list''' Um eine Access-List zu bearbeiten
+
           '''ip access-list''' to edit an access-list
           '''ip dhcp pool <Poolname>''' Um einen DHCP Pool zu erstellen.
+
           '''ip dhcp pool <Poolname>''' To create a dhcp pool.
           '''ip dhcp excluded- address <IP- Adresse>''' Geben Sie an, welche IP Adresse nicht vergeben werden darf.
+
           '''ip dhcp excluded- address <IP- Adresse>''' to exluded an IP-Address from the dhcp pool.
           '''ip nat pool''' '''<Poolname>''' Um einen Natpool anzulegen
+
           '''ip nat pool''' '''<Poolname>''' To create a nat pool
           '''ip nat inside''' um eine Interne IP- Adresse in Externe um zu wandeln.
+
           '''ip nat inside''' to change a intern IP-Address to an extern.
           '''ip''' '''route <Zielnetz Subnetmaske Next Hop <nowiki>[</nowiki>Metrik<nowiki>]</nowiki>>''' Um eine statische Route anzulegen.
+
           '''ip''' '''route <destinationaddress subnetmask Next Hop <nowiki>[</nowiki>metric<nowiki>]</nowiki>>''' To create a static route
'''Line:''' Um in den Line Modus zu wechseln.
+
'''Line:''' To change into the line-mode .
 
<br/><br/>
 
<br/><br/>
 
'''No:''' Verweigern Sie einen Befehl oder Standardwerte.
 
'''No:''' Verweigern Sie einen Befehl oder Standardwerte.
 
<br/><br/>
 
<br/><br/>
'''Router:''' Mit diesem Befehl können Sie in den Konfigurationsmodus für Routing Protokolle wechseln.
+
'''Router:''' To get into the configmode for routing protokolls.
Geben Sie dafür folgendes ein:
+
Type following in:
 
           '''router rip''' um rip als Routing Protokoll zu wählen.
 
           '''router rip''' um rip als Routing Protokoll zu wählen.
 
           '''router eigrp '''um eigrp als Routing Protokoll zu definieren.
 
           '''router eigrp '''um eigrp als Routing Protokoll zu definieren.
  
'''Username''': Mit diesem Befehl können Sie einen Username eintragen
+
'''Username''': You will create an user
 
<br/><br/>
 
<br/><br/>
  
 
===Schnittstellenmodus:===
 
===Schnittstellenmodus:===
  
In diesem Modus können Sie einzelne Schnittstellen bearbeiten.
+
In this mode you will configure your interface.
  
  
====Beispiel:====
+
====For example:====
 
Router(config-if)<nowiki>#</nowiki>'''?'''
 
Router(config-if)<nowiki>#</nowiki>'''?'''
 
         '''Arp''' Set arp type (arpa, probe, snap) or timeout
 
         '''Arp''' Set arp type (arpa, probe, snap) or timeout
Line 198: Line 195:
  
  
====Bedeutung der Befehle:====
+
====acceptation of commands:====
  
'''Arp''' Schaltet das ARP Protokoll für eine bestimmte Zeit aus.
+
'''Arp''' To choose the arp type or timeoute .
<br/><br/>
 
'''Bandwidth''' Mit diesem Befehl können Sie der Schnittstelle eine Bandbreite zuteilen. Wählen Sie dazu einen wert zwischen 1 und 10000000 kbits aus.
 
 
<br/><br/>
 
<br/><br/>
'''cdp''' Aktiviert das CDP Protokoll.
+
'''Bandwidth''' Give a Interface a maximal bandwidth. Choose a parameter between 1 und 10000000 kbit per sec.
 
<br/><br/>
 
<br/><br/>
'''delay''' Mit diesem Befehl können Sie das Weiterleiten der Pakete einstellen. Wählen Sie einen Wert zwischen 1-16777215 ms
+
'''cdp''' To activate the CPD protokoll.
 
<br/><br/>
 
<br/><br/>
'''description''' Mit diesem Befehl können Sie das Interface beschreiben
+
'''description''' To descripe the interface
 
<br/><br/>
 
<br/><br/>
'''duplex''' Hier können Sie folgendes einstellen:
+
'''duplex''' To configure following:
           '''duplex auto''' Um das gleichzeitige Schicken und empfangen von Paketen zu ermöglichen.
+
           '''duplex auto''' Set duplex of auto.
           '''duplex full '''Mit diesem Befehl stellen Sie den duplexwert auf voll.
+
           '''duplex full '''set duplex of full.
           '''duplex half''' Mit diesem Befehl setzen Sie den Duplexwert auf halb.
+
           '''duplex half''' set duplex of half.
'''Exit''' Mit diesem Befehl verlassen Sie den Schnittstellenmodus wieder.
+
'''Exit''' Mto leave to interfacemode.
 
<br/><br/>
 
<br/><br/>
'''ip''' Mit diesem Befehl können Sie folgendes machen:
+
'''ip''' To edit the ip-address from this interface:
           '''ip address <IP- Adresse Subnetmaske> '''Dem Interface wird eine IP- Adresse zugefügt.
+
           '''ip address <IP- Address subnetmask> '''to attach a IP- Address and subnetmask.
           '''ip access-list''' Um eine Access-List dem Interface zuzuordnen
+
           '''ip access-list''' to attach a Access List
'''mac-address''' Geben Sie der Schnittstelle manuell eine Mac-Adresse.
+
'''mac-address''' to attach a MAC-Address
 
<br/><br/>
 
<br/><br/>
'''no''' Verweigern Sie einen Befehl oder Standardwerte
+
'''no''' to delete a command
 
<br/><br/>
 
<br/><br/>
'''shutdown''' Zum Aktivieren der Schnittstelle
+
'''shutdown''' to activate the interface
 
<br/><br/>
 
<br/><br/>
'''speed''' Konfiguriert die Geschwindigkeit. Folgende Werte stehen zur Auswahl:
+
'''speed''' to configur the speed of this interface:
           '''10 Force '''Die Geschwindigkeit wird auf 10Mb/sec festgelegt
+
           '''10 Force '''set the speet to '''10Mb/sec'''
           '''100 Force '''Die Geschwindigkeit wird auf'''100 Mbps ''' festgelegt
+
           '''100 Force '''set the speet to'''100 Mbps '''.
           '''auto Enable''' AUTO Geschwindigkeit wird konfiguriert
+
           '''auto Enable''' set the speed auto.
  
===Konfigurationsmodus für Routine-Protokolle:===
+
===configurationsmoe for Routing-protocolls:===
  
In diesem Modus kann man verschiedene Routing- Protokolle konfigurieren, damit der Datenaustausch zwischen den Routern funktioniert. Diese Variante ist eine Alternative zu statischen Routen.
+
This mode is necessary to config different routing-protocolls. So you have an alternative to static route. Example for possible protocolls: RIP, IGRP, EIGRP
Beispiele für mögliche Protokolle: RIP, EIGRP, IGRP
 
  
Der wichtigste Befehl in diesem Modus ist: '''network <IP- Adresse Subnetmaske>''' Dieser Befehl gibt das benachbarte Netz an und somit weiss der Router, wo er seine Pakete hinschicken muss.
+
The most importent command is '''network <IP-Address subnetmask>'''. Now the router know his neighbor an send the pakets.

Revision as of 12:44, 21 August 2008

Router- Modi und the acceptation:

Routerprompt:

Router> Usermode

Router# privilege mode

Router(config)# global configurationsmode

Router(config-if)# interface mode

Router(config-router)# configurationmode for routing-protocols

Definition und Möglichkeiten:

Usermode:

In this mode you get automatical after the connection with the router an the computer. The Usermode is the lowest mode and you can't make very mutch.



Type the command ? in and you will see all possible commands of this mode.


For example:

Router>? Exec commands:

       enable             Turn on privileged commands
       exit               Exit from the EXEC
       logout             Exit from the EXEC
       ping               Send echo messages
       show               Show running system information
       traceroute         Trace route to destination

acceptation of commands:

enable: This is the most important command of this mode. So you get in the privilege mode.

exit: With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.

logout: With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.

ping: The ping command send echo messages to interfaces and network device and so you can check the accessible of the devices. You need only the IP-Address from the Interface/device

show: The show command give you information of your system or config, but you need a furthermore syntax.

    You can find the syntax with show ?.


traceroute: With this command you can find the used route to your desitination out. That can be very helpfull for searching mistakes.

privilege mode:

You will get in this mode after typing enable in the usermode.
Now you have more access than in the usermode, you will see that after typing ? The most important command of this mode is configure , so you will get into the global configurationmode.


For example:

Router#?
Exec commands:

       Clear        Reset functions
       Configure    Enter configuration mode
       Copy         Copy from one file to another
       Debug        Debugging functions (see also ‘undebug‘)
       Disable      Turn off privileged commands
       Enable       Turn on privileged commands
       Erase        Erase a filesystem
       Exit         Exit from the EXEC
       Logout       Exit from the EXEC
       No           Disable debugging informations
       Ping         Send echo messages
       Reload       Halt and perform a cold restart
       Show         Show running system information
       Traceroute   Trace route to destination
       Undebug      Disable debugging functions (see also ‘debug‘)
       Write        Write running configuration to memory, network, or terminal


acceptation of commands:

Clear This command will delete your arp-cache or your cdp table, but you musst enter folowing syntax:

         Clear arp-cache  to delete the ARP-cache (Address Resolution Protocol). 
         Clear cdp  to delete your CPD table(Cisco Discovery Protocol).

Configure This is the most important command of this mode, type this command and you will get in the configurations mode. You can also type configure terminal or conf t Copy You can copy/save following:

         copy running-config You will save your actually config
         copy startup-config You will save your startup config.

Disable you will disable the enable commands

Enable You will activate the enable commands

Erase This command will delete your NVRAM. Your hole config will be lost!

Exit With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.

Logout With this command you can exit the router and with recurrence pushing of the RETURN- key you can enter the usermode.

No You will deactivate some configurations.

         No IP You will erase your ip settings.

Ping The ping command send echo messages to interfaces and network device and so you can check the accessible of the devices. You need only the IP-Address from the Interface/device. the syntax is:ping <Ziel IP- Adresse> Reload To restart your Switch or Router.

show: The show command give you information of your system or config, but you need a furthermore syntax.

    You can find the syntax with show ?.

Traceroute With this command you can find the used route to your desitination out. That can be very helpfull for searching mistakes.

Write You can do following:

         write terminal you will write your actually settings in the terminal.
         Write memory you will write your actally settings in the NVRAM.
         write erase DYou will erase your NVRAM! All settings and configurations will be lost!

global configurationmode:

From this mode, you can config your router/ switch an it's possible to join othe modi. for example: Interface serial 0/0 to configure the serial interface 0/0.


For example:

Router(config)#?
Configure commands:

       access-list:        Add an access list entry
       cdp:                Global CDP configuration subcommands
       enable:             Modify enable password parameters
       end:                Exit from configure mode
       exit:	          Exit from configure mode
       hostname:           Set system‘s network name
       Interface:          Select an interface to configure
       Ip:                 Global IP configuration subcommands
       Line:               Configure a terminal line
       No:                 Negate a command or set its defaults
       Router:             Enable a routing process
       Username:           Establish User Name Authentication


acceptation of commands:

access-list: You can create access- lists.

cdp: To get into the globale CDP configuration submode.

enable: You will set a password or change it.

end: You will leave the global configurationsmode.

exit: You will leave the global configurationsmode.

hostname: To give the device a name.

Interface: To config an interface Interface Ethernet <Interfacenumber> To edit a ethernet Interface.

         Interface GigabitEthernet <Interfacenumber> To config a GigabitEthernet Interface.
         Interface Serial <Interfacenumber> To config a serial Interface.

Ip: You can do following:

         ip access-list to edit an access-list
         ip dhcp pool <Poolname> To create a dhcp pool.
         ip dhcp excluded- address <IP- Adresse> to exluded an IP-Address from the dhcp pool.
         ip nat pool <Poolname> To create a nat pool
         ip nat inside to change a intern IP-Address to an extern.
         ip route <destinationaddress subnetmask Next Hop [metric]> To create a static route

Line: To change into the line-mode .

No: Verweigern Sie einen Befehl oder Standardwerte.

Router: To get into the configmode for routing protokolls. Type following in:

         router rip um rip als Routing Protokoll zu wählen.
         router eigrp um eigrp als Routing Protokoll zu definieren.

Username: You will create an user

Schnittstellenmodus:

In this mode you will configure your interface.


For example:

Router(config-if)#?

       Arp	Set arp type (arpa, probe, snap) or timeout
       Bandwidth	Set bandwidth informational parameter
       cdp	CDP interface subcommands
       delay	Specify interface throughput delay
       description	Interface specific description
       duplex	Configure duplex operation.
       Exit	Exit from interface configuration mode
       ip	Interface Internet Protocol config commands
       mac-address	Manually set interface MAC address
       no	Negate a command or set its defaults
       shutdown	Shutdown the selected interface
       speed	Configure speed operation.


acceptation of commands:

Arp To choose the arp type or timeoute .

Bandwidth Give a Interface a maximal bandwidth. Choose a parameter between 1 und 10000000 kbit per sec.

cdp To activate the CPD protokoll.

description To descripe the interface

duplex To configure following:

         duplex auto Set duplex of auto.
         duplex full set duplex of full.
         duplex half set duplex of half.

Exit Mto leave to interfacemode.

ip To edit the ip-address from this interface:

         ip address <IP- Address subnetmask> to attach a IP- Address and subnetmask.
         ip access-list to attach a Access List

mac-address to attach a MAC-Address

no to delete a command

shutdown to activate the interface

speed to configur the speed of this interface:

         10 Force set the speet to 10Mb/sec
         100 Force set the speet to100 Mbps .
         auto Enable set the speed auto.

configurationsmoe for Routing-protocolls:

This mode is necessary to config different routing-protocolls. So you have an alternative to static route. Example for possible protocolls: RIP, IGRP, EIGRP

The most importent command is network <IP-Address subnetmask>. Now the router know his neighbor an send the pakets.