Pull to refresh

Comments 9

UFO just landed and posted this here
А можно пример листинга конфига show configuration или пример полного конфига в тхт?
Насколько читаемо, интересно.
Ниже вывод команды show configuration. Конфиг чистил, это лишь пример, работоспособность и 100% аналогию с реальным оборудованием не обещаю. Но в целом, это полный конфиг.

Пример полного конфига
ExtremeXOS
Copyright (C) 1996-2016 Extreme Networks. All rights reserved.
This product is protected by one or more US patents listed at http://www.extremenetworks.com/patents along with their foreign counterparts.
==============================================================================

Press the or '?' key at any time for completions.
Remember to save your configuration changes.

Core-1.1 # sh conf
#
# Module devmgr configuration.
#
configure snmp sysName "Core-1"
configure snmp sysContact "Floor1"
configure timezone 180 autodst
configure sys-recovery-level switch reset

#
# Module vlan configuration.
#
configure vlan default delete ports all
configure vr VR-Default delete ports 1-64
configure vr VR-Default add ports 1-64
configure vlan default delete ports 1-64
enable jumbo-frame ports all
create vlan "Firewall-69"
configure vlan Firewall-69 tag 69
create vlan "Internet-189"
configure vlan Internet-189 tag 189
create vlan "IP_Phones-288"
configure vlan IP_Phones-288 tag 288
create vlan "ISC-3010"
configure vlan ISC-3010 tag 3010
create vlan "mgmt-11"
configure vlan mgmt-11 tag 11
configure ports 1 display-string SW_1FL
configure ports 1 description-string "SWITCH_EDGE-1FL"
configure ports 1 auto off speed 10000 duplex full
configure ports 2 display-string SW_5FL
configure ports 2 description-string "SWITCH-EDGE-5FL"
configure ports 2 auto off speed 10000 duplex full
configure ports 3 display-string SW_4FL
configure ports 3 description-string "SWITCH-EDGE-4FL"
configure ports 3 auto off speed 10000 duplex full
configure ports 4 auto off speed 10000 duplex full
configure ports 5 auto off speed 10000 duplex full
configure ports 6 auto off speed 10000 duplex full
configure ports 7 auto off speed 10000 duplex full
configure ports 8 auto off speed 10000 duplex full
configure ports 9 auto off speed 10000 duplex full
configure ports 10 auto off speed 10000 duplex full
configure ports 11 auto off speed 10000 duplex full
configure ports 12 auto off speed 10000 duplex full
configure ports 13 auto off speed 10000 duplex full
configure ports 14 auto off speed 10000 duplex full
configure ports 15 auto off speed 10000 duplex full
configure ports 16 auto off speed 10000 duplex full
configure ports 17 auto off speed 10000 duplex full
configure ports 18 auto off speed 10000 duplex full
configure ports 19 auto off speed 10000 duplex full
configure ports 20 auto off speed 10000 duplex full
configure ports 21 auto off speed 10000 duplex full
configure ports 22 auto off speed 10000 duplex full
configure ports 23 auto off speed 10000 duplex full
configure ports 24 auto off speed 10000 duplex full
configure ports 25 auto off speed 10000 duplex full
configure ports 26 auto off speed 10000 duplex full
configure ports 27 auto off speed 10000 duplex full
configure ports 28 auto off speed 10000 duplex full
configure ports 29 auto off speed 10000 duplex full
configure ports 30 auto off speed 10000 duplex full
configure ports 31 auto off speed 10000 duplex full
configure ports 32 auto off speed 10000 duplex full
configure ports 33 auto off speed 10000 duplex full
configure ports 34 auto off speed 10000 duplex full
configure ports 35 auto off speed 10000 duplex full
configure ports 36 auto off speed 10000 duplex full
configure ports 37 auto off speed 10000 duplex full
configure ports 38 auto off speed 10000 duplex full
configure ports 39 auto off speed 10000 duplex full
configure ports 40 auto off speed 10000 duplex full
configure ports 41 auto off speed 10000 duplex full
configure ports 42 auto off speed 10000 duplex full
configure ports 43 auto off speed 10000 duplex full
configure ports 44 auto off speed 10000 duplex full
configure ports 45 auto off speed 10000 duplex full
configure ports 46 auto off speed 10000 duplex full
configure ports 47 auto off speed 10000 duplex full
configure ports 48 auto off speed 10000 duplex full
disable port 49
disable port 50
enable sharing 1 grouping 1 algorithm address-based L2 lacp
enable sharing 2 grouping 2 algorithm address-based L2 lacp
enable sharing 3 grouping 3 algorithm address-based L2 lacp
enable sharing 4 grouping 4 algorithm address-based L2 lacp
enable sharing 47 grouping 47-48 algorithm address-based L2 lacp
enable sharing 5 grouping 5 algorithm address-based L2 lacp
configure vlan Firewall-69 add ports 45-47 tagged
configure vlan Internet-189 add ports 2-3,45-47 tagged
configure vlan IP_Phones-288 add ports 1-5,47 tagged
configure vlan ISC-3010 add ports 47 tagged
configure vlan mgmt-11 add ports 1-5,34,45-47 tagged
configure vlan ISC-3010 ipaddress 10.255.255.1 255.255.255.252
configure vlan mgmt-11 ipaddress 172.16.1.1 255.255.255.0
enable ipforwarding vlan mgmt-11
configure vlan IP_Phones-288 ipaddress 192.168.28.1 255.255.252.0
enable ipforwarding vlan IP_Phones-288

#
# Module mcmgr configuration.
#

#
# Module otm configuration.
#

#
# Module fdb configuration.
#

#
# Module rtmgr configuration.
#
configure iproute add 10.0.8.0 255.255.255.0 10.0.0.1 protection ping
configure iproute add 10.0.3.0 255.255.255.0 10.0.0.2

#
# Module policy configuration.
#

#
# Module aaa configuration.
#
configure account admin encrypted "$5$74vb7G$45vR57.Piwc0zTqO54aT.vjhwuF4mLKZ6KgMODZsvHD"

#
# Module acl configuration.
#

#
# Module bfd configuration.
#

#
# Module bgp configuration.
#

#
# Module cfgmgr configuration.
#
enable cli-config-logging

#
# Module dosprotect configuration.
#

#
# Module dot1ag configuration.
#

#
# Module eaps configuration.
#

#
# Module edp configuration.
#

#
# Module elrp configuration.
#
enable elrp-client
configure elrp-client periodic mgmt-11 ports all interval 2 log disable-port ingress duration 180
configure elrp-client periodic IP_Phones-288 ports all interval 2 log disable-port ingress duration 180
configure elrp-client periodic Firewall-69 ports all interval 2 log disable-port ingress duration 180
configure elrp-client periodic Internet-189 ports all interval 2 log disable-port ingress duration 180
configure elrp-client disable-port exclude 47

#
# Module ems configuration.
#

#
# Module epm configuration.
#

#
# Module erps configuration.
#

#
# Module esrp configuration.
#

#
# Module ethoam configuration.
#

#
# Module etmon configuration.
#

#
# Module exsshd configuration.
#

#
# Module hal configuration.
#

#
# Module idMgr configuration.
#

#
# Module ipSecurity configuration.
#

#
# Module ipfix configuration.
#

#
# Module isis configuration.
#

#
# Module lacp configuration.
#

#
# Module lldp configuration.
#

#
# Module mrp configuration.
#

#
# Module msdp configuration.
#

#
# Module netLogin configuration.
#

#
# Module netTools configuration.
#
configure bootprelay add 192.168.33.1 vr VR-Default
enable bootprelay ipv4 vlan Firewall-69
enable bootprelay ipv4 vlan IP_Phones-288
enable bootprelay ipv4 vlan mgmt-11

#
# Module ntp configuration.
#
enable ntp
enable ntp vlan mgmt-11
configure ntp local-clock stratum 5
configure ntp server add 192.168.6.252

#
# Module ospf configuration.
#
configure ospf routerid 192.168.255.254
enable ospf
configure ospf add vlan Firewall-69 area 0.0.0.0
configure ospf add vlan IP_Phones-288 area 0.0.0.0 passive
configure ospf add vlan mgmt-11 area 0.0.0.0 passive

#
# Module ospfv3 configuration.
#

#
# Module pim configuration.
#

#
# Module rip configuration.
#

#
# Module ripng configuration.
#


#
# Module snmpMaster configuration.
#
disable snmpv3 community "private"

#
# Module stp configuration.
#

#
# Module techSupport configuration.
#

#
# Module telnetd configuration.
#

#
# Module tftpd configuration.
#

#
# Module thttpd configuration.
#

#
# Module twamp configuration.
#

#
# Module vmt configuration.
#

#
# Module vrrp configuration.
#
create vrrp vlan mgmt-11 vrid 101
create vrrp vlan IP_Phones-288 vrid 248
configure vrrp vlan mgmt-11 vrid 101 add 172.16.1.10
configure vrrp vlan IP_Phones-288 vrid 248 add 192.168.28.10
enable vrrp vlan mgmt-11 vrid 101
enable vrrp vlan IP_Phones-288 vrid 248

#
# Module vsm configuration.
#
configure mlag ports reload-delay 40
enable mlag port reload-delay
create mlag peer "mlag1"
configure mlag peer "mlag1" ipaddress 10.255.255.2 vr VR-Default
enable mlag port 1 peer "mlag1" id 100
enable mlag port 2 peer "mlag1" id 200
enable mlag port 3 peer "mlag1" id 300
enable mlag port 4 peer "mlag1" id 400
enable mlag port 5 peer "mlag1" id 5

Core-1.2 #
Core-1.2 #
Core-1.2 #


Ощущение что автор просто набрал кусков конфига/команд из разных мест и вывалил их здесь.
Создаем VLAN:
create vlan My_Vlan tag 5
Или так, причем именно так будет отображено в конфиге:
create vlan My_Vlan1
configure vlan My_Vlan tag 10

Или единица во втором примере пропущена, или там же она лишняя, но тогда становится не ясно нет ли ошибки в номере VLAN, может он там тоже должен быть 5, как в первом примере? Или это мы создаем разные VLAN?
configure vlan 125 ipaddress 192.168.125.1/24
После этого необходимо применить данную команду, иначе vlan останется немаршрутизируемым:
enable ipforwarding vlan 10-50

Вешаем адрес на влан125, а маршрутизируемыми делаем другие? Может лучше все команды давать придерживаясь легенды будто мы конфигурим один коммутатор, а не вставляя в них данные «от балды»?
Или единица во втором примере пропущена, или там же она лишняя, но тогда становится не ясно нет ли ошибки в номере VLAN, может он там тоже должен быть 5, как в первом примере? Или это мы создаем разные VLAN?


Да, спасибо, поправил. В первом и втором случае мы создаем разные vlan.

Вешаем адрес на влан125, а маршрутизируемыми делаем другие? Может лучше все команды давать придерживаясь легенды будто мы конфигурим один коммутатор, а не вставляя в них данные «от балды»?

Тоже правильно, добавил, спасибо.
Еще вам сниппет в копилку:
Создаем vlan, помещаем в него 20 порт:
create vlan "VOIP"
configure vlan VOIP tag 10
configure vlan VOIP add ports 20 tagged
enable ipforwarding vlan VOIP

Автоматическое перемещение телефона в vlan VOIP на основе lldp:
enable lldp ports 20
configure lldp port 20 advertise system-capabilities
configure lldp port 20 advertise vendor-specific med capabilities
configure lldp port 20 advertise vendor-specific med power-via-mdi
configure lldp port 20 advertise vendor-specific dot1 port-protocol-vlan-id vlan VOIP
configure lldp port 20 advertise vendor-specific dot1 vlan-name vlan VOIP
configure lldp port 20 advertise vendor-specific med policy application voice vlan VOIP dscp 46


Еще вы не указали, что ssh в базовой поставке не идет. Модуль ssh надо скачивать под вашу версию ExOS с сайта Extreme.
Про LLDP действительно так, думал написать об этом, но решил, что в данной статье это не нужно, пожалуй, добавлю все-таки.

Еще вы не указали, что ssh в базовой поставке не идет. Модуль ssh надо скачивать под вашу версию ExOS с сайта Extreme.

Не совсем так: с версий 16.2 и 21.1 ssh-модуль идет сразу с ОС, дополнительно скачивать ничего не надо.
В ходе тестов он показал хорошие результаты (скорость отключения порта при петле и др.)

Было бы полезно привести пример часто используемых команд для проверки статистики соединения.
Как, например, в Alcatel OmniSwitch:
interfaces 1/1 tdr-test-start
show interfaces 1/1 tdr-statistics

С последующей расшифровкой вывода.
Начиная с версии EXOS 21.1 присутствует скрипт — аналог TDR:

# run script cablediag.py -h
usage: cablediag [-h] [-s SLOT [SLOT ...]] [-p PORT [PORT ...]] [-d]

optional arguments:
-h, --help show this help message and exit
-s SLOT [SLOT ...], --slot SLOT [SLOT ...]
Stacking slot number, e.g. 1,2 or 1-5
-p PORT [PORT ...], --port PORT [PORT ...]
Selected port number, e.g. 3,4,5 or 3-5
-d, --debug Enable debug

E.g.
# run script cablediag.py -p 2
cablediag: 1.0.0.1

Collecting port cable diagnostic information may take a moment…

port 2: cable (4 pairs, length ± 10 meters)
pair A Ok, length 0 meters
pair B Ok, length 0 meters
pair C Ok, length 0 meters
pair D Ok, length 0 meters

E.g.
# run script cablediag.py
cablediag: 1.0.0.1

Collecting port cable diagnostic information may take a moment…

port 1: cable (4 pairs, length ± 10 meters)
pair A Open, length 0 meters
pair B Open, length 0 meters
pair C Open, length 0 meters
pair D Open, length 0 meters
port 2: cable (4 pairs, length ± 10 meters)
pair A Ok, length 0 meters
pair B Ok, length 0 meters
pair C Ok, length 0 meters
pair D Ok, length 0 meters
port 3: cable (4 pairs, length ± 10 meters)
pair A Open, length 0 meters
pair B Open, length 0 meters
pair C Open, length 0 meters
pair D Open, length 0 meters


port 23: cable (4 pairs, length ± 10 meters)
pair A Open, length 0 meters
pair B Open, length 0 meters
pair C Open, length 0 meters
pair D Open, length 0 meters
port 24: cable (4 pairs, length ± 10 meters)
pair A Open, length 0 meters
pair B Open, length 0 meters
pair C Open, length 0 meters
pair D Open, length 0 meters
CABLEdiag: ERROR: port 25: Feature unavailable
CABLEdiag: ERROR: port 26: Feature unavailable
CABLEdiag: ERROR: port 27: Feature unavailable
CABLEdiag: ERROR: port 28: Feature unavailable
CABLEdiag: ERROR: port 29: Feature unavailable
CABLEdiag: ERROR: port 30: Feature unavailable
CABLEdiag: ERROR: port 31: Feature unavailable
CABLEdiag: ERROR: port 32: Feature unavailable
CABLEdiag: ERROR: port 33: Feature unavailable
CABLEdiag: ERROR: port 34: Feature unavailable[/code]
Sign up to leave a comment.

Articles