2950是隻支援二層的交換機
支援VLAN
第1步:單擊“開始”按鈕,在“程式”菜單的“附件”選項中單擊“超級終端”
第2步:在“名稱”文本框中鍵入“Cisco”
第3步:在“連接配接時使用”下拉清單框中選擇與交換機相連的計算機的序列槽。桌上型電腦為“com 1”,筆記本為“com 3或者com 5”。
第4步:在“波特率”下拉清單框中選擇“9600”-确定.
如果通信正常的話就會出現類似于如下所示的主配置界面,并會在這個視窗中就會顯示交換機的初始配置情況。
enter
enter
enter
no!
1)配置交換機姓名
switch>ena
switch#configure
enter
switch#configure terminal (進入配置狀态)
Switch(config)#hostname 配置的交換機姓名 如:30FLoor-2960-1
30FLoor-2960-1(config)#end
30FLoor-2960-1#
2)配置交換機的ip
30FLoor-2960-1#configure terminal (進入配置狀态)
30FLoor-2960-1(config)#interface vlan 1
30FLoor-2960-1(config)#ip address ip位址 子網路遮罩
例如:30FLoor-2960-1(config)#ip address 10.11.90.10 255.255.255.0
30FLoor-2960-1(config)#no shutdown
30FLoor-2960-1(config)#end
30FLoor-2960-1#
30FLoor-2960-1#
3)配置交換機的 預設網關
30FLoor-2960-1(config)#ip default-gateway 網關ip
例如:30FLoor-2960-1(config)#ip default-gateway 10.11.90.254
4)設定路由
30FLoor-2960-1(config)#ip route 0.0.0.0 X.X.X.X
5)設定console口密碼
30FLoor-2960-1(config)#line console 0
30FLoor-2960-1(config-line)#password 輸入密碼
30FLoor-2960-1(config-line)#login
30FLoor-2960-1(config-line)#end
6)設定telnet的密碼
30FLoor-2960-1(config)#line vty 0 10
30FLoor-2960-1(config-line)#password 輸入密碼(yuxuan)
30FLoor-2960-1(config-line)#login
30FLoor-2960-1(config-line)#end
7)設定交換機的enable密碼
30FLoor-2960-1(config)#enable password 輸入密碼(xuan)
30FLoor-2960-1(config)#enable secret 輸入密碼(yuxuan)
30FLoor-2960-1(config)#end
8)将目前配置資訊儲存到閃存中
30FLoor-2960-1(config)#write
9)檢視交換機資訊
30FLoor-2960-1#
show version 檢視交換機版本資訊
show ip interfaces 檢視交換機的ip位址
show interface vlan 1 驗證管理ip位址已經配置并開啟
show ip redirect 檢視交換機的網關
show running-configure 檢視交換機目前的配置資訊
show configure 檢視交換機儲存的配置資訊
switch#write ; 儲存配置資訊
switch#show vtp ; 檢視vtp配置資訊
switch#show run ; 檢視目前配置資訊
switch#show vlan ; 檢視vlan配置資訊
switch#show interface ; 檢視端口資訊
switch#show int f0/0 ; 檢視指定端口資訊
10)交換機基本配置步驟
1.登陸到交換機
2.進入特權模式
指令:enable
3.進入全局配置模式
指令:configure terminal
4.進入相應的配置子模式
如:接口子模式
指令:interface vlan 1