IT运维管理,创造商业价值!
中国IT运维网首页 | 资讯中心 | 运维管理 | 信息安全 | CIO视界 | 云计算 | 最佳案例 | 运维资源 | 专题策划 | 知识库 | 论坛

给大家分享一个Vlan小实验(2)

2008年05月23日
中国IT实验室/
 接下来,将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
发表评论请到:http://bbs.cnitom.com

相关阅读

图文热点

以不变应万变 网络虚拟化应对园区网新挑战
以不变应万变 网络虚拟化应对园区网新挑战Forrester Research的分析师Robert Whiteley认为: “十年以来,虚拟化技术与网络...
OpenShift加入更多新元素 友好面对开发者
OpenShift加入更多新元素 友好面对开发者通过网络进行程序提供的服务称之为SaaS(Software as a Service),而将服务器平台...

本类热点