首页新闻资讯管理维护网络安全机房管理部署集成网管工具网管资料专题论坛 杂志
当前位置:首页 >> 管理维护 >> VLAN >> 给大家分享一个Vlan小实验(2)
给大家分享一个Vlan小实验(2)
来源:中国IT实验室 作者: 发布时间:2008-05-23
 接下来,将PC1和PC2加入到Vlan2、PC3和PC4加入到Vlan3:
    Switch#configure terminal
    Enter configuration commands, one per line.  End with CNTL/Z.
    Switch(config)#hostname Switch1
    Switch1(config)#interface FastEthernet0/1
    Switch1(config-if)#switchport mode access
    Switch1(config-if)#switchport access vlan 2
    Switch1(config-if)#exit
    Switch1(config)#interface FastEthernet0/2
    Switch1(config-if)#switchport mode access
    Switch1(config-if)#switchport access vlan 2
    Switch1(config-if)#exit
    Switch1(config)#interface FastEthernet0/3
    Switch1(config-if)#switchport mode access
    Switch1(config-if)#switchport access vlan 3
    Switch1(config-if)#exit
    Switch1(config)#interface FastEthernet0/4
    Switch1(config-if)#switchport mode access
    Switch1(config-if)#switchport access vlan 3
    Switch1(config-if)#exit
    验证:
    PC1àPC2
    C:>ping 192.168.10.3
    Pinging 192.168.10.3 with 32 bytes of data:
    Reply from 192.168.10.3: bytes=32 time=60ms TTL=241
    Reply from 192.168.10.3: bytes=32 time=60ms TTL=241
    Reply from 192.168.10.3: bytes=32 time=60ms TTL=241
    Reply from 192.168.10.3: bytes=32 time=60ms TTL=241
    Reply from 192.168.10.3: bytes=32 time=60ms TTL=241
    Ping statistics for 192.168.10.3:     Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
         Minimum = 50ms, Maximum =  60ms, Average =  55ms
    PC1àPC3
    C:>ping 192.168.10.4
    Pinging 192.168.10.4 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 192.168.10.4:
         Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),
    Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum =  0ms, Average =  0ms
    PC1àPC4
    C:>ping 192.168.10.5
    Pinging 192.168.10.5 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.
    Ping statistics for 192.168.10.5:
         Packets: Sent = 5, Received = 0, Lost = 5 (100% loss),
    Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum =  0ms, Average =  0ms
(责任编辑:JP)
阅读次数:
快速检索
推荐文章
 
网友评论
评论加载中…
 
友情链接 | 欢迎投稿 | 杂志发行 | 广告报价 | 人才招聘 | 服务条款 | 免责声明 | 隐私保护 | 关于网管员世界
CopyRight © 2001-2008 [网管员世界 www.365master.com] All Rights Reserved.
《网管员世界》杂志,专为网管服务的刊物!