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

你可能感兴趣的:(命令,配置,华为,路由,实验)