實驗目標:
理解虛擬vlan基本配置;
掌握一般交換機按埠劃分vlan的配置方法;
掌握tag vlan配置方法
實驗背景:
某一公司內財務部,銷售部的pc通過2臺交換機實現通訊:要求財務部和銷售部的pc機可以互通,但是為了資料安全起見,銷售部和財務部需要進行互相隔離,現要在交換機上做適當配置來實現這一標準。
技術原理:
vlan是指在乙個物理網段內,進行邏輯的劃分,劃分成若干個虛擬區域網,vlan最大的特性是不受物理位置的限制,可以進行靈活的劃分。vlan具備了乙個物理網段所具備的特性。相同vlan內的主機之間可以直接通訊,不同vlan間的主機之間相互訪問必須經路由裝置進行**,廣播資料報只可以在本vlan內進行廣播,不能傳輸到其他vlan中。
portvlan是實現vlan的方式之一,他利用交換機的埠進行vlan劃分,乙個埠只能屬於乙個vlan。
實驗步驟:新建packet tracer拓撲圖
劃分vlan
將埠劃分到相應vlan中
設定vlan trunk屬性
測試實驗裝置:
switch_2960 2臺;pc4臺;直連線
交換機和pc機配置過程如下:
switch>en
switch#conf t
enter configuration commands, one per line. end with cntl/z.
switch(config)#hostname switch1
switch1(config)#vlan 2
switch1(config-vlan)#exit
switch1(config)#vlan 3
switch1(config-vlan)#exit
switch1(config)#int f0/1
switch1(config-if)#switchport access vlan 2
switch1(config-if)#exit
switch1(config)#int f0/2
switch1(config-if)#switchport access vlan 3
switch1(config-if)#exit
switch1(config)#int f0/24
switch1(config-if)#switchport mode trunk
(紅色的是交換機自動生成的引數**)
%lineproto-5-updown: line protocol on inte***ce fastethernet0/24, changed state to down
%lineproto-5-updown: line protocol on inte***ce fastethernet0/24, changed state to up
switch(config-if)#end
%sys-5-config_i: configured from console by console
switch#show vlan
switch>en
switch#conf t
switch(config)#hostname switch2
switch2(config)#vlan 2
switch2(config-vlan)#exit
switch2(config)#vlan 3
switch2(config-vlan)#exit
switch2(config)#int f0/1
switch2(config-if)#switchport access vlan 2
switch2(config-if)#exit
switch2(config)#int f0/2
switch2(config-if)#switchport access vlan 3
switch2(config-if)#exit
switch2(config)#int f0/24
switch2(config-if)#switchport mode trunk
(紅色的是交換機自動生成的引數**)
%lineproto-5-updown: line protocol on inte***ce fastethernet0/24, changed state to down
%lineproto-5-updown: line protocol on inte***ce fastethernet0/24, changed state to up
switch2(config-if)#end
%sys-5-config_i: configured from console by console
switch2#show vlan
四台pc機的配置省略!!!
測試:分別去測試pc1和pc3是通的,pc2和pc4是通的,其他都不通。
OMRON PLC控制兩台水幫浦的啟動故障問題解決方案
一 狀況 在雙良的蒸氣雙效溴化鋰吸收式冷氣機組中,使用歐姆龍的plc c200he cpu42,電源pa204s 來控制兩台水幫浦的啟動。在依次啟動兩台水幫浦時,經常導致plc的電源中斷,從而程式停止執行。二 檢測 1 使用電壓波形測試器來測量兩台水幫浦依次啟動時plc電源pa204s的交流供電端電...
兩台路由器進行級聯如何設定
區域網中存在多台寬頻路由器如何配置 接觸過寬頻路由器的使用者,大抵都了解寬頻路由器上的埠有wan口和lan口之分。寬頻路由器在工作過程中有這樣乙個特點 從lan到wan方向上的資料流預設不受限制通過路由器,從wan到lan方向上預設不能通過。注 無線寬頻路由器的無線接入部分從屬於lan的範圍 也就是...
兩台無線TP LINK路由器做網橋設定方法
兩台無線tp link路由器做網橋的設定方法取一台路由器做主路由,與寬頻接入商的貓相連,根據寬頻的服務商來設定你的上網方式,這裡以電信的寬頻解說,設定路由上網方式為pppoe方式上網,輸入使用者名稱密碼連通網路,選擇無線引數 基本設定 勾上 開啟無線 網段隨便選,但是另外乙個路由器要設定成和這一樣的...