通信人家园

标题: 中兴PTN6100 脚本  [查看完整版帖子] [打印本页]

时间:  2013-11-24 23:43
作者: edgar201314     标题: 中兴PTN6100 脚本

conf t
hostname v-hualinzhengquan-1
username who password who privilege 1
username zte password ecc privilege 15
username ptn password ptn privilege 1
show username
multi-user configure
snmp-server view AllView internet included
snmp-server community public view AllView ro
snmp-server community private view AllView rw
snmp-server host 129.2.1.4  trap version 2c public udp-port 162
snmp-server trap-source 129.5.40.14                                       
snmp-server packetsize 8192
snmp-server enable trap SNMP
snmp-server enable trap VPN
snmp-server enable trap BGP
snmp-server enable trap OSPF
snmp-server enable trap RMON
snmp-server enable trap STALARM
logging on
logging trap-enable informational
clock timezone BEIJING 8
interface loopback1         
                                       
ip address 110.5.40.14  255.255.255.255
exit
tmpls lsr-id loopback1   
vlan 3460
exit
interface vlan 3460
ip address 129.5.223.82  255.255.255.252
exit
interface gei_1/9
mcc-vlanid 3460
mcc-bandwidth 100
switchport mode trunk
switchport trunk vlan 3460
switchport trunk native vlan 3460      
exit
interface gei_1/10
mcc-vlanid 3460
mcc-bandwidth 100
switchport mode trunk
switchport trunk vlan 3460
switchport trunk native vlan 3460      
exit
line telnet idle-timeout 30                                      
line telnet absolute-timeout 0
spanning-tree disable
span tran enable
no ip igmp snooping
no dcn enable
router ospf 1                                                   
network 129.5.40.14  0.0.0.255 area 0                              
network 129.5.223.82  0.0.0.255 area 0         
exit
exit
write   
reloat

时间:  2013-12-11 23:08
作者: fgy719960141

这脚本是用什么语言写的   Python吗




通信人家园 (https://www.txrjy.com/) Powered by C114