Pages

Friday, July 10, 2026

Basic vlan on cisco 3560 with cable modem as router

This is mostly for my own notes, but maybe someone might need the info.


CREATE VLAN(S)

conf t
vlan 10
name PRODUCTION
vlan 20
name DEVELOPMENT
exit
exit
show vlan

You will see something like this:


Assign the IPs to the vlans.  This will let you route to them

conf t
interface
vlan 10 ip address 192.168.10.2 255.255.255.0 no shutdown interface vlan 20 ip address 172.20.20.1 255.255.255.0 no
shutdown
exit
exit

Review the status of your work:
show ip interface brief

You will see something like this:

Make sure your switch is routing
conf t
ip routing

shouldn't show anything really.

Assign some ports to the switch.
Here is what the current switch looks like.
We are assigning port 3 to vlan 10 and port 4 to vlan 20


interface gigabitEthernet 0/3
switchport access vlan 10
exit
interface gigabitEthernet 0/4
switchport access vlan 20
exit
exit
show vlan

You'll see something like this:

show ip interface brief

You will need to have something plugged into the ports before you can ping from the switch

Once up, you will need to add in a route to get there.
In this example, i'm just using an ISP cable modem, so it looked like this:



The destination network is 172.20.20.0 and the gateway is the default vlan 1 IP of the switch






No comments:

Post a Comment

Feel free to leave a comment! If you have any information that you think should be included, please do so here and I'll get it added in.