zoukankan      html  css  js  c++  java
  • hybrid接口

     SW1配置

    vlan batch 2 to 3 100
    interface GigabitEthernet0/0/1
     port hybrid tagged vlan 2 to 3 100
    #
    interface GigabitEthernet0/0/2
     port hybrid pvid vlan 2
     port hybrid untagged vlan 2 100
    #
    interface GigabitEthernet0/0/3
     port hybrid pvid vlan 3
     port hybrid untagged vlan 3 100
    #

    SW2配置

    vlan batch 2 to 3 100
    interface GigabitEthernet0/0/1
     port hybrid tagged vlan 2 to 3 100
    #
    interface GigabitEthernet0/0/2
     port hybrid pvid vlan 100
     port hybrid untagged vlan 2 to 3 100
    #

    PC1测试

    PC>ping 192.168.1.100
    
    Ping 192.168.1.100: 32 data bytes, Press Ctrl_C to break
    From 192.168.1.100: bytes=32 seq=1 ttl=128 time=78 ms
    From 192.168.1.100: bytes=32 seq=2 ttl=128 time=46 ms
    From 192.168.1.100: bytes=32 seq=3 ttl=128 time=78 ms
    From 192.168.1.100: bytes=32 seq=4 ttl=128 time=78 ms
    From 192.168.1.100: bytes=32 seq=5 ttl=128 time=62 ms
    
    --- 192.168.1.100 ping statistics ---
      5 packet(s) transmitted
      5 packet(s) received
      0.00% packet loss
      round-trip min/avg/max = 46/68/78 ms
    
    PC>ping 192.168.1.3
    
    Ping 192.168.1.3: 32 data bytes, Press Ctrl_C to break
    From 192.168.1.2: Destination host unreachable
    From 192.168.1.2: Destination host unreachable
    From 192.168.1.2: Destination host unreachable
    From 192.168.1.2: Destination host unreachable
    From 192.168.1.2: Destination host unreachable
    
    --- 192.168.1.3 ping statistics ---
      5 packet(s) transmitted
      0 packet(s) received
      100.00% packet loss
  • 相关阅读:
    web service
    常用的正则表达式
    xml
    sql helper
    sql server 表连接
    asp.net页面生命周期
    创建简单的ajax对象
    checkbox选中问题
    ES6之扩展运算符 三个点(...)
    Object.assign()的用法 -- 用于将所有可枚举属性的值从一个或多个源对象复制到目标对象,返回目标对象
  • 原文地址:https://www.cnblogs.com/liujunjun/p/12923296.html
Copyright © 2011-2022 走看看