12-19-2015 02:24 AM - edited 03-08-2019 03:09 AM
Hi,
My apologies as I am new to CISCO networking in general.
I have the following scenario.
Equipment:
What I want to be able to to do is to assign certain port ranges for each switch to different VLANS from the router.
for example....
Switch 1 ports 1- 15 can access external router VLAN1
Switch 1 ports 16 - 24 and switch 2 ports 1-10 can access external router VLAN2
Switch 2 ports 11-24 can access external router VLAN3
My questions are:
1. is this possible with my current hardware? Can i simply configure VLANS on the switches and use one port in each of the VLAN ranges for the uplink to the router?
2. For VLAN 2 in the above example, what is the best way to configure a VLAN that spans ports on 2 switches?
3. If I want a certain device connected to a specific port on VLAN1 to be accessible to all other VLANS, how can I enable this?
Please be kind in your responses as I am new to this.
Regards,
James.
12-20-2015 12:53 AM
Hi James,
If I understand correctly, below is what you are trying to achieve?
http://www.networkstraining.com/cisco-router-on-a-stick-with-switch/
You can trunk the switches.
Thanks
12-21-2015 01:53 AM
It does somewhat depend on the capabilities of your (non-Cisco) router and whether it supports the creation of multiple IP interfaces and routing between them. But assuming it does then everything you describe should be possible. To answer your questions:
1. is this possible with my current hardware? Can i simply configure VLANS on the switches and use one port in each of the VLAN ranges for the uplink to the router?
Yes, you can do this.
2. For VLAN 2 in the above example, what is the best way to configure a VLAN that spans ports on 2 switches?
Create the VLAN on both switches and configure the link between the two switches as a trunk allowed to carry VLAN 2.
3. If I want a certain device connected to a specific port on VLAN1 to be accessible to all other VLANS, how can I enable this?
If you configure routing on the router correctly all devices in all VLANs will be able to talk to one another.
12-21-2015 03:11 AM
Hi James,
For your requirement, Please find below answers:
1. is this possible with my current hardware? Can i simply configure VLANS on the switches and use one port in each of the VLAN ranges for the uplink to the router?
3. If I want a certain device connected to a specific port on VLAN1 to be accessible to all other VLANS, how can I enable this?
As mentioned earlier, you need to enable inter-vlan routing. If your switch is L3 device then inter-vlan routing can be enabled on switch itself. If it is L2 switch then,
Inter-Vlan routing vlan need to be enabled using router. Below steps will be required for inter-vlan routing.
1. Switch interface connected to router should be in trunk mode allowing all vlan 1,2 and 3.
2. Sub-interface should be created on router, assigning IP address of specific vlan like:
interface Gi0/0.1
ip address 10.81.0.*
encapsulation dot1Q 1
exit
interface Gi0/0.2
ip address 10.82.0.*
encapsulation dot1Q 2
exit
interface Gi0/0.3
ip address 10.83.0.*
encapsulation dot1Q 3
exit
http://www.cisco.com/c/en/us/support/docs/lan-switching/inter-vlan-routing/41860-howto-L3-intervlanrouting.html
Regards,
Atul Choudhary
Rate if it helps
12-21-2015 05:18 AM
These are Cisco commands and he said that this is not a Cisco router.
My interpretation was that the router would have 3 physical interfaces and 3 connections to the switch in which case dot1q tagging is not appropriate here.
12-24-2015 02:56 AM
I question the need to configure a trunk port to connect switch 1 and switch 2. If the objective is that both switch 1 and switch 2 will participate in vlan 2 and that any port in vlan 2 will be able to communicate with the router on its port in vlan 2 then it seems to me that all that is needed is for an access port on switch 1 in vlan 2 should connect to an access port on switch 2 in vlan 2. Both switches would share vlan 2 and any port in vlan 2 should access the router on its vlan 2 interface and no trunk required.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide