Table of Contents

Ethernet switch Scripts

I have gotten these from Mark O'Reilly and Mike Mooney

For M6224 switch

This code can be copied, edited and pasted

configure
hostname Top_Switch
enable password password
username admin password password
ip http authentication local
username admin password password level 15
aaa authentication login default local
aaa authentication enable default enable
exit
configure
ip address 192.168.2.98 255.255.255.0
spanning-tree priority 4096

vlan database
vlan 2
exit
interface vlan 2
name iSCSI
exit
interface range ethernet 1/g1-1/g19
switchport mode access
switchport access vlan 2
spanning-tree disable
mtu 9216
no storm-control unicast
exit
interface range ethernet 1/g20-1/g23
switchport mode trunk
switchport trunk allowed vlan add 1,2
mtu 9216
channel-group 1 mode on
exit
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan add 1,2
exit
interface ethernet 1/g24
switchport mode access
switchport access vlan 1
exit
flowcontrol
y
config
cut-through mode
y
exit
copy running-config startup-config
y
reload

For M8024 switch

Configuration for M8024 to 8024F