Основные команды:
1 2 3 |
show run - показать текущий конфиг configure - режим конфигурирования write mem - сохранить настройки |
Пример конфига:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
config-file-header switch000001 v5.1.0.18 / ? CLI v1.0 @ ! unit-type-control-start unit-type unit 1 network te uplink none unit-type-control-end ! no spanning-tree port jumbo-frame vlan database vlan 25-28,35-38 exit voice vlan oui-table add 0001e3 Siemens_AG_phone________ voice vlan oui-table add 00036b Cisco_phone_____________ voice vlan oui-table add 00096e Avaya___________________ voice vlan oui-table add 000fe2 H3C_Aolynk______________ voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone voice vlan oui-table add 00d01e Pingtel_phone___________ voice vlan oui-table add 00e075 Polycom/Veritel_phone___ voice vlan oui-table add 00e0bb 3Com_phone______________ ip ssh server ip telnet server ! interface vlan 1 ip address 10.12.127.200 255.255.255.0 no ip address dhcp ! interface TengigabitEthernet1 switchport mode trunk ! interface TengigabitEthernet2 switchport mode trunk ! interface TengigabitEthernet3 switchport mode trunk ! interface TengigabitEthernet5 switchport mode trunk ! exit console# |
Vlan
1 2 |
vlan database vlan 25-28,35-38 |
JAMBO PACKET
1 |
port jumbo-frame |
NO STP
1 |
no spanning-tree |
TRANK
1 2 3 4 5 6 7 8 9 10 11 12 |
interface TengigabitEthernet1 switchport mode trunk ! interface TengigabitEthernet2 switchport mode trunk ! interface TengigabitEthernet3 switchport mode trunk ! interface TengigabitEthernet5 switchport mode trunk ! |
STATIC IP CONTROL
1 2 3 4 |
interface vlan 1 ip address 10.12.127.200 255.255.255.0 no ip address dhcp ! |