Cisco 3560 and Vlans (500 points up for grabs here)
we have 2 cisco 3560 switches connected together via fibre using a sfp module runnung as a 802.1q trunk. I have set up 3 vlans on both switches.
|---------| |---------|
| --------| __________ |---------|
A Fibre B
hostname A
interface Vlan1
ip address 192.168.1.254
interface Vlan 10
ip address 192.168.10.254
interface Vlan 20
ip address 192.168.20.254
interface range fa 0/1 - 12
switchport mode access
switchport access vlan 10
interface range fa 0/13 -24
switchport made access
switchport access vlan 20
I have set the GI0/1 to a 802.1q Trunk.
I have configured swith B in a very similar fassion, but given the commands
interface vlan 1
ip address 192.168.1.253
interface vlan 10
ip address 192.168.10.253
interface vlan 20
ipaddress 192.168.20.253
again i have set gi0/1 to a 802.1q trunk.
I have set devices in each vlan to have a default gateway of the vlan address on router A.
My question is is the the correct way to do this, do I need to assign a ip address to each vlan on each switch or should i just assign address's on switch A, I seemd to have a few connectivity issues until I issued a "ip routing" on each switch.
It does seem to be working but is it correct.
Thanks very much
Start Free Trial