Ensp模擬器VLAN 技術

Ensp模擬器VLAN 技術


一:實驗要求:


能使相同的VLAN之間正常通訊


二:所需設備:


使用Ensp模擬兩個S3700交換機,四臺PC機


三:技術解釋:


使用VLAN技術,屏蔽廣播風暴


四:實驗拓撲:

163158353.png


五:實驗步驟:


1.開啓所有設備


2.給LSW1更改主機名爲sw1 ,LSW2更改爲sw2


<Huawei>SYS

[Huawei]sysname sw1

[sw1]


<Huawei>SYS

[Huawei]sysname sw2

[sw2]


3.給LSW1添加VLAN10 和 VLAN 20


<sw1>SYS //用戶模式


[sw1]VLAN 10 //在特權模式下新建VLAN10


[sw1-vlan10] //進入VLAN10


[sw1-vlan10]VLAN 20 //新建VLAN20


[sw1-vlan20] //進入VLAN20


4.LSW2添加 VLAN10VLAN20


[sw2]vlan 10


[sw2-vlan10]


[sw2-vlan10]VLAN 20


[sw2-vlan20]


5.LSW1中將PC1加入VLAN 10 PC2加入VLAN 20


[sw1-vlan20]int e0/0/2


[sw1-Ethernet0/0/2]port link-type access


[sw1-Ethernet0/0/2]port default vlan 10


[sw1-Ethernet0/0/2]int e0/0/3


[sw1-Ethernet0/0/3]port link-type access


[sw1-Ethernet0/0/3]port default vlan 20


[sw1-Ethernet0/0/3]


查看VLAN10 VLAN20


[sw1-Ethernet0/0/3]dis vlan


反饋信息的一部分:


-----------------------------------------------------------------1 common UT:Eth0/0/1(U) Eth0/0/4(D) Eth0/0/5(D) 10 common UT:Eth0/0/2(U)


20 common UT:Eth0/0/3(U)


6.LSW2中將PC3加入VLAN 10 PC4加入VLAN 20


[sw2]int e0/0/2


[sw2-Ethernet0/0/2]port link-type access


[sw2-Ethernet0/0/2]port default vlan 10


[sw2-Ethernet0/0/2]int e0/0/3


[sw2-Ethernet0/0/3]port link-type access


[sw2-Ethernet0/0/3]port default vlan 20


[sw2-Ethernet0/0/3]


7.SW1SW2之間都配置中繼口


[sw1-Ethernet0/0/3]int e0/0/1


[sw1-Ethernet0/0/1]port link-type trunk


[sw1-Ethernet0/0/1]port trunk allow-pass vlan all



[sw2-Ethernet0/0/3]int e0/0/1


[sw2-Ethernet0/0/1]port link-type trunk


[sw2-Ethernet0/0/1]port trunk allow-pass vlan all


8.驗證:能使PC1 ping PC3 PC1不能 pingPC2


PC>ping 192.168.10.20



Ping 192.168.10.20: 32 data bytes, Press Ctrl_C to break


From 192.168.10.20: bytes=32 seq=1 ttl=128 time=94 ms


From 192.168.10.20: bytes=32 seq=2 ttl=128 time=62 ms


From 192.168.10.20: bytes=32 seq=3 ttl=128 time=31 ms


From 192.168.10.20: bytes=32 seq=4 ttl=128 time=47 ms


From 192.168.10.20: bytes=32 seq=5 ttl=128 time=46 ms



--- 192.168.10.20 ping statistics ---


5 packet(s) transmitted


5 packet(s) received


0.00% packet loss


round-trip min/avg/max = 31/56/94 ms




PC>ping 192.168.20.10



Ping 192.168.20.10: 32 data bytes, Press Ctrl_C to break


From 192.168.10.10: Destination host unreachable


From 192.168.10.10: Destination host unreachable


From 192.168.10.10: Destination host unreachable


From 192.168.10.10: Destination host unreachable


From 192.168.10.10: Destination host unreachable


實驗完成


魏康平


2013101916:25:53

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章