支持VLAN 第1步:單擊“開始”按鈕,在“程序”菜單的“附件”選項(xiàng)中單擊“超級終端” 第2步:在“名稱”文本框中鍵入“Cisco” 第3步:在“連接時使用”下拉列表框中選擇與交換機(jī)相連的計(jì)算機(jī)的串口。臺式機(jī)為“com 1”,筆記本為“com 3或者com 5”。 第4步:在“波特率”下拉列表框中選擇“9600”-確定. 如果通信正常的話就會出現(xiàn)類似于如下所示的主配置界面,并會在這個窗口中就會顯示交換機(jī)的初始配置情況。 enter enter enter no! 1)配置交換機(jī)姓名 switch>ena switch#configure enter switch#configure terminal (進(jìn)入配置狀態(tài)) Switch(config)#hostname 配置的交換機(jī)姓名 如:30FLoor-2960-1 30FLoor-2960-1(config)#end 30FLoor-2960-1# 2)配置交換機(jī)的ip 30FLoor-2960-1#configure terminal (進(jìn)入配置狀態(tài)) 30FLoor-2960-1(config)#interface vlan 1 30FLoor-2960-1(config)#ip address ip地址 子網(wǎng)掩碼 例如: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)配置交換機(jī)的 默認(rèn)網(wǎng)關(guān) 30FLoor-2960-1(config)#ip default-gateway 網(wǎng)關(guān)ip 例如:30FLoor-2960-1(config)#ip default-gateway 10.11.90.254 4)設(shè)置路由 30FLoor-2960-1(config)#ip route 0.0.0.0 X.X.X.X 5)設(shè)置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)設(shè)置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)設(shè)置交換機(jī)的enable密碼 30FLoor-2960-1(config)#enable password 輸入密碼(xuan) 30FLoor-2960-1(config)#enable secret 輸入密碼(yuxuan) 30FLoor-2960-1(config)#end 8)將當(dāng)前配置信息保存到閃存中 30FLoor-2960-1(config)#write 9)查看交換機(jī)信息 30FLoor-2960-1# show version 查看交換機(jī)版本信息 show ip interfaces 查看交換機(jī)的ip地址 show interface vlan 1 驗(yàn)證管理ip地址已經(jīng)配置并開啟 show ip redirect 查看交換機(jī)的網(wǎng)關(guān) show running-configure 查看交換機(jī)當(dāng)前的配置信息 show configure 查看交換機(jī)保存的配置信息 switch#write ; 保存配置信息 switch#show vtp ; 查看vtp配置信息 switch#show run ; 查看當(dāng)前配置信息 switch#show vlan ; 查看vlan配置信息 switch#show interface ; 查看端口信息 switch#show int f0/0 ; 查看指定端口信息 10)交換機(jī)基本配置步驟 1.登陸到交換機(jī) 2.進(jìn)入特權(quán)模式 命令:enable 3.進(jìn)入全局配置模式 命令:configure terminal 4.進(jìn)入相應(yīng)的配置子模式 如:接口子模式 命令:interface vlan 1 |
|