CLI komande podešavanja preklopnika |
| 1 | 2 | 3 | |
Naredna tablica prikazuje komande i njihov redosljed uporabe da bi se konfigurirao Cisco preklopnika (switch). Komande omogućavaju da se mrežnom uređaju definira od imena administratora i njegove zaporke do konfiguriranja komunikacijskih protokola i raznih mehanizama sigurnosti. U suštini, sve komande i njihov redoslijed uporabe odnosi se na cijelu seriju uređaja ove vrste.
============================================================================== Commands for configuring of Cisco Cisco switch ============================================================================== Commands insight into the configuration ----------------------------------------- (PEM) SWITCH#show version (PEM) SWITCH#show startup-config (NVRAM) (PEM) SWITCH#show run (PEM) SWITCH#show running-config (RAM) (PEM) SWITCH#show cdp (PEM) SWITCH#show cdp neighbors (PEM) SWITCH#dir flash (PEM) SWITCH#show flash (PEM) SWITCH#show ip (PEM) SWITCH#show vlan id {VNo} (VNo = 1 - 1005) (PEM) SWITCH#show vlan name /name of VLAN/ (PEM) SWITCH#show interface fastethernet x/y (PEM) SWITCH#show ip interface vlan /VNo/ (PEM) SWITCH#show mac-address-table (PEM) SWITCH# (PEM) SWITCH# ------------------------------------------------------------------------------ Initial setup of switch ---------------------------------- (UEM) SWITCH>enable (PEM) SWITCH#show running-config (PEM) SWITCH#configure terminal (GCM) SWITCH(config)# (GCM) SWITCH(config)#hostname TUPKO (GCM) TUPKO(config)# (GCM) TUPKO(config)#ip host /name of 1. Router/ /IP of 1. Router/ (GCM) TUPKO(config)#ip host /name of 2. Router/ /IP of 2. Router/ (GCM) TUPKO(config)#ip host /name of 1. Switch/ /IP of 1. Switch/ (GCM) TUPKO(config)# (GCM) TUPKO(config)#ip http server (GCM) TUPKO(config)#ip http port 80 (GCM) TUPKO(config)#exit ------------------------------------------------------------------------------ ------------------------------------- (PEM) TUPKO# (PEM) TUPKO#configure terminal (GCM) TUPKO(config)#enable password PASSWORD_1 (GCM) TUPKO(config)#enable secret PASSWORD_2 (GCM) TUPKO(config)#exit (PEM) TUPKO# (GCM) TUPKO(config)#line con 0 (LCM) TUPKO(config-line)#password PASSWORD_3 (LCM) TUPKO(config-line)#login (LCM) TUPKO(config-line)#<CTRL>+<Z> (PEM) TUPKO# (GCM) TUPKO(config)#line vty 0 15 (LCM) TUPKO(config-line)#password PASSWORD_4 (LCM) TUPKO(config-line)#login (LCM) TUPKO(config-line)#<CTRL>+<Z> (PEM) TUPKO#configure terminal (GCM) TUPKO(config)# (GCM) TUPKO(config)#interface VLAN1 (ICM) TUPKO(config-if)#ip address /Switch-IP//SNM/ (ICM) TUPKO(config-if)#duplex full (ICM) TUPKO(config-if)#speed 100 (ICM) TUPKO(config-if)# (ICM) TUPKO(config-if)#no shutdown (ICM) TUPKO(config-if)#ip default-gateway /IP/ (ICM) TUPKO(config-if)#<CTRL>+<Z> (PEM) TUPKO# ------------------------------------------------------------------------------ Saving the configuration at NVRAM ----------------------------------- (PEM) TUPKO#copy running-config startup-config (RAM-NVRAM) (PEM) TUPKO#copy run start (PEM) TUPKO#reload ------------------------------------------------------------------------------ Configuring of switch -------------------------- (PEM) TUPKO# (PEM) TUPKO#delete flash:vlan.dat (PEM) TUPKO#erase startup-config (erase of NVRAM) (PEM) TUPKO#reload (UEM) TUPKO>enable (PEM) TUPKO#clear mac-address-table {dynamic} (PEM) TUPKO#configure terminal (GCM) TUPKO(config)# ----------------------------------------------------------------------------- ---------------------------------------- TUPKO# TUPKO(config)#ip default-gateway /IP-FE at Router/ TUPKO(config)#interface VLAN 1 TUPKO(config-if)#ip address /IP of the network - best choice is last/ /SNM/ TUPKO(config-if)no shutdown TUPKO(config-if)#<CTRL>+<Z> TUPKO# ------------------------------------------------------------------------------ Static MAC address ------------------------------------- TUPKO# TUPKO(config)#mac-address-table static AAAA.AAAA.AAAA fastethernet x/y vlan 1 TUPKO(config)# TUPKO(config)#<CTRL>+<Z> TUPKO# ------------------------------------------------------------------------------ Port security ------------------------------------- TUPKO# TUPKO(config)#interface fastethernet x/y TUPKO(config-if)#switchport mode {access | dinamic | trunk} TUPKO(config-if)#switchport mode access TUPKO(config-if)#switchport port-security { | | | } TUPKO(config-if)#<CTRL>+<Z> TUPKO# ------------------------------------------------------------------------------ Port TRUNK ------------------------------------- TUPKO# TUPKO(config)#interface fastethernet x/y TUPKO(config-if)#switchport mode trunk TUPKO(config-if)#switchport trunk encapsulation {isl | dot1q} TUPKO(config-if)#switchport trunk allowed vlan all TUPKO(config-if)#<CTRL>+<Z> TUPKO# ------------------------------------------------------------------------------ ------------------------------------- TUPKO# TUPKO#vlan database TUPKO(vlan)#show TUPKO(vlan)# TUPKO(vlan)#vtp {server | client} TUPKO(vlan)# (VLNo = 1 default) TUPKO(vlan)#vlan /VLNo1/ name /1. name/ (VLNo = 2 - 1001) TUPKO(vlan)#vlan /VLNo2/ name /2. name/ (VLNo > 1001 reserved) TUPKO(vlan)#vlan /VLNo3/ name /3. name/ TUPKO(vlan)# TUPKO(vlan)#no vlan /VLNo/ TUPKO(vlan)# TUPKO(vlan)#show TUPKO(vlan)#applay TUPKO(vlan)#exit TUPKO# TUPKO(config)#interface fastethernet x/y TUPKO(config-if)#switchport mode access TUPKO(config-if)#switchport access vlan /VLNo/ TUPKO(config-if)#<CTRL>+<Z> TUPKO# TUPKO(config)#interface fastethernet x/y TUPKO(config-if)#no switchport mode access TUPKO(config-if)#no switchport access vlan /VLNo/ TUPKO(config-if)#<CTRL>+<Z> TUPKO# ==============================================================================
Komande nisu iste kao opisane za sve vrste uređaje ali prema načinu pristupa i njihovog korištenja može se zaključiti da pripadaju istoj porodici uređaja. Proizvođač povremeno za svoj IOS izdaje unapređenja koja nekad nudi besplatno a nekad naplaćuje, kao i nove verzije operativnog sustava, što ovisi o sadržaju ugovora sklopljenog prilikom kupovine mrežne opreme. Nije dobro ne osigurati njihovu podršku barem za par godina.
| 1 | 2 | 3 | |
Citiranje ove stranice: Radić, Drago. " Informatička abeceda " Split-Hrvatska. {Datum pristupa}; https://informatika.buzdo.com/pojmovi/datoteka. Copyright © by Drago Radić. Sva prava pridržana. | Odgovornost |