华为24口交换机PTN配置脚本

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/11
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/17
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
speed 100
duplex full
quit
int Ethernet 0/0/7
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
authentication-mode aaa
user privilege level 3
quit
super password cipher huawei
quit
save

undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/24
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
quit
int Ethernet 0/0/14
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/15
quit
int Ethernet 0/0/2
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/3
interface GigabitEthernet0/0/1
undo port default vlan
port link-type trunk
port trunk allow-pass vlan 1 to 4094
undo negotiation auto
speed 100
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/4
port default vlan 2505
speed 100
duplex full
quit
int Ethernet 0/0/19
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/5
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/23
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
speed 100
duplex full
quit
aaa
local-user huawei password cipher huawei
local-user huawei level 3
local-user huawei service-type telnet
user-interface vty 0 4
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/10
port default vlan 2505
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/6
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
duplex full
quit
interface GigabitEthernet0/0/2
undo port default vlan
port link-type trunk
port trunk allow-pass vlan 1 to 4094
undo negotiation auto
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/16
port default vlan 2505
speed 100
duplex full
quit
int Ethernet 0/0/1
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/12
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
quit
int Ethernet 0/0/20
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/21
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/18
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/22
port default vlan 2505
首先输入sys在回车
然后粘贴
vlan batch 2505 2520 2600 to 3000
interface Vlanif2520
ip address 10.1.132.11 255.255.248.0
quit
ip route-static 0.0.0.0 0.0.0.0 10.1.30.1
quit
int Ethernet 0/0/8
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
quit
int Ethernet 0/0/9
speed 100
duplex full
quit
int Ethernet 0/0/13
port default vlan 2505
port trunk allow-pass vlan 2600 to 3000
undo negotiation auto
speed 100
duplex full
相关文档
最新文档