华为交换机接口批量加入vlan的方法

华为交换机接口单独加入vlan太麻烦,思科有批量加入vlan的方法,华为的如下:

方法一:
[~XY-H-E6810-S21-NET1397]int range 10GE1/0/1 to 10GE1/0/20
[~XY-H-E6810-S21-NET1397-port-group]port link-type access
[*XY-H-E6810-S21-NET1397-port-group]port default vlan 10
[*XY-H-E6810-S21-NET1397-port-group]undo shutdown
[*XY-H-E6810-S21-NET1397-port-group] commit

方法二:

[~XY-H-E6810-S21-NET1397]port-group g1
[*XY-H-E6810-S21-NET1397-port-group-g1]group-member 10GE 2/0/1 to 10GE 2/0/20
[*XY-H-E6810-S21-NET1397-port-group-g1]port link-type access
[*XY-H-E6810-S21-NET1397-port-group-g1]port default vlan 252

[*XY-H-E6810-S21-NET1397-port-group-g1]undo shutdown
[*XY-H-E6810-S21-NET1397-port-group-g1]commmit

原文链接:https://blog.csdn.net/weixin_57636220/article/details/120967118?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165277696416781818717404%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165277696416781818717404&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-4-120967118-null-null.nonecase&utm_term=%E5%8D%8E%E4%B8%BA

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
文明发言,共建和谐米科社区
提交
头像

昵称

取消
昵称表情图片