05-25-2011 10:41 PM - edited 03-04-2019 12:31 PM
Hello: I'd like to know what is the purpose for connecting a router to a switch access port (so far i've only configured router - switch links as trunk)
For example:
Router:
interface FastEthernet0/0
description Link to Switch
ip address 10.1.1.1 255.255.255.0
Switch:
interface FastEthernet0/2
description Link to Router
switchport access vlan 11
switchport mode access
Thanks in advance.
David
Solved! Go to Solution.
05-26-2011 02:19 PM
hello David. if you want to pass only one VLAN through from the router to the switch, then you make the switch port an access port.
using your example,
switchport access vlan 11
if this is a layer 2 switch that does not do routing, then any other switch port that is not configured for vlan 11 will not have access to the router's interface.
say on the switch you configure 5 other ports to access vlan 11. They will be able to access the router and access each other, because they are all in the same VLAN. say you have another 3 ports on the switch that are in VLAN 1, they will be able to access each other, but wont be able to access the devices on VLAN 11.
Whereas, if you configured trunking between the router and the switch, the router will pass broadcast traffic for both VLAN 1 and VLAN 11.
so in short, you can use the access port configuration to segregate the network or if you have only one vlan to pass between the layer 2 switch and the router.
please rate if this helps!
05-25-2011 11:49 PM
Hi,
it depends on your LAN topology.
There might be only one VLAN/subnet used.
Or there is an L3 switch inside the LAN providing inter-VLAN routing.
It that cases you don't need any trunk configured on your router.
HTH,
Milan
05-26-2011 02:19 PM
hello David. if you want to pass only one VLAN through from the router to the switch, then you make the switch port an access port.
using your example,
switchport access vlan 11
if this is a layer 2 switch that does not do routing, then any other switch port that is not configured for vlan 11 will not have access to the router's interface.
say on the switch you configure 5 other ports to access vlan 11. They will be able to access the router and access each other, because they are all in the same VLAN. say you have another 3 ports on the switch that are in VLAN 1, they will be able to access each other, but wont be able to access the devices on VLAN 11.
Whereas, if you configured trunking between the router and the switch, the router will pass broadcast traffic for both VLAN 1 and VLAN 11.
so in short, you can use the access port configuration to segregate the network or if you have only one vlan to pass between the layer 2 switch and the router.
please rate if this helps!
06-01-2011 06:51 PM
Thank you all for your help.
05-26-2011 05:18 PM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
It's similar to how hubs (or switches w/o VLAN support) and/or routers (pre-Ethernet subinterface/dot1Q support) work.
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