zoukankan      html  css  js  c++  java
  • 交换机做Channel-Group

       
    core1#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    core1(config)#inter range gi0/1-4
    core1(config-if-range)#do show etherch sum
    Flags:  D - down        P - bundled in port-channel
            I - stand-alone s - suspended
            H - Hot-standby (LACP only)
            R - Layer3      S - Layer2
            U - in use      f - failed to allocate aggregator

            M - not in use, minimum links not met
            u - unsuitable for bundling
            w - waiting to be aggregated
            d - default port


    Number of channel-groups in use: 1
    Number of aggregators:           1

    Group  Port-channel  Protocol    Ports
    ------+-------------+-----------+-----------------------------------------------
    2      Po2(SU)          -        Gi0/49(P)   Gi0/50(P)

    core1(config-if-range)#channel-group ?
      <1-6>  Channel group number

    core1(config-if-range)#channel-group 1 mode on
    Creating a port-channel interface Port-channel 1

    core1(config-if-range)#do show etherch sum
    Flags:  D - down        P - bundled in port-channel
            I - stand-alone s - suspended
            H - Hot-standby (LACP only)
            R - Layer3      S - Layer2
            U - in use      f - failed to allocate aggregator

            M - not in use, minimum links not met
            u - unsuitable for bundling
            w - waiting to be aggregated
            d - default port


    Number of channel-groups in use: 2
    Number of aggregators:           2

    Group  Port-channel  Protocol    Ports
    ------+-------------+-----------+-----------------------------------------------
    1      Po1(SU)          -        Gi0/1(D)    Gi0/2(P)    Gi0/3(D)
                                     Gi0/4(D)
    2      Po2(SU)          -        Gi0/49(P)   Gi0/50(P)

    core1(config-if-range)#switch mode trunk
    core1(config-if-range)#int po1
    core1(config-if)#switchport trunk ?
      allowed  Set allowed VLAN characteristics when interface is in trunking mode
      native   Set trunking native characteristics when interface is in trunking mode
      pruning  Set pruning VLAN characteristics when interface is in trunking mode

    core1(config-if)#switchport trunk allowed vlan 302
    core1(config-if)#end
    core1#sh run int po 1
    Building configuration...

    Current configuration : 89 bytes
    !
    interface Port-channel1
    switchport trunk allowed vlan 302
    switchport mode trunk
    end

    core1#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    core1(config)#int po2
    core1(config-if)#switch trunk ?
      allowed  Set allowed VLAN characteristics when interface is in trunking mode
      native   Set trunking native characteristics when interface is in trunking mode
      pruning  Set pruning VLAN characteristics when interface is in trunking mode

    core1(config-if)#switch trunk all
    core1(config-if)#switch trunk allowed vlan 201
    core1(config-if)#
    core1(config-if)#end
    core1#wr
    Building configuration...
    [OK]
    core1#



    core2>en
    Password:
    core2#show etherch sum
    Flags:  D - down        P - bundled in port-channel
            I - stand-alone s - suspended
            H - Hot-standby (LACP only)
            R - Layer3      S - Layer2
            U - in use      f - failed to allocate aggregator

            M - not in use, minimum links not met
            u - unsuitable for bundling
            w - waiting to be aggregated
            d - default port


    Number of channel-groups in use: 1
    Number of aggregators:           1

    Group  Port-channel  Protocol    Ports
    ------+-------------+-----------+-----------------------------------------------
    1      Po1(SU)          -        Gi0/49(P)   Gi0/50(P)

    core2#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    core2(config)#inter range gi0/49-50
    core2(config-if-range)#channel-g
    core2(config-if-range)#channel-group 2 mode on
    Creating a port-channel interface Port-channel 2
    core2(config-if-range)#do show inter trunk

    Port        Mode             Encapsulation  Status        Native vlan
    Po2         on               802.1q         trunking      201

    Port        Vlans allowed on trunk
    Po2         1-4094

    Port        Vlans allowed and active in management domain
    Po2         1-26,30,200-202,300-302

    Port        Vlans in spanning tree forwarding state and not pruned
    Po2         1-26,30,200-202,300-302


    core2(config-if-range)#do show etherch sum
    Flags:  D - down        P - bundled in port-channel
            I - stand-alone s - suspended
            H - Hot-standby (LACP only)
            R - Layer3      S - Layer2
            U - in use      f - failed to allocate aggregator

            M - not in use, minimum links not met
            u - unsuitable for bundling
            w - waiting to be aggregated
            d - default port


    Number of channel-groups in use: 2
    Number of aggregators:           2

    Group  Port-channel  Protocol    Ports
    ------+-------------+-----------+-----------------------------------------------
    1      Po1(SD)          -
    2      Po2(SU)          -        Gi0/49(P)   Gi0/50(P)

    core2(config-if-range)#exit
    core2(config)#int rang gi0/1-4
    core2(config-if-range)#channel-group 1 mode on
    core2(config-if-range)#switch mode trunk
    core2(config-if-range)#switch trunk allowed vlan 302
    core2(config-if)#switch trunk ?
      allowed  Set allowed VLAN characteristics when interface is in trunking mode
      native   Set trunking native characteristics when interface is in trunking mode
      pruning  Set pruning VLAN characteristics when interface is in trunking mode

    core2(config-if)#switch trunk allowed vlan 201
    core2(config-if)#end
    core2#wr
    Building configuration...
    [OK]
    core2#

  • 相关阅读:
    数据库性能优化之冗余字段的作用
    SQL里面的排序语句desc和ASC有什么区别
    Mybatis@options注解属性useGeneratedKeys,keyProperty,keyColumn的使用
    关于resultType与parameterType的基本使用和区别
    阿里云Centos7的部署springboot后mysql中文问号乱码
    LINUX下启动/停止/重启MYSQL
    CondenseNet:可学习分组卷积,原作对DenseNet的轻量化改造 | CVPR 2018
    MnasNet:经典轻量级神经网络搜索方法 | CVPR 2019
    MobileNetV1/V2/V3简述 | 轻量级网络
    ShuffleNetV1/V2简述 | 轻量级网络
  • 原文地址:https://www.cnblogs.com/flaaash/p/3200813.html
Copyright © 2011-2022 走看看