Sei sulla pagina 1di 11

Switches HUAWEI

Acceso remoto vía SSH o Telnet


Creación de usuarios locales a través AAA
[Switch]aaa
[Switch-aaa] local-user kim password cipher *************
[Switch-aaa] local-user kim service-type telnet terminal ssh http
[Switch-aaa] local-user admin password cipher ***************
[Switch-aaa] local-user admin privilege level 15
[Switch-aaa] local-user admin service-type telnet terminal ssh http
[Switch-aaa] quit

Establecemos el modo de autenticación por la Consola 0, y las líneas Vty de 0 a 4


[Switch] user-interface con 0
[Switch] authentication-mode aaa
[Switch] user-interface vty 0 4
[Switch] authentication-mode aaa
[Switch] user-interface vty 16 20

Asignamos IP al switch
[Switch] interface Vlanif 1
[Switch -Vlanif1] ip address 1.1.1.1 255.255.255.0 (255.255.255.0 = 24 )
[Switch -Vlanif1] undo shutdown

Creando Vlans
[Switch] vlan 666
[Switch-vlan666] description FIEE

Para mostrar la configuración actual


[Switch] display current configuration (similar al show running-config)

Para grabar la configuración


[Switch-vlan666] quit
<Switch> save all

Probemos conectarnos al 1.1.1.1 desde la red

Login authentication

Username:admin
Password: *******
Info: The max number of VTY users is 10, and the number
of current VTY users on line is 1.
The current login time is 2018-11-30 00:47:35.
<Switch>system-view
Enter system view, return user view with Ctrl+Z.
[Switch]

Habilitar SSH para un usuario en particular

[Switch] stelnet server enable


[Switch] ssh user kim
[Switch] ssh user kim authentication-type all
[Switch] ssh user kim service-type stelnet
Asignación de puerto a vlan
[Switch ] interface GigabitEthernet0/0/9
[Switch-GigabitEthernet0/0/9] port link-type access
[Switch-GigabitEthernet0/0/9] port default vlan 666

Establecer un puerto troncal


[Switch ] interface GigabitEthernet0/0/28
[Switch-GigabitEthernet0/0/28] port link-type trunk
[Switch-GigabitEthernet0/0/28] port trunk allow-pass vlan 2 to 4094
[Switch-GigabitEthernet0/0/28] description TRUNKULITO

Asignarle nombre al Switch


[Switch ] sysname CONMUTADOR

Buscar una MAC


[CONMUTADOR] display mac-address | include 0017-596f-4240
-------------------------------------------------------------------------------
MAC Address VLAN/VSI Learned-From Type
-------------------------------------------------------------------------------
0017-596f-4240 666/- GE0/0/28 dynamic

[CONMUTADOR] display lldp neighbor brief


Local Intf Neighbor Dev Neighbor Intf Exptime
GE0/0/7 - 0022-4db0-e862 2774
GE0/0/22 - dc4a-3e43-4c5f 2858

[CONMUTADOR] display stp vlan 666


ProcessId InstanceId Port Role State
----------------------------------------------------------------------
0 0 GigabitEthernet0/0/24 DESI FORWARDING
0 0 GigabitEthernet0/0/28 ROOT FORWARDING

[CONMUTADOR] display transceiver diagnosis interface GigabitEthernet 0/0/28

Port GigabitEthernet0/0/28 transceiver diagnostic information:

Parameter Current Low Alarm High Alarm


Type Value Threshold Threshold Status
------------- --------- --------- ---------- --------
TxPower(dBm) -5.83 -8.82 -2.82 normal
RxPower(dBm) -6.29 -19.00 -3.00 normal
Current(mA) 15.94 3.47 47.80 normal
Temp.(C) 48.59 -10.00 80.00 normal
Voltage(V) 3.28 2.85 3.70 normal
[CONMUTADOR]display vlan
The total number of vlans is : 7
-------------------------------------------------------------------------------------------------------------------
U: Up; D: Down; TG: Tagged; UT: Untagged;
MP: Vlan-mapping; ST: Vlan-stacking;
#: ProtocolTransparent-vlan; *: Management-vlan;
--------------------------------------------------------------------------------------------------------------------
VID Type Ports
--------------------------------------------------------------------------------------------------------------------
1 common UT:GE0/0/1(D) GE0/0/24(U) GE0/0/25(D) GE0/0/26(D)
GE0/0/27(D) GE0/0/28(U)
23 common TG:GE0/0/1(D) GE0/0/24(U) GE0/0/25(D) GE0/0/26(D)
GE0/0/27(D) GE0/0/28(U)
130 common TG:GE0/0/1(D) GE0/0/24(U) GE0/0/25(D) GE0/0/26(D)
GE0/0/27(D) GE0/0/28(U)
131 common UT:GE0/0/2(U) GE0/0/3(U) GE0/0/4(D) GE0/0/5(U)
GE0/0/6(U) GE0/0/7(U) GE0/0/8(U) GE0/0/9(U)
GE0/0/10(D) GE0/0/11(D) GE0/0/12(D) GE0/0/13(U)
GE0/0/14(U) GE0/0/15(D) GE0/0/16(U) GE0/0/17(D)
GE0/0/18(D) GE0/0/19(U) GE0/0/20(U) GE0/0/21(D)
GE0/0/22(U) GE0/0/23(U)
TG:GE0/0/1(D) GE0/0/24(U) GE0/0/25(D) GE0/0/26(D)
GE0/0/27(D) GE0/0/28(U)
132 common TG:GE0/0/1(D) GE0/0/24(U) GE0/0/25(D) GE0/0/26(D)
GE0/0/27(D) GE0/0/28(U)
133 common TG:GE0/0/1(D) GE0/0/24(U) GE0/0/25(D) GE0/0/26(D)
GE0/0/27(D) GE0/0/28(U)
134 common TG:GE0/0/1(D) GE0/0/24(U) GE0/0/25(D) GE0/0/26(D)
GE0/0/27(D) GE0/0/28(U)

VID Status Property MAC-LRN Statistics Description


--------------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
23 enable default enable disable FIEE
130 enable default enable disable VLAN-VOZ-FIE
131 enable default enable disable FIEE-Laboratorios
132 enable default enable disable FIEE-Computo
133 enable default enable disable FIEE-Biblioteca
134 enable default enable disable FIEE-Estudiantes
Resetear el Password de la Consola
Switch Quidway 5700

Este método limpia el password de la consola de la BootROM y cambia el password de la consola.


Desde el BootROM es posible limpiar el password de la consola, a fin de que no se te solicite.
Cuando el switch arranca, podrás acceder con la configuración cargada y podrás modificar el password e
inmediatamente grabarla.
El password Admin@huawei.com por default.
http://gponsolution.com/huawei-switch-console-password-reset.html

Potrebbero piacerti anche