Cisco Switch configuration

Cisco Switch configuration

24. April 2009

Read this article in your language IT | EN | DE | ES

Cisco Switch configuration PDF Yazdır e-Posta Düzenle
Tuncay Güven tarafından yazıldı   
Pazar, 19 Nisan 2009 22:04
     Selam Arkadaşlar , belki iş hayatında en önemli IT parçalarından biriside Switch'lerdir. Çünkü şirket içinde küçük veya büyük bir Network oluşturmak istiyorsak mutlaka Switch kullanmamız gerekir. Bazı arkadaşların "ben Wifi ile de Network kurabilirim" dediklerini duyar gibiyim ancak gerçek verimi alabilmek için Switch vazgeçilmezdir. Basit bir Switch aldığımızda, Cat-5 kablolarını takıp daha sonra gerekli olan IP ayarlarınıda yaparsak Network'u kurmuş oluruz. Peki büyük bir yapıda, büyük bir omurgayı yönetmek için Cisco Switchler önümüze konulduğunda ne yapmamız gerekir? Bunun için makalenin devamını okursanız sanırım gerekli önbilgiye sahip olmuş olursunuz.
Cisco Switch configuration
Cisco Catalyst 1900 – 2900XL – 2950 için Temel Konfigürasyon Komutları
Switch(config)#hostname SW1SW1(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.
Cisco Catalyst 1900' ler için IP adreslerini atama Komutu
SW1(config)#configure terminalSW1(config)# ip address 192.168.0.10 255.255.255.0SW1(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.2SW1(config)# ip mgmt-vlan 1 (default degeri zaten “1” dir.)
Cisco Catalyst 2900XL – 2950 için IP adreslerini atama
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ı)
Cisco Catalyst 1900' ler için Şifre Atama Komutu
SW1(config)# enable password level 1 [Telnet_ve_Konsol_Sifresi]SW1(config)# enable secret [Enable_Sifresi]
Cisco Catalyst 2900XL – 2950 için Şifre Atama Komutu
SW1(config)# line con 0SW1(config-line)# password [Sifre_consol_icin]SW1(config-line)# loginSW1(config)# line vty 0 15SW1(config-line)# password [Sifre_telnet icin]SW1(config-line)# loginSW1(config)# enable secret [Enable_Sifresi]
Cisco Catalyst 1900 – 2900XL – 2950 için HTTP (WEB) Arayüzü Komutları
SW1(config)# ip http serverExtra:
Switch’in web arayuzune 80.port haricinde bir portan bağlanmak isteniliyorsa:
SW1(config)# ip http port
Cisco Catalyst 1900 – 2900XL – 2950 için Dosya (konfigurasyon ve IOS) işlemleri
SW1# copy running-config startup-config (Yapılaln Konfigurasyonun Kaydeder.)NOT: 1900 Switch’lere otomatik her komut direk kayıt edilirCat 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
Cisco Catalyst 1900' ler için MAC adresi Tanımlama
Statik Mac Adres GirmekSW1(config)#mac-address-table permanent 00e0.2917.1884 ethernet 0/4ethernet 0/4 portuna 00e0.2917.1884 mac adresi girilmiştir.Tanımlı Statik Mac adresi silmekSW1(config)#clear mac-address-table permanent 00e0.2917.1884 ethernet 0/4Sınırlı Statik Mac adres TanımlamakSW1(config)#mac-address-table restricted static 00e0.2917.1884 ethernet 0/2 ethernet 0/4Burda 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
Cisco Catalyst 2900' ler için MAC adresi Tanımlama
SW1(config)#mac-address-table static 00e0.2917.1884 fastethernet 0/4 vlan 1  Tanımlı mac adresi kaldırmak içinSW1(config)#no mac-address-table static 00e0.2917.1884 fastEthernet 0/4 vlan 1
Cisco Catalyst 1900 – 2900XL – 2950 için Mac adresi Güvenligi
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
Cisco Switch Show Komutları
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 Başka Yere Kaydetmek

Konfigurasyonu Tftp Server' a YedeklemeSW1#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üklemeSW1#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)
 

			 Tuncay GÜVEN. 
			
			information processing engineer
			
FacebookDigg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Cisco

Comments

8/14/2009 9:06:40 PM #
I think you have to improve a bit the design and usability of your blog.
8/16/2009 7:26:07 PM #
I am quite interesting in this topic hope you will elaborate more on it in future posts.
8/27/2009 6:04:16 AM #
I think you have to improve a bit the design and usability of your blog.
12/7/2009 2:20:13 AM #
thanks.  very helpful post!! like the template btw ;)
1/4/2010 11:13:35 AM #
Just wanted to say thanks for this.
3/21/2010 5:18:22 PM #
Hello, I found your blog in a new directory of blogs. I dont know how your blog came up, must have been a typo, Your blog looks good. Have a nice day.
3/22/2010 5:50:34 PM #
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.
4/2/2010 2:33:43 AM #
I wanted to thank you for this great read!! I definitely enjoying every little bit of it.I have you bookmarked to check out new stuff you post.
4/4/2010 4:45:00 PM #
Hey very nice blog!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also...
4/7/2010 8:35:15 PM #
I am not really sure if best practices have emerged around things like that, but I am sure that your great job is clearly identified. I was wondering if you offer any subscription to your RSS feeds as I would be very interested and can?t find any link to subscribe here.
4/9/2010 4:15:52 PM #
Hey very nice blog!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also...
5/24/2010 7:06:15 PM #
my God, i thought you were going to chip in with some decisive insght at the end there, not leave it with ‘we leave it to you to decide’.

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Sayfa 0.0625 saniyede yuklendi.