JunOS | Comandos básicos Switching

Crear una VLAN 

edit vlans

set vlans {vlan-name} vlan-id {vlan-id}

Assignar VLAN en un puerto de un switch

edit interfaces

  set {ge-0/0/x} unit 0 family ethernet-switching vlan members {vlan-name}  

  set {ge-0/0/x} unit 0 family ethernet-switching port-mode access

Crear un puerto de trunk

edit interfaces

  set {ge-0/0/x} unit 0 family ethernet-switching port-mode trunk

  set {ge-0/0/x} unit 0 family ethernet-switching vlan members {all}

Crear SVI/RVI

edit interfaces

  set vlan unit {vlan-id} family inet address {ip-address/mask}

edit vlans

  set {vlan-name} vlan-id {vlan-id}

  set {vlan-name} l3-interface vlan.{vlan-id} 

Configurar una "Aggreggate interface" con LACP

edit interfaces

  set interfaces ae0 aggreggated-ether-options lacp active
  set interfaces ae0 unit 0 family ethernet-switching port-mode trunk
  set interfaces ae0 unit 0 family ethernet-switching vlan members all
  set interfaces ge-0/0/1 ether-options 802.3ad ae0
  set interfaces ge-0/0/2 ether-options 802.3ad ae0

Comprovar estado de los puertos (similar a "show ip interface brief" en Cisco)

show interface terse 

show interfaces {ge-0/0/x}

Mostrar comandos "set" de la configuracion

show | display set

Mostrar comandos que se instalarán antes de hacer commit en el switch

top

show | compare rollback 0



Comentarios

Entradas populares de este blog

EVE-NG: Instalación de EVE-NG

Fortigate: Capturar paquetes (Packet capture/sniffer)

Cisco ISE | Certificados SSL públicos para Guest Portal