Switch(config)#hostname SW1
SW1(config)# interface ethernet 0/1
SW1(config)# interface fastethernet
0/1
SW1(config)# interface gigabitethernet 0/1
SW1(config-if)#description
SW1(config-if)# speed
SW1(config-if)# duplex
Not: Cisco Catalyst 1900 Switch portları varsayılan olarak Half Duplex çalışırlar. Ayrıca E0/26 ve e0/27 - Fast ethernet' lerdir.
SW1(config)#configure terminal
SW1(config)# ip address 192.168.0.10 255.255.255.0
SW1(config)# ip default-gateway 192.168.0.1
İlk komut Switch' i yönetmekte kullanılacak ip, ikinci komut ise Router İp' sidir. Varsayılan olarak Switch' e 0.0.0.0 ip' si vardır ve konsol şifresi yoktur.
SW1(config)# ip name-server 192.168.0.2
SW1(config)# ip mgmt-vlan 1 (default degeri zaten “1” dir.)
SW1(config)# interface Vlan1
SW1(config-if)# ip address 192.168.0.10
255.255.255.0
SW1(config-if)# no shutdown
SW1(config-if)#
exit
SW1(config)# ip default-gateway 192.168.0.1
(default-gateway
tanımı)
SW1(config)# ip name-server 192.168.0.2
(Dns sunucusu tanımı)
SW1(config)# enable password level 1 [Telnet_ve_Konsol_Sifresi]
SW1(config)# enable secret [Enable_Sifresi]
SW1(config)# line con 0
SW1(config-line)# password [Sifre_consol_icin]
SW1(config-line)# login
SW1(config)# line vty 0 15
SW1(config-line)# password [Sifre_telnet icin]
SW1(config-line)# login
SW1(config)# enable secret [Enable_Sifresi]
SW1(config)# ip http server
Extra:
Switch’in web arayuzune 80.port haricinde bir portan bağlanmak
isteniliyorsa:
SW1(config)# ip http port
SW1# copy running-config startup-config (Yapılaln Konfigurasyonun Kaydeder.)
NOT: 1900 Switch’lere otomatik her komut direk kayıt edilir
Cat 2900XL-2950 icin konfigurasyonu silme
SW1# delete
flash:vlan.dat
SW1 # erase starup-config
SW1# reload
Cat 1900 icin icin konfigurasyonu silme
SW1# delete vtp
SW1# delete
nvram ; SW1#write erase
Statik Mac Adres Girmek
SW1(config)#mac-address-table permanent 00e0.2917.1884 ethernet 0/4
ethernet 0/4 portuna 00e0.2917.1884 mac adresi girilmiştir.
Tanımlı Statik Mac adresi silmek
SW1(config)#clear mac-address-table permanent 00e0.2917.1884 ethernet 0/4
Sınırlı Statik Mac adres Tanımlamak
SW1(config)#mac-address-table restricted static 00e0.2917.1884 ethernet 0/2 ethernet 0/4
Burda E0/2' ye 00e0.2917.1884 MAC adresi tanımlanır ve E0/4 ' den gelen çerceveleri kabul etmesi sağlanır. Eğer E0/4' e bir hub bağlıysa ve HUB'a da 3 client bağlı ise;
SW1(config)#in e0/4
SW1(config-if)#port secure max-mac-count 3
Bu komutla 3 tane client' a izin verilir.4. client' dan bir çerceve gelirse suspend ' de tutar.
SW1(config)#int e0/4
SW1(config-if)#address-violation
[suspend/ignore/disable]
Not: Bir porta en fazla 132 MAC adres tanımlanabilir.
Not: 1800 SW' ler Dinamik Mac adresleri 300 sn boyunca saklanırlar
Tanımlı mac adresi kaldırmak için
SW1(config)#no mac-address-table static 00e0.2917.1884 fastEthernet 0/4 vlan 1
Catalyst 2950 için:
SW1(config)# interface
FastEthernet0/1
SW1(config-if)# switchport port-security
SW1(config-if)#
switchport port-security maximum <1-132>(Default Degeri
1)
SW1(config-if)# switchport port-security violation
SW1(config-if)# switchport port-security mac-address
0101.0101.0101
SW1# show port security
Catalyst 2900XL için:
SW1(config)#mac-address-table static 0101.0101.0101
fastethernet 0/1
SW1(config)# interface FastEthernet0/1
SW1(config-if)#
port security max-mac-count 1
SW1(config-if)# port security
Catalyst 1900 için:
SW1(config)# mac-address-table permanent
0101.0101.0101 Ethernet 0/1
SW1(config)# interface Ethernet
0/1
SW1(config-if)# port secure
SW1(config-if)# port secure max-mac-count
1
SW1#sh ip (ip konfigurasyonunu gösteriri)
SW1#interface (arabirim
bilgilerini gösterir)
SW1#sh version ( sürüm bilgilerini gösterir)
SW1#sh
mac-address-table ( mac adrs tablosunu gösterir)
SW1#sh running-config veya
SW1#sh run (çalıima zamanı konfügurasyonunu gösterir)
SW1# show flash
SW1#
show interface ethernet 0/1
SW1# show interface fastethernet 0/1
Konfigurasyonu Tftp Server' a Yedekleme
SW1#copy startup-config tftp
Address or name of remote host []?
172.17.99.21
Destination filename [alswitch-confg]? [enter]
!!
1452
bytes copied in 0.445 secs (3263 bytes/sec)#
Yedekten Konfigurasyonu yükleme
SW1#copy tftp startup-config
Address or name of remote host []?
172.17.99.21
Source filename []? alswitch-confg
Destination filename
[startup-config]? [enter]
Accessing tftp://172.17.99.21
/alswitch-confg...
Loading alswitch-confg from 172.17.99.21 (via Vlan99):
!
[OK - 1452 bytes]
1452 bytes copied in 9.059 secs (160 bytes/sec)
AHMET YÜKSEKTEPE
Delta Bilişim Hizmetleri İç ve Dış Tic.Ltd.Şti.