更改端口链路类型脚本

在网络维护的实践中,发现在去企业开通业务的时候,用到譬如华为2326之类的交换机时,需要更改端口的链路类型,现我分享一个自己平时用的更改链路类型的脚本。

脚本如下:

int ethernet 0/0/1
undo port lin
port lin acc
int ethernet 0/0/2
undo port lin
port lin acc
int ethernet 0/0/3
undo port lin
port lin acc
int ethernet 0/0/4
undo port lin
port lin acc
int ethernet 0/0/5
undo port lin
port lin acc
int ethernet 0/0/6
undo port lin
port lin acc
int ethernet 0/0/7
undo port lin
port lin acc
int ethernet 0/0/8
undo port lin
port lin acc
int ethernet 0/0/9
undo port lin
port lin acc
int ethernet 0/0/10
undo port lin
port lin acc
int ethernet 0/0/11
undo port lin
port lin acc
int ethernet 0/0/12
undo port lin
port lin acc
int ethernet 0/0/13
undo port lin
port lin acc
int ethernet 0/0/14
undo port lin
port lin acc
int ethernet 0/0/15
undo port lin
port lin acc
int ethernet 0/0/16
undo port lin
port lin acc
int ethernet 0/0/17
undo port lin
port lin acc
int ethernet 0/0/18
undo port lin
port lin acc
int ethernet 0/0/19
undo port lin
port lin acc
int ethernet 0/0/20
undo port lin
port lin acc
int ethernet 0/0/21
undo port lin
port lin acc
int ethernet 0/0/22
undo port lin
port lin acc
int ethernet 0/0/23
undo port lin
port lin acc
int ethernet 0/0/24
undo port lin
port lin acc

这个是24口交换机的,要是48口的话,可以以这种方式继续增加。

你可能感兴趣的:(链路,华为2326)