Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipaconrad/5555795 to your computer and use it in GitHub Desktop.
Save philipaconrad/5555795 to your computer and use it in GitHub Desktop.
A short bundle of recipes for dealing with Cisco Catalyst 3560G network switches.

How to talk to a Cisco Catalyst 3560G Switch

This is a short bundle of recipes for dealing with Cisco Catalyst 3560G ethernet switches.

Setup (Linux-side):

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.

Linux command line:

sudo screen /dev/ttyS0 9600 Note: screen is a linux command terminal program that can talk over serial lines.

How to set up a basic vlan:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment