close

利用VLAN設定:

1.讓PC0和PC2能互通,但無法與PC1和PC3相通

2.讓PC1和PC3能互通,但無法與PC0和PC2相通

加上router後,PC0、PC1、PC2、PC3都要能互通

2  

switch1:
en
conf t
interface fa0/11
switchport mode access
switchport access vlan 11
interface fa0/12
switchport mode access
switchport access vlan 12

switch2:
en
conf t
interface fa0/11
switchport mode access
switchport access vlan 11
interface fa0/12
switchport mode access
switchport access vlan 12

switch0:
en
conf t
interface fa0/1
switchport mode trunk
interface fa0/2
switchport mode trunk
interface fa0/3
switchport mode trunk

router5:
en
conf t
interface fa0/0
no ip address
no shutdown 
interface fa0/0.11
encapsulation dot1Q 11
ip address 192.168.11.254 255.255.255.0
interface fa0/0.12
encapsulation dot1Q 12
ip address 192.168.12.254 255.255.255.0

 

參考資料:http://showipprotocols-tw.blogspot.tw/2009/03/lan-vlan-cna-03-007.html

arrow
arrow
    全站熱搜

    RD 發表在 痞客邦 留言(0) 人氣()