• 交换机技术


    vlan的创建:[H3C]vlan vlan-id //创建vlan,并进入vlan视图

                         [H3C-S1-vlan10]name text //配置当前vlan的名称

    vlan的配置:[H3C]interface GigabitEthernet 1/0/1 //进入接口

                         [H3C-GigabitEthernet 1/0/1]port link-type access //接口配置为access模式

                         [H3C-GigabitEthernet 1/0/1]port access vlan 10 //把接口加入到vlan 10

                         [H3C-S1]interface GigabitEthernet 1/0/48 //进入接口

                         [H3C-GigabitEthernet 1/0/48]port link-type trunk //接口配置为trunk模式

                         [H3C-GigabitEthernet 1/0/48]port trunk permit vlan 10 20 //配置trunk干道允许通过vlan

    vlan间路由:[H3C-SI]interface Vlan-interface 10 //进入接口

                         [H3C-S1-Vlan-interface 10]ip address 192.168.10.254 24 //配置IP地址,掩码

    单臂路由: [R1]interface GigabitEthernet 0/0.10 //进入子接口

                         [R1-GigabitEthernet0/0.10]vlan-type dot1q vid 10 //封装vlan标识

                         [R1-GigabitEthernet0/0.10]ip address 192.168.10.254 24 //配置IP地址,掩码

    二层链 静态链路聚合

    路聚合: [SWB] interface Bridge-Aggregation 1 //创建二层聚合组                                                                              

                        [SWB-Bridge-Aggregation 1]quit    

                        [SWB]interface range GigabitEthernet 1/0/21 to GigabitEthernet 1/0/31

                        [SWB-if-range]port link-mode bridge //为网桥口

                        [SWB-if-range]port link-aggregation group 1 //将端口聚合进入二层聚合组

                        [SWB-if-range]quit   

                        [SWB]interface Bridge-Aggregation 1 //进入 interface Bridge-Aggregation 

                        [SWB-Bridge-Aggregation 1]port link-type trunk //设置trunk模式

                        [SWB-Bridge-Aggregation 1]port trunk permit vlan all //配置trunk干道允许通过vlan

  • 相关阅读:
    关于这个 blog
    P6499 [COCI2016-2017#2] Burza 题解
    CF1172F Nauuo and Bug 题解
    CF1479D Odd Mineral Resource 题解
    CF1442E Black, White and Grey Tree 题解
    CF1442D Sum 题解
    CF1025D Recovering BST 题解
    CF1056E Check Transcription 题解
    CF1025F Disjoint Triangles 题解
    红包算法的PHP实现
  • 原文地址:https://www.cnblogs.com/123zhangyue/p/11938361.html
Copyright © 2020-2023  润新知