Nortel 5510 CLI Basics: Unterschied zwischen den Versionen

Aus xinux wiki
Wechseln zu: Navigation, Suche
(Logs auf anderem Rechner speichern lassen)
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 11: Zeile 11:
 
*5510-24T>enable
 
*5510-24T>enable
 
*5510-24T#
 
*5510-24T#
 
 
=show-Befehle=
 
=show-Befehle=
 
==running-config==
 
==running-config==
Zeile 70: Zeile 69:
 
te, U=Unresolved Route, N=Not in HW
 
te, U=Unresolved Route, N=Not in HW
 
</pre>
 
</pre>
 +
=Firmware Upgrade=
 +
==DIAG (FW) Upgrade==
 +
From the console, Ctrl-Y, en <enter> (enable)
 +
Via USB:  download usb diag 4500_53003_diag.bin
 +
Via TFTP: download address x.x.x.x diag 4500_53003_diag.bin
 +
Firmware will upgrade and switch/stack will reboot.
 +
==IMAGE (SW) Upgrade==
 +
From the console, Ctrl-Y, en <enter> (enable)
 +
Via USB:  download usb image 4000_573031s.img
 +
Via TFTP: download address x.x.x.x image 4000_573031s.img
 +
Software will upgrade and switch/stack will reboot, upgrade, and reboot again.
 +
 +
  
 
=Konfigurieren=
 
=Konfigurieren=

Aktuelle Version vom 10. Juli 2019, 15:46 Uhr

Zugriff

  • Zugriff über Telnet auf Port 23
    • telnet <IP oder FQDN>

Konfigurations-Menü

Nortel-konfig-screen-1.png

Zugriff auf die Konsole

Nortel-konfig-screen-2.png

enable

  • 5510-24T>enable
  • 5510-24T#

show-Befehle

running-config

  • show running-config
5510-24T#show running-config                
! Embedded ASCII Configuration Generator Script
! Model = Ethernet Routing Switch 5510-24T
! Software version = v6.2.0.008
!
! Displaying only parameters different to default
!================================================
enable
configure terminal
...
...
...

interfaces

  • show interfaces
              Status                    Auto                       Flow  
Port Trunk Admin   Oper Link LinkTrap Negotiation Speed    Duplex Control
---- ----- ------- ---- ---- -------- ----------- -------- ------ -------
1          Enable  Down Down Enabled  Enabled     
2          Enable  Down Down Enabled  Enabled     
3          Enable  Down Down Enabled  Enabled     
4          Enable  Down Down Enabled  Enabled     
5          Enable  Down Down Enabled  Enabled     
...
...
...

vlan

  • show vlan
Id  Name                 Type     Protocol         PID      Active IVL/SVL Mgmt
--- -------------------- -------- ---------------- -------- ------ ------- ----
1   VLAN #1              Port     None             0x0000   Yes    IVL     Yes
	Port Members: 1-6
2   VLAN #2              Port     None             0x0000   Yes    IVL     No
	Port Members: 7-12

ip route

  • show ip route
===============================================================================
                                        Ip Route
===============================================================================
DST             MASK            NEXT            COST    VLAN PORT PROT TYPE PRF
-------------------------------------------------------------------------------
Total Routes: 0
-------------------------------------------------------------------------------
TYPE Legend:
I=Indirect Route, D=Direct Route, A=Alternative Route, B=Best Route, E=Ecmp Rou
te, U=Unresolved Route, N=Not in HW

Firmware Upgrade

DIAG (FW) Upgrade

From the console, Ctrl-Y, en <enter> (enable)
Via USB:  download usb diag 4500_53003_diag.bin 
Via TFTP: download address x.x.x.x diag 4500_53003_diag.bin
Firmware will upgrade and switch/stack will reboot.

IMAGE (SW) Upgrade

From the console, Ctrl-Y, en <enter> (enable)
Via USB:  download usb image 4000_573031s.img 
Via TFTP: download address x.x.x.x image 4000_573031s.img
Software will upgrade and switch/stack will reboot, upgrade, and reboot again.


Konfigurieren

  • 5510-24T#configure terminal
 Enter configuration commands, one per line.  End with CNTL/Z.
 5510-24T(config)#

Allgemeine Konfiguration (IP, Netmask, Gateway)

  • ip address switch x.x.x.x netmask y.y.y.y default-gateway z.z.z.z

Hostname

5510-24T(config)#snmp-server name 5510-24G  
5510-24G(config)#snmp-server name 5510-24T 
5510-24T(config)#

Authentication local

  • per Default heißen die Usernamen für den Login "RO" für die "Read-Only"-Ebene und "RW" für die "Read/Write"-Ebene
  • Um das zu ändern den folgenden Befehl eingeben:
    • username <username> <new password> ro/rw

alternativ:

  • cli password read-write/read-only <password>

Passwort-Abfrage aktivieren

  • cli password telnet local

Passwort-Abfrage deaktivieren

  • cli password telnet none

Authentication Serial-Port

Passwort-Abfrage aktivieren

  • cli password serial local

Passwort-Abfrage deaktivieren

  • cli password serial none

VLAN

ip routing aktivieren

  • ip routing

Create VLAN

  • vlan create <Nummer> name "<Name>" type port

Configure VLAN

  • interface vlan <Nummer>
  • ip address 0.0.0.0 255.255.255.255
  • exit

VLAN einem oder mehreren Ports zuweißen

  • vlan members add <vlan-nummer> <Portnummer>

DHCP-Relay

  • Zunächst einen DHCP-Server einrichten

dhcp-relay aktivieren

  • 5510-24T# configure terminal
  • 5510-24T(config)# interface vlan 55
  • 5510-24T(config-if)# ip dhcp-relay

dhcp-server eintragen

  • 5510-24T(config)# ip dhcp-relay fwd-path <IP-Vlan> <IP-DHCP-Server> enable

SNMP

SNMP-Community benennen und SNMP aktivieren

für read-only Ebene:

  • snmp-server community <community-name> ro

für read-write Ebene:

  • snmp-server community <community-name> rw

Debugging

enable logging

  • logging enable

Log anzeigen lassen

  • show logging
Type Time                          Idx  Src Message
---- ----------------------------- ---- --- -------
S    00:00:00:00                   1    NVR Error loading primary configuration
 block 1
C    2106-02-06 06:28:15 GMT+00:00 2    NVR Front-panel UI requested stack rese
t
I    00:00:00:18                   3        Web server starts service on port 8
0.
I    00:00:02:00                   4        Cold Start Trap
I    00:00:02:00                   5        Trap:  topologyChange
I    00:00:02:16                   6        Link Up Trap for Port: 7
I    00:00:02:24                   7        Link Up Trap for Port: 23
I    00:00:02:25                   8        Link Up Trap for MLT/LAG 1 (ifIndex
): 8193
I    00:00:02:26                   9        Trap:  bsnConfigurationSavedToNvram
I    00:00:05:00                   10       ECMP features disabled due to inade
quate license.
I    00:00:05:27                   11       Trap:  bsnConfigurationSavedToNvram
I    00:02:27:02                   12       #1 Successful connection from IP ad
dress: 192.168.55.1
I    00:02:27:03                   13       #1 Session opened from IP address: 
192.168.55.1, access mode: no security
  • show logging sort-reverse
Type Time                          Idx  Src Message
---- ----------------------------- ---- --- -------
I    00:02:27:03                   13       #1 Session opened from IP address: 
192.168.55.1, access mode: no security
I    00:02:27:02                   12       #1 Successful connection from IP ad
dress: 192.168.55.1
I    00:00:05:27                   11       Trap:  bsnConfigurationSavedToNvram
I    00:00:05:00                   10       ECMP features disabled due to inade
quate license.
I    00:00:02:26                   9        Trap:  bsnConfigurationSavedToNvram
I    00:00:02:25                   8        Link Up Trap for MLT/LAG 1 (ifIndex
): 8193
I    00:00:02:24                   7        Link Up Trap for Port: 23
I    00:00:02:16                   6        Link Up Trap for Port: 7
I    00:00:02:00                   5        Trap:  topologyChange
I    00:00:02:00                   4        Cold Start Trap
I    00:00:00:18                   3        Web server starts service on port 8
0.
C    2106-02-06 06:28:15 GMT+00:00 2    NVR Front-panel UI requested stack rese
t
S    00:00:00:00                   1    NVR Error loading primary configuration

Log-Konfiguration anzeigen

  • show logging config
Event Logging: Enabled
Volatile Logging Option: Overwrite
Event Types To Log: Critical, Serious, Informational
Event Types To Log To NV Storage: Critical, Serious
Remote Logging: Disabled
Remote Logging Address: 0.0.0.0
Secondary Remote Logging Address: 0.0.0.0
Event Types To Log Remotely: None

Log filtern

  • show logging critical
Type Time                          Idx  Src Message
---- ----------------------------- ---- --- -------
C    2106-02-06 06:28:15 GMT+00:00 2    NVR Front-panel UI requested stack reset
  • show logging informational
Type Time                          Idx  Src Message
---- ----------------------------- ---- --- -------
I    00:00:00:18                   3        Web server starts service on port 8
0.
I    00:00:02:00                   4        Cold Start Trap
I    00:00:02:00                   5        Trap:  topologyChange
I    00:00:02:16                   6        Link Up Trap for Port: 7
I    00:00:02:24                   7        Link Up Trap for Port: 23
I    00:00:02:25                   8        Link Up Trap for MLT/LAG 1 (ifIndex
): 8193
I    00:00:02:26                   9        Trap:  bsnConfigurationSavedToNvram
I    00:00:05:00                   10       ECMP features disabled due to inade
quate license.
I    00:00:05:27                   11       Trap:  bsnConfigurationSavedToNvram
I    00:02:27:02                   12       #1 Successful connection from IP ad
dress: 192.168.55.1
I    00:02:27:03                   13       #1 Session opened from IP address: 
192.168.55.1, access mode: no security
  • show logging serious
Type Time                          Idx  Src Message
---- ----------------------------- ---- --- -------
S    00:00:00:00                   1    NVR Error loading primary configuration
 block 1

Logging-Level ändern

  • logging level ?
 critical       Critical event
 informational  Informational message
 none           No events stored in volatile storage
 serious        Serious event message

Logs auf anderem Rechner speichern lassen

  • logging remote address X.X.X.X
  • logging remote enable
    • Zugriff über Syslog des Rechners mit der IP X.X.X.X