Пример типовой конфигурации L2-Switch EcoSwitch Documentation / Конфигурирование и настройка L2-Switch / Пример типовой конфигурации L2-Switch
Ниже приведен пример типовой конфигурации устройства.
:~$ ssh admin@125.201.113.103
Password:
------ L2-Switch CLI ------
l2-switch@admin> show rdp-firmware boot-image
boot-image {
current A
A {
active true
stable false
version {
major 3
minor 2
release 5
bugfix 0
revision 3914
str 3.2.5.0.3914
}
tries 1
}
B {
active false
stable false
version {
major 0
minor 0
release 0
bugfix 0
revision 0
str 0.0.0.0.0
}
tries 255
}
Factory {
active true
stable true
}
}
l2-switch@admin> configure
[edit]
l2-switch@admin# show | view set
set tacacs tacacsplus server TACACS_SERVER_1 address 192.168.100.100 password-auth-protocol TACACS-login port 1234 shared-secret 12345 timeout 10
set lag label LAG-1 members p1-1
set lag label LAG-1 members p1-1 priority <INT>
set lag label LAG-1 members p1-2
set lag label LAG-1 members p1-2 priority <INT>
set lag label LAG-1 members p1-3
set lag label LAG-1 members p1-3 priority <INT>
set lag label LAG-1 lacp enable
set lag label LAG-1 lacp mode active
set lag label LAG-1 lacp rate fast
set lag system-id 192.168.255.1
set lag system-priority 1
set lag system-id 192.168.255.1
set lag system-priority 1
set logger logging-settings log-level debug
set logger logging-settings servers 10.210.9.144
set logger logging-settings servers 10.210.9.144 port 12345
set logger logging-settings servers 10.210.9.144 protocol udp
set mng-if addresses default
set mng-if addresses default ip 10.210.9.145
set mng-if addresses default prefix 24
set mng-if hostname l2-switch
set mng-if routes default
set mng-if routes default destination 0.0.0.0
set mng-if routes default gateway 10.210.9.2
set mng-if routes default prefix 0
set ntp common sync-settings samples 4
set ntp common sync-settings sync-period 10
set port label p12-1
set port label p12-1 description "LAN"
set port label p12-1 lane 1
set port label p12-1 mtu 9000
set port label p12-1 number 12
set port label p12-1 speed 10G
set port label p12-2
set port label p12-2 description "Filter1LAN"
set port label p12-2 lane 2
set port label p12-2 mtu 9000
set port label p12-2 number 12
set port label p12-2 speed 10G
set port label p12-3
set port label p12-3 description "Filter2LAN"
set port label p12-3 lane 3
set port label p12-3 mtu 9000
set port label p12-3 number 12
set port label p12-3 speed 10G
set port label p12-4
set port label p12-4 description "Filter3LAN"
set port label p12-4 lane 4
set port label p12-4 mtu 9000
set port label p12-4 number 12
set port label p12-4 speed 10G
set port label p32-1
set port label p32-1 description "WAN"
set port label p32-1 lane 1
set port label p32-1 mtu 9000
set port label p32-1 number 32
set port label p32-1 speed 10G
set port label p32-2
set port label p32-2 description "FILTER1_WAN"
set port label p32-2 lane 2
set port label p32-2 mtu 9000
set port label p32-2 number 32
set port label p32-2 speed 10G
set port label p32-3
set port label p32-3 description "FILTER2_WAN"
set port label p32-3 lane 3
set port label p32-3 mtu 9000
set port label p32-3 number 32
set port label p32-3 speed 10G
set port label p32-4
set port label p32-4 description "FIlter3WAN"
set port label p32-4 lane 4
set port label p32-4 mtu 9000
set port label p32-4 number 32
set port label p32-4 speed 10G
set ecoswitch aging-time 20
set ecoswitch l2-domain L2DOMAIN-1 id 100
set ecoswitch l2-domain L2DOMAIN-1 lag-tagged LAG-1 lag-untagged LAG-2
set ecoswitch l2-domain L2DOMAIN-1 qos QOS-1 match packet-type ipv4
set ecoswitch l2-domain L2DOMAIN-1 qos QOS-1 cbs 16 cir 125 pbs 16 pir 125
set ecoswitch l2-domain L2DOMAIN-1 stp enable
set ecoswitch l2-domain L2DOMAIN-1 tagged p1-1 untagged p1-2