Cisco kommutaator
Allikas: Imre kasutab arvutit
Mine navigeerimisribaleMine otsikasti
Sissejuhatus
TODO
Serial kaabli kasutamine
Sobib kasutamiseks nö tavaline cisco helesinine lint kaabel, üks ots rj45 ja teine ots 9-pin serial mamma (nt ühendada arvutisse üle serial-usb-dongle)
$ cu ... -s 9600
Kasutajate haldamine
Uue kasutaja lisamiseks sobib öelda
conf t username ...
Failisüsteemiga töötamine
Seadistuse salvestamine flash seadmele
harjutus-sw#copy running-config flash1:imretest-rc
harjutus-sw#dir
Directory of flash:/
2 -rwx 3096 Mar 1 1993 04:37:25 +02:00 multiple-fs
3 -rwx 796 Mar 1 1993 04:37:40 +02:00 vlan.dat
4 -rwx 3843 Mar 1 1993 04:37:25 +02:00 private-config.text
5 -rwx 7477 Mar 1 1993 04:32:07 +02:00 imretest-rc
6 -rwx 14610998 Dec 9 2018 14:02:18 +02:00 c3750e-ipbasek9-mz.122-55.SE12.bin
8 -rwx 6048 Mar 1 1993 04:37:25 +02:00 config.text
Salvestatud seadistuse kasutusele võtmine ('replace' asendab kogu parasjagu kehtestatud seadistuse failis oleva seadistusega)
harjutus-sw#configure replace flash1:imretest-rc This will apply all necessary additions and deletions to replace the current running configuration with the contents of the specified configuration file, which is assumed to be a complete configuration, not a partial configuration. Enter Y if you are sure you want to proceed. ? [no]: y Total number of passes: 0 Rollback Done harjutus-sw#
VLAN
Vlan liidese moodustamine
harjutus-sw#conf t Enter configuration commands, one per line. End with CNTL/Z. harjutus-sw(config)#vlan 221 harjutus-sw(config-vlan)#name vlan_name_222 harjutus-sw(config-vlan)#end harjutus-sw# harjutus-sw#show run vlan 222 Building configuration... Current configuration: ! vlan 222 name vlan_name_222 end
Vlan liidese seadistuse esitamine
harjutus-sw#sh run int vlan 10 Building configuration... Current configuration : 65 bytes ! interface Vlan10 ip address 192.168.10.156 255.255.255.0 end harjutus-sw#
LACP
Seadistamine
TODO
Tulemuse esitamine
harjutus-sw#show etherchannel detail
Channel-group listing:
----------------------
Group: 20
----------
Group state = L2
Ports: 2 Maxports = 16
Port-channels: 1 Max Port-channels = 16
Protocol: LACP
Minimum Links: 0
Ports in the group:
-------------------
Port: Gi1/0/11
------------
Port state = Down Not-in-Bndl
Channel group = 20 Mode = Active Gcchange = -
Port-channel = null GC = - Pseudo port-channel = Po20
Port index = 0 Load = 0x00 Protocol = LACP
Flags: S - Device is sending Slow LACPDUs F - Device is sending fast LACPDUs.
A - Device is in active mode. P - Device is in passive mode.
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi1/0/11 SA down 32768 0x14 0x0 0x10C 0x45
Age of the port in the current state: 0d:00h:09m:13s
Port: Gi1/0/12
------------
Port state = Down Not-in-Bndl
Channel group = 20 Mode = Active Gcchange = -
Port-channel = null GC = - Pseudo port-channel = Po20
Port index = 0 Load = 0x00 Protocol = LACP
Flags: S - Device is sending Slow LACPDUs F - Device is sending fast LACPDUs.
A - Device is in active mode. P - Device is in passive mode.
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi1/0/12 SA down 32768 0x14 0x0 0x10D 0x45
Age of the port in the current state: 0d:00h:08m:38s
Port-channels in the group:
---------------------------
Port-channel: Po20 (Primary Aggregator)
------------
Age of the Port-channel = 0d:00h:10m:08s
Logical slot/port = 10/20 Number of ports = 0
HotStandBy port = null
Port state = Port-channel Ag-Not-Inuse
Protocol = LACP
Port security = Disabled
Kasulikud lisamaterjalid
- cheat sheet - https://www.slideshare.net/slideshow/cisco-switch-commands-cheat-sheet/31026863
- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750x_3560x/software/release/15-0_2_se/configuration/guide/3750x_cg/swvlan.html
- https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12-2_52_se/configuration/guide/3750scg/swiosfs.html