码迷,mamicode.com
首页 > 其他好文 > 详细

H3C交换机设置

时间:2014-11-25 23:45:49      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:h3c   交换机   vlan   设置   

****************************************交换机型号:H3C  S3100V2*****************************************

1. 恢复出厂设置命令: <H3C> reset  saved-configuration  (后面重启时注意选择Y/N)

2. 查看当前设置命令: <H3C> display  current-configuration

3. 划分VLAN命令:<H3C> system-view  (进入系统视图)

                                [H3C] vlan 2   (创建VLAN 2)

                                [H3C] port Ethernet 1/0/13 to Ethernet 1/0/24   (划分端口Ethernet 1/0/13 到 Ethernet 1/0/24为VLAN 2)

                                [H3C-vlan2] display vlan 2  (查看划分结果)

                                [H3C-vlan2] quit

4. 端口隔离划分(即B口可以访问A口,C口可以访问A口,但B和C之间无法相互访问):

                                <H3C> system-view 

                                [H3C] vlan 2   [H3C-vlan2] quit ------------- [H3C] vlan 3   [H3C-vlan3] quit --------- [H3C] vlan 4   [H3C-vlan4] quit

                                [H3C] interface Ethernet 1/0/1

                                [H3C-Ethernet1/0/1] port link-type hybrid

                                [H3C-Ethernet1/0/1] undo port hybrid vlan 1

                                [H3C-Ethernet1/0/1] port hybrid vlan 2 3 4 untagged

                                [H3C-Ethernet1/0/1] port hybrid pvid vlan 2

                                [H3C-Ethernet1/0/1] quit

                                ------------------------------------------------------------------------------- 

                                [H3C] interface Ethernet 1/0/2

                                [H3C-Ethernet1/0/2] port link-type hybrid

                                [H3C-Ethernet1/0/2] undo port hybrid vlan 1

                                [H3C-Ethernet1/0/2] port hybrid vlan 2 3 4 untagged

                                [H3C-Ethernet1/0/2] port hybrid pvid vlan 3

                                [H3C-Ethernet1/0/2] quit

                                -------------------------------------------------------------------------------

                                [H3C] interface Ethernet 1/0/3

                                [H3C-Ethernet1/0/3] port link-type hybrid

                                [H3C-Ethernet1/0/3] undo port hybrid vlan 1

                                [H3C-Ethernet1/0/3] port hybrid vlan 2 3 4 untagged

                                [H3C-Ethernet1/0/3] port hybrid pvid vlan 4

                                [H3C-Ethernet1/0/3] quit

 

 

 

 

 

 

H3C交换机设置

标签:h3c   交换机   vlan   设置   

原文地址:http://blog.csdn.net/waerpcj/article/details/41487851

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!