實驗十六 使用三層交換機的SVI實現(xiàn)VLAN間路由_第1頁
實驗十六 使用三層交換機的SVI實現(xiàn)VLAN間路由_第2頁
實驗十六 使用三層交換機的SVI實現(xiàn)VLAN間路由_第3頁
實驗十六 使用三層交換機的SVI實現(xiàn)VLAN間路由_第4頁
全文預覽已結束

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、實驗九 使用SVI實現(xiàn)VLAN間路由 【背景描述】 為減小廣播包對網(wǎng)絡的影響,網(wǎng)絡管理員在公司內部網(wǎng)絡中進行了VLAN的劃分。完成VLAN的劃分后,發(fā)現(xiàn)不同VLAN之間無法互相訪問。 【需求分析】 可以通過配置三層交換機的SVI接口實現(xiàn)VLAN間的路由?!緦嶒災康摹?利用三層交換機實現(xiàn)VLAN間路由?!局R準備】VLAN間的主機通信為不同網(wǎng)段間的通信,需要通過三層設備對數(shù)據(jù)進行路由轉發(fā)才可以實現(xiàn),通過在三層交換機上為各VLAN配置SVI接口,利用三層交換機的路由功能可以實現(xiàn)VLAN間的路由。 【實驗一】 利用三層交換機的SVI實現(xiàn)VLAN間互通實驗設備1、3560-24 三層交換機 1臺 2、

2、PC機 2臺 3、直通線若干1.2 組網(wǎng)圖1.3 實驗設備IP地址及要求設備名接口IP地址子網(wǎng)掩碼網(wǎng)關PC1網(wǎng)絡接口192.168.10.2255.255.255.0192.168.10.1PC2網(wǎng)絡接口192.168.20.2255.255.255.0192.168.20.1L3-SWVLAN 10192.168.10.1255.255.255.0VLAN 20192.168.20.1255.255.255.0 Vlan及端口分配設備名VLAN ID 端口范圍L3-SW VLAN 10 F0/6-10L3-SW VLAN 20 F0/11-151.4 實驗步驟第一步:在三層交換機上創(chuàng)建VLA

3、N。 Switch#configure terminal Switch(config)#vlan 10 Switch(config-vlan)#vlan 20 Switch(config-vlan)#exit 第二步: 在三層交換機上將端口劃分到相應VLAN。 Switch(config)#interface fastEthernet 0/1 Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/2 Switch(config-if)#

4、switchport access vlan 20 Switch(config-if)#exit 第三步:在三層交換機上給VLAN配置IP地址。 Switch(config)#interface vlan 10 Switch(config-if)#ip address 192.168.10.1 255.255.255.0 Switch(config-if)#no shutdown Switch(config-if)#exit Switch(config)#interface vlan 20 Switch(config-if)#ip address 192.168.20.1 255.255.25

5、5.0 Switch(config-if)#no shutdown Switch(config-if)#exit 1.5 驗證測試。 按拓撲中所示配置PC并連線,從VLAN10中的PC1 ping VLAN20中的PC2,結果如下所示: C:Documents and Settingsshil>ping 192.168.20.2 Pinging 192.168.20.2 with 32 bytes of data: Reply from 192.168.20.2: bytes=32 time<1ms TTL=64 Reply from 192.168.20.2: bytes=32

6、time<1ms TTL=64 Reply from 192.168.20.2: bytes=32 time<1ms TTL=64 Reply from 192.168.20.2: bytes=32 time<1ms TTL=64 Ping statistics for 192.168.20.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0

7、ms 從上述測試結果可以看到通過在三層交換機上配置SVI接口實現(xiàn)了不同VLAN之間的主機通信。 注意事項 :VLAN中PC的IP地址需要和三層交換機上相應VLAN的IP地址在同一網(wǎng)段,并且主機網(wǎng)關配置為三層交換機上相應VLAN的IP地址。 1.6實驗參考配置文檔Switch#show running-config Building configuration. Current configuration : 1370 bytes ! vlan 1 ! vlan 10 ! vlan 20 ! ! enable secret 5 $1$khi7$zBty5tE6xwvCw3Dv ! interfa

8、ce FastEthernet 0/1 switchport access vlan 10 ! interface FastEthernet 0/2 switchport access vlan 20 ! interface FastEthernet 0/3 ! interface FastEthernet 0/4 ! interface FastEthernet 0/5 ! interface FastEthernet 0/6 ! interface FastEthernet 0/7 ! interface FastEthernet 0/8 ! interface FastEthernet

9、0/9 ! interface FastEthernet 0/10 ! interface FastEthernet 0/11 ! interface FastEthernet 0/12 ! interface FastEthernet 0/13 ! interface FastEthernet 0/14 ! interface FastEthernet 0/15 ! interface FastEthernet 0/16 ! interface FastEthernet 0/17 ! interface FastEthernet 0/18 ! interface FastEthernet 0/19 ! interface FastEthernet 0/20 ! interface FastEthernet 0/21 ! interface FastEthernet 0/22 ! interface FastEthernet 0/23 ! interface FastEthernet 0/24 ! interface GigabitEthernet 0/25 ! interface GigabitEthernet 0/26 ! interface GigabitEthernet 0/27 ! interface GigabitEthernet 0/2

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論