小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

CISCO3560 VLAN配置實例

 milo2008 2014-07-17
2009-11-25 15:42 5670人閱讀 評論(4) 收藏 舉報

目錄(?)[+]

1.注意事項

1.交換機(jī)啟動需要大約4-5分鐘;

2.網(wǎng)線插入交換機(jī)接口從變?yōu)?span style="background: lime; mso-highlight: lime;">綠需要大約1-2分鐘,即進(jìn)入正常工作模式;

3.建議使用XP系統(tǒng)進(jìn)行操作,2003默認(rèn)沒有安裝超級終端,需要使用安裝光盤添加該工具才有;

4.請嚴(yán)格按照以下步驟進(jìn)行,背景灰色字體為交換機(jī)顯示信息,藍(lán)色字體為配置命令。

 

2.準(zhǔn)備工作

先保持交換機(jī)斷電狀態(tài);

使用調(diào)試串口線連接筆記本電腦的串口與交換機(jī)背面的CONSOLE接口;

 

打開超級終端:

開始-所有程序-附件-超級終端;

 

配置超級終端:

名稱-cisco

選擇com1com2(請依照實際情況進(jìn)行選擇)

修改每秒位數(shù)為9600

應(yīng)用-確定-回車;

 

 

3.初始配置

給交換機(jī)通電;

片刻后會看到交換機(jī)的啟動信息,直到出現(xiàn)以下配置選項:

Would you like to terminate autoinstall? [yes]: no

Would you like to enter the initial configuration dialog? [yes/no]:no

Would you like to terminate autoinstall? [yes]: no

 

4.出現(xiàn)命令窗口

Switch>

 

5.備份出廠配置

Switch>en  進(jìn)入特權(quán)模式

Switch#copy running-config sfbak-config

Destination filename [sfbak-config]?回車

 

片刻后會出現(xiàn):

1204 bytes copied in 0.529 secs (2276 bytes/sec)

表示文件備份成功。

 

6.配置賬號密碼

Switch#configure terminal  進(jìn)入配置子模式

Switch(config)#enable password cisco 設(shè)置PASSWORD密碼為cisco

Switch(config)#enable secret cisco  設(shè)置SECRET密碼為cisco

Switch(config)#exit

 

片刻后會出現(xiàn):

00:11:26: %SYS-5-CONFIG_I: Configured from console by console

表示將配置保存到了內(nèi)存中,在后面的配置過程中會出現(xiàn)類似的信息,屬于正?,F(xiàn)象。

 

 

7.創(chuàng)建VLAN

Switch#show vlan 查看VLAN信息,默認(rèn)有一個VLAN 1,并且所有端口都屬于它

Switch#vlan database  進(jìn)入VLAN子模式

片刻后會出現(xiàn):

% Warning: It is recommended to configure VLAN from config mode,

  as VLAN database mode is being deprecated. Please consult user

  documentation for configuring VTP/VLAN in config mode.

屬于正常的警告信息。

Switch(vlan)#vlan 2 創(chuàng)建VLAN2

片刻后會出現(xiàn):

VLAN 2 added:

Name: VLAN0002

表示VLAN創(chuàng)建成功。

Switch(vlan)#vlan 3 創(chuàng)建VLAN3

Switch(vlan)#exit

 

8.VLAN設(shè)置IP地址

VLAN2設(shè)置IP地址

Switch#configure terminal  進(jìn)入配置子模式

Switch(config)#interface vlan 2 配置IP,VLAN2

Switch(config-if)#ip address 133.37.125.5 255.255.255.0  設(shè)置交換機(jī)IP(具體IP請依照實際情況設(shè)置)

Switch(config-if)#exit

 

VLAN3設(shè)置IP地址

Switch(config)#interface vlan 3 配置IP,VLAN3

Switch(config-if)#ip address 192.168.1.5 255.255.255.0  設(shè)置交換機(jī)IP(具體IP請依照實際情況設(shè)置)

Switch(config-if)#exit

 

9.VLAN劃分交換機(jī)接口

配置1-12號電口為VLAN2

Switch(config)#interface range fastEthernet 0/1 - 12      進(jìn)入F0/1 F0/12

Switch(config-if)#Switchport mode access       設(shè)成靜態(tài)VLAN訪問模式

Switch(config-if)#Switchport access vlan 2     將此口分給VLAN2

Switch(config-if)#exit

===================

配置13-24號電口為VLAN3

Switch(config)#interface range fastEthernet 0/13 - 24      進(jìn)入F0/13 F0/24

Switch(config-if)#Switchport mode access       設(shè)成靜態(tài)VLAN訪問模式

Switch(config-if)#Switchport access vlan 3     將此口分給VLAN3

Switch(config-if)#exit

===================

配置1號光口為VLAN-2

Switch(config)#interface GigabitEthernet 0/1             進(jìn)入G0/1

Switch(config-if)#Switchport mode access     設(shè)成靜態(tài)VLAN訪問模式

Switch(config-if)#Switchport access vlan 2   將此口分給VLAN2

Switch(config-if)#exit

===================

配置2號光口為VLAN-3

Switch(config)#interface GigabitEthernet 0/2             進(jìn)入G0/2

Switch(config-if)#Switchport mode access     設(shè)成靜態(tài)VLAN訪問模式

Switch(config-if)#Switchport access vlan 3   將此口分給VLAN3

Switch(config-if)#exit

Switch(config)#exit

 

10.關(guān)閉VLAN1

Switch#configure terminal  進(jìn)入配置子模式

Switch(config)#interface vlan 1 配置VLAN1

Switch(config-if)#shutdown  關(guān)閉VLAN1

Switch(config-if)#exit

Switch(config)#exit

 

Switch#show interface fastethernet0/1 status  查看F0/1網(wǎng)口狀態(tài)

Switch#show interface fastethernet0/1 查看F0/1網(wǎng)口詳細(xì)配置

 

Switch#show running-config 查看全局配置

 

11.配置默認(rèn)網(wǎng)關(guān)

Switch#configure terminal  進(jìn)入配置子模式

Switch(config)#ip default-gateway 133.37.125.4

Switch(config)#exit

 

12.設(shè)置使可以遠(yuǎn)程telnet登陸

Switch#configure terminal  進(jìn)入配置子模式

Switch(config)#line vty 0 4

Switch(config-line)#password cisco

Switch(config-line)#login

Switch(config-line)#exit

Switch(config)#exit

 

 

13.保存當(dāng)前配置

Switch#copy running-config startup-config

Destination filename [startup-config]?回車

片刻后出現(xiàn):

Building configuration...

[OK]

表示當(dāng)前配置保存成功。

 

14.交換機(jī)配置情況圖示

配置完成,目前整個交換機(jī)配置情況如下:

 

 

 

15.其它相關(guān)知識

交換機(jī)與交換機(jī)/路由器間級聯(lián)通信:

當(dāng)級聯(lián)的設(shè)備端口設(shè)置了trunk或劃分了VLAN等情況,可能需要修改級聯(lián)端口的工作模式為trunk模式才能實現(xiàn)相互之間的通信。

 

如果是與電口級聯(lián),可以修改1號網(wǎng)口為trunk工作模式,使用該接口進(jìn)行級聯(lián):

Switch#configure terminal  進(jìn)入配置子模式

Switch(config)#interface fastethernet0/1  進(jìn)入F0/1

Switch(config-if)#switchport trunk encapsulation dot1q

Switch(config-if)#switchport mode trunk  設(shè)成TRUNK

Switch(config-if)#switchport trunk allowed vlan all 允許所有VLAN從此口通過

Switch(config-if)#exit

Switch(config)#exit

 

如果是與光纖接口級聯(lián),可以修改1號光纖接口為trunk工作模式,使用該接口進(jìn)行級聯(lián):

Switch#configure terminal  進(jìn)入配置子模式

Switch(config)#interface GigabitEthernet 0/1  進(jìn)入G0/1

Switch(config-if)#switchport trunk encapsulation dot1q

Switch(config-if)#switchport mode trunk  設(shè)成TRUNK

Switch(config-if)#switchport trunk allowed vlan all 允許所有VLAN從此口通過

Switch(config-if)#exit

Switch(config)#exit

 

執(zhí)行后請按照第13步中的描述保存當(dāng)前配置。

 

WEB方式檢查交換機(jī)狀態(tài):

如果需要對交換機(jī)的狀態(tài)進(jìn)行實施查看,可以通過

URLhttp://192.168.1.5 http://133.37.125.5

賬號:admin

密碼:cisco

登陸后進(jìn)行查看。

 

恢復(fù)交換機(jī)出廠設(shè)置:

Switch>en  進(jìn)入特權(quán)模式

Switch#write erase

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]回車

[OK]

Erase of nvram: complete

00:36:19: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

 

Switch# reload

Proceed with reload? [confirm]回車

00:36:59: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.

片刻之后,交換機(jī)會進(jìn)行重啟,并在重啟后恢復(fù)為出廠設(shè)置。

 

遠(yuǎn)程通過telnet登陸交換機(jī)終端:

將本機(jī)IP設(shè)置為與交換機(jī)VLAN2VLAN3同一個網(wǎng)段;

開始-運行-cmd

執(zhí)行telnet 133.37.125.5 telnet 192.168.1.5 即可。

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多