其他分享
首页 > 其他分享> > 锐捷汇聚交换机配置脚本

锐捷汇聚交换机配置脚本

作者:互联网

Enable
config
hostname xxxxxxxxx设备名称
errdisable recovery interval 120
spanning-tree
rldp enable
ip dhcp snooping
address-bind ipv6-mode compatible
username 账户 password 密码
nfpp
log-buffer logs 1 interval 300
log-buffer entries 1024
service password-encryption
logging userinfo command-log
logging file flash:SYSTEMLOG 6291456
enable password Esw@lut2019#
vlan 1800
name LUT_SwitchManagerVlan_BenXiaoQu
!
vlan 1117
name Monitor_2qi
!
vlan 501
name CampusMonitor
!
vlan 1301
name mengjinduka
!
vlan 2708
name qianyuan9#_Youxian
!
interface range GigabitEthernet 0/1-17
switchport access vlan 2708
spanning-tree bpduguard enable
spanning-tree portfast
rldp port loop-detect shutdown-port
ip verify source port-security
Arp-check
!
interface GigabitEthernet 0/18
switchport access vlan 501
spanning-tree bpduguard enable
spanning-tree portfast
rldp port loop-detect shutdown-port
ip verify source port-security
Arp-check
!
interface range GigabitEthernet 0/19-20
switchport access vlan 1301
spanning-tree bpduguard enable
spanning-tree portfast
rldp port loop-detect shutdown-port
ip verify source port-security
Arp-check
!
interface range GigabitEthernet 0/21-22
switchport access vlan 1117
spanning-tree bpduguard enable
spanning-tree portfast
rldp port loop-detect shutdown-port
ip verify source port-security
Arp-check
!
interface GigabitEthernet 0/23
switchport mode trunk
switchport trunk native vlan 1800
switchport trunk allowed vlan only 1800,2708,501,1301,1117
!
interface GigabitEthernet 0/24
switchport mode trunk
switchport trunk native vlan 1800
switchport trunk allowed vlan only 1800,2708,501,1301,1117
To_S2928G-E_10.127.2.145
!
interface range TenGigabitEthernet 0/25-27
switchport mode trunk
switchport trunk native vlan 1800
switchport trunk allowed vlan only 1800,2708,501,1301,1117
spanning-tree bpdufilter enable
ip dhcp snooping trust
no nfpp arp-guard enable
no nfpp dhcp-guard enable
no nfpp dhcpv6-guard enable
no nfpp icmp-guard enable
no nfpp ip-guard enable
no nfpp nd-guard enable
!
interface TenGigabitEthernet 0/28
description To_S6220_10.127.0.8
switchport mode trunk
switchport trunk native vlan 1800
switchport trunk allowed vlan only 1800,2708,501,1301,1117
spanning-tree bpdufilter enable
ip dhcp snooping trust
no nfpp arp-guard enable
no nfpp dhcp-guard enable
no nfpp dhcpv6-guard enable
no nfpp icmp-guard enable
no nfpp ip-guard enable
no nfpp nd-guard enable
!
interface VLAN 1800
description SW_manger
ip address 10.127.2.144 255.255.248.0
!
ntp update-calendar
ntp server 10.127.0.1
!
ip route 0.0.0.0 0.0.0.0 10.127.0.1
!
snmp-server community lutSNC2018 ro
snmp-server community lutRILL2018 rw
!
line console 0
line vty 0 4
login local
!
End
Wr
!

标签:enable,锐捷,switchport,nfpp,vlan,汇聚,交换机,trunk,port
来源: https://www.cnblogs.com/xiangdongzhang/p/16329096.html