交换机技术

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

猜你喜欢

转载自www.cnblogs.com/lhh1301201979/p/10914802.html