This is a short bundle of recipes for dealing with Cisco Catalyst 3560G ethernet switches.
The Cisco Catalyst 3560G switch expects certain things when using its serial console port
(labeled CONSOLE
on the back of the device), pariticularly a 9600 baud rate for the
serial connection.
sudo screen /dev/ttyS0 9600
Note: screen
is a linux command terminal program that can talk over serial lines.
1 - To set up the vlan, enter something like:
Switch# configure terminal
Switch(config)# vlan 9
Switch(config-vlan)# name vlan9
Switch(config-vlan)# state active
Switch(config-vlan)# no shutdown
Switch(config-vlan)# end
2 - Add an individual ethernet port to a vlan:
Switch# configure terminal
Switch(config)# interface Gi/0
Switch(config-if)# switchport access vlan 9
Switch(config-if)# end
3 - Add a range of ports simultaneously:
Switch# configure terminal
Switch(config)# interface range gigabitEthernet 0/1 - 16
Switch(config-if)# switchport access vlan 9
Switch(config-if)# end