美文网首页
华为交换机开荒脚本

华为交换机开荒脚本

作者: 木子_vajra | 来源:发表于2024-05-09 19:59 被阅读0次

    啥也不多说了,懂得都懂,上脚本!

    sy
    #
    sysname 4FX-ZhongKong1
    
    #
    vlan batch 80 100 to 101
    
    vlan 80
     description HLW_SheBei
    vlan 100
     description = HuLianWangGuanLi =
    vlan 101
     description = AP-GuanLi =
    #
    interface Vlanif100
     description = HuLianWangGuanLi =
     ip address 10.1.100.52 255.255.255.0
    #
    interface Eth-Trunk1
     description Core-1/0/10
     port link-type trunk
     undo port trunk allow-pass vlan 1
     port trunk allow-pass vlan 2 to 4094
     mode lacp
    #
    interface GigabitEthernet0/0/1
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/2
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/3
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/4
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/5
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/6
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/7
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/8
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/9
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/10
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/11
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/12
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/13
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/14
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/15
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/16
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/17
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/18
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/19
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/20
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/21
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/22
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/23
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/24
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/25
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/26
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/27
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/28
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/29
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/30
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/31
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/32
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/33
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/34
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/35
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/36
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/37
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/38
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/39
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/40
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/41
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/42
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/43
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/44
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/45
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/46
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/47
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface GigabitEthernet0/0/48
     port link-type access
     port default vlan 80
     stp edged-port enable
    
    #
    interface XGigabitEthernet0/0/1
     eth-trunk 1
    #
    interface XGigabitEthernet0/0/2
     eth-trunk 1
    #
    interface XGigabitEthernet0/0/3
     eth-trunk 1
    #
    interface XGigabitEthernet0/0/4
     eth-trunk 1
    #
    undo icmp name timestamp-request receive
    #
    ip route-static 0.0.0.0 0.0.0.0 10.1.100.254
    #
    snmp-agent
    snmp-agent local-engineid 800007DB03CCD73C151030
    snmp-agent community read cipher %^%#/DGYR{[:N7!\iLOOaPi(8-5N65R67V-%a9;i_C&9&]b]0IX0!FuUM;GRkFxGC*1,Dx*izH#/$LVt%Ap1%^%# mib-view view_ALL-123456
    snmp-agent community write cipher %^%#:5)t$EA1AG<[P4OXJov1pqlIF/RP!"*BX.SRqPdYS!PZ&(4g8:2$B{Aj";OU|Ze_Q|Rm82]Y+=,Vnd}!%^%# mib-view view_ALL-123456
    snmp-agent sys-info version v2c v3
    snmp-agent mib-view included view_ALL iso
    snmp-agent trap source Vlanif100
    snmp-agent trap enable
    snmp-agent protocol source-status all-interface
    undo snmp-agent protocol source-status ipv6 all-interface
    #
    stelnet server enable
    ssh user admin
    ssh user admin authentication-type password
    ssh user admin service-type stelnet
    ssh client first-time enable
    ssh server-source -i Vlanif100
    ssh server cipher aes256_ctr aes128_ctr
    ssh server hmac sha2_256
    ssh server key-exchange dh_group16_sha512 dh_group15_sha512 dh_group14_sha256 dh_group_exchange_sha256
    ssh client cipher aes256_ctr aes128_ctr
    ssh client hmac sha2_256
    ssh client key-exchange dh_group16_sha512 dh_group15_sha512 dh_group14_sha256 dh_group_exchange_sha256
    ssh server dh-exchange min-len 2048
    ssh server publickey ecc dsa rsa
    
    
    user-interface vty 0 4
     authentication-mode aaa
    
    #
    q
    #
    sa f
    
    
    #
    
    

    相关文章

      网友评论

          本文标题:华为交换机开荒脚本

          本文链接:https://www.haomeiwen.com/subject/nissfjtx.html