
Network equipment, part 3: SNR, Cisco, and Eltex switches — CLI, VLAN, trunk, STP, and port protection
🌐 Machine-translated from Russian. Show original
⚙️ Commands and menu items are standard. Syntax varies between firmware models and versions: refer to documentation and check for changes on the test device or outside working hours.
In this part:
Why together#
SNR and Eltex switches use a command line in the style of Cisco IOS: modes, command structure, and logic are similar. Once you master one, it's easy to work with others — but there are differences in details, especially in the syntax of VLAN lists.
CLI modes#
switch> enable ! привилегированный режим
switch# configure terminal ! режим глобальной конфигурации
switch(config)# interface ... ! настройка интерфейса
switch(config-if)# exit
switch# show running-config ! текущая конфигурация
switch# write ! сохранить (у Cisco также copy running-config startup-config)
Basic setup#
hostname SW-CORE-01
username admin privilege 15 secret <сложный-пароль>
ip domain-name corp.example.kz
crypto key generate rsa modulus 2048 ! для SSH (у SNR и Eltex команда может отличаться)
line vty 0 15
transport input ssh
login local
no ip http server
VLAN#
vlan 10
name USERS
vlan 30
name CCTV
vlan 99
name MGMT
Management address in VLAN 99:
interface vlan 99
ip address 192.168.99.11 255.255.255.0
ip default-gateway 192.168.99.1
Access port#
interface GigabitEthernet0/5
description PC-Buhgalteriya-01
switchport mode access
switchport access vlan 10
spanning-tree portfast
spanning-tree bpduguard enable
Interface names differ: Cisco — GigabitEthernet0/5 or Gi1/0/5, SNR — Ethernet1/0/5, Eltex — gigabitethernet1/0/5. See show interfaces status or equivalent.
Trunk#
interface GigabitEthernet0/24
description Uplink-to-Core
switchport mode trunk
switchport trunk allowed vlan 10,20,30,40,99
⚠️ In SNR , VLAN lists for firmware versions are listed separated by semicolons (
10;20;30), while in Cisco — separated by commas. Adding VLANs to an existing list in Cisco isswitchport trunk allowed vlan add 50: withoutaddthe list will be replaced entirely, and communication across the other VLANs will be lost.
Spanning Tree#
spanning-tree mode rapid-pvst ! Cisco; у SNR/Eltex — spanning-tree mode rstp или mstp
spanning-tree vlan 1-4094 priority 4096 ! корневой — коммутатор ядра
Port protection#
- Port security — limit on the number of MAC addresses on a port:
interface GigabitEthernet0/5
switchport port-security
switchport port-security maximum 2
switchport port-security violation restrict
- DHCP Snooping — banning "foreign" DHCP servers: trusted ports — only uplinks to the router.
- Storm control — limiting broadcast traffic on user ports.
- Unused ports:
shutdownand conversion to a separate VLAN.
Useful show commands#
| Team (Cisco) | What | shows
| --- | --- |
| show vlan brief | VLANs and | ports
| show interfaces trunk | trunk ports and allowed VLANs |
| show mac address-table | where the device is located via MAC |
| show spanning-tree | role of STP ports, root bridge, |
| show logging | event log |
SNR and Eltex have similar commands; some have different names — use ? and autocomplete via Tab.
Backup#
copy running-config tftp: or export configuration via SCP/SFTP, storage in version control. Save the configuration after each change — otherwise, after reboot, the settings will disappear.
Comments · 0
No comments yet.Sign in to comment, rate and see all comments.