思科Cisco交換機(jī)配置—— 結(jié)合以太通道的VLAN配置實(shí)驗(yàn)詳解

本文實(shí)例講述了思科Cisco結(jié)合以太通道的VLAN配置實(shí)驗(yàn)。分享給大家供大家參考,具體如下:
一、實(shí)驗(yàn)?zāi)康?/strong>:建立以太通道使相同VLAN下主機(jī)互通
二、拓?fù)鋱D如下
三、具體步驟如下
(1)S1三層交換機(jī)配置
Switch>enable Switch#config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S1 S1(config)#interface port-channel 5 S1(config-if)#switchport trunk encapsulation dot1q S1(config-if)#switchport mode trunk S1(config-if)#exit S1(config)#interface range f0/10-11 S1(config-if-range)#channel-group 5 mode on S1(config-if-range)#exit S1(config)#vlan 5 S1(config-vlan)#vlan 6 S1(config-vlan)#interface f0/1 S1(config-if)#switchport mode access S1(config-if)#switchport access vlan 5 S1(config-if)#interface f0/2 S1(config-if)#switchport mode access S1(config-if)#switchport access vlan 6 S1(config-if)#end S1#copy running-config startup-config %LINK-5-CHANGED: Interface Port-channel 5, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 5, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up %SYS-5-CONFIG_I: Configured from console by console Destination filename [startup-config]? Building configuration... [OK]
(2)S2三層交換機(jī)配置
Switch>enable Switch#config terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S2 S2(config)#interface port-channel 5 S2(config-if)#switchport trunk encapsulation dot1q S2(config-if)#switchport mode trunk S2(config-if)#exit S2(config)#interface range f0/10-11 S2(config-if-range)#channel-group 5 mode on S2(config-if-range)#exit S2(config)#vlan 5 S2(config-vlan)#vlan 6 S2(config-vlan)#interface f0/1 S2(config-if)#switchport mode access S2(config-if)#switchport access vlan 5 S2(config-if)#interface f0/2 S2(config-if)#switchport mode access S2(config-if)#switchport access vlan 6 S2(config-if)#end %LINK-5-CHANGED: Interface Port-channel 5, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 5, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up S2# %SYS-5-CONFIG_I: Configured from console by console
四、驗(yàn)證,相同VLAN下的主機(jī)是否互通
(1)vlan 5 下的PC1和PC3
(2)vlan 6 下的PC2和PC4
相關(guān)文章
思科Cisco交換機(jī)配置——VTP管理交換機(jī)的VLAN配置實(shí)驗(yàn)操作詳解
這篇文章主要介紹了思科Cisco VTP管理交換機(jī)的VLAN配置,結(jié)合實(shí)驗(yàn)案例形式分析了VTP管理交換機(jī)的VLAN配置具體操作步驟、相關(guān)命令與使用技巧,需要的朋友可以參考下2020-02-20思科Cisco交換機(jī)配置——單交換機(jī)劃分VLAN配置實(shí)驗(yàn)操作詳解
這篇文章主要介紹了思科Cisco單交換機(jī)劃分VLAN配置實(shí)驗(yàn)操作,詳細(xì)分析了思科Cisco單交換機(jī)劃分VLAN的具體操作步驟、相關(guān)命令與使用技巧,需要的朋友可以參考下2020-02-20思科Cisco路由器與交換機(jī)配置——配置文件和系統(tǒng)映像備份與恢復(fù)實(shí)驗(yàn)案
這篇文章主要介紹了思科Cisco交換機(jī)配置文件和系統(tǒng)映像備份與恢復(fù)實(shí)驗(yàn),結(jié)合具體案例形式詳細(xì)分析了思科Cisco交換機(jī)備份配置文件和系統(tǒng)映像到TFTP服務(wù)器,以及恢復(fù)備份的相關(guān)2020-02-18思科Cisco交換機(jī)配置——端口安全配置實(shí)驗(yàn)案例圖文詳解
這篇文章主要介紹了思科Cisco交換機(jī)端口安全配置實(shí)驗(yàn),結(jié)合具體案例形式詳細(xì)分析了思科Cisco交換機(jī)端口安全配置原理、操作命令與相關(guān)實(shí)現(xiàn)技巧,需要的朋友可以參考下2020-02-18思科Cisco路由器與交換機(jī)配置——交換機(jī)默認(rèn)網(wǎng)關(guān)實(shí)現(xiàn)跨網(wǎng)段telnet案例
這篇文章主要介紹了思科Cisco交換機(jī)默認(rèn)網(wǎng)關(guān)實(shí)現(xiàn)跨網(wǎng)段telnet,結(jié)合具體案例形式分析了思科Cisco交換機(jī)跨網(wǎng)段telnet配置的具體實(shí)現(xiàn)步驟與相關(guān)操作命令,需要的朋友可以參考下2020-02-14- 這篇文章主要介紹了Cisco(思科)交換機(jī)初始化配置操作方法,結(jié)合具體案例形式分析了思科交換機(jī)初始化、Telnet登錄等相關(guān)操作配置方法,需要的朋友可以參考下2020-02-14
思科認(rèn)證CiSCO 交換機(jī)配置與SSH 登陸操作命令詳解
這篇文章主要介紹了思科認(rèn)證CiSCO 交換機(jī)配置與SSH 登陸操作命令,總結(jié)分析了三層交換機(jī)上僅運(yùn)行SSH服務(wù)相關(guān)原理與配置命令,需要的朋友可以參考下2020-02-12CCNA認(rèn)證考試思科Cisco交換機(jī)配置基本命令小結(jié)
這篇文章主要介紹了CCNA認(rèn)證考試思科Cisco交換機(jī)配置基本命令,整理總結(jié)了CCNA認(rèn)證考試中思科交換機(jī)VLAN、網(wǎng)關(guān)、vtp、Telnet等各種配置、查看、保存相關(guān)操作技巧與注意事項(xiàng),2020-02-02- Cisco思科光纖交換機(jī)怎么配置呢?相信很多網(wǎng)友還是不太了解,下面就為大家收集的Cisco思科光纖交換機(jī)配置說明教程,一起來看看了解下2017-04-11
- 有關(guān)VLAN的技術(shù)標(biāo)準(zhǔn)IEEE 802.1Q早在1999年6月份就由IEEE委員正式頒布實(shí)施了,而且最早的VLNA技術(shù)早在1996年Cisco(思科)公司就提出了。隨著幾年來的發(fā)展,VLAN技術(shù)得到廣2010-09-07