06-01-2009 01:58 AM - edited 03-06-2019 06:01 AM
Hi,
I need to setup a 3750 and a 3845 in the same vlan for a test. I'm thinking the only thing i need to do is to configure a subinterface on the 3845. Pls advice i'm missing something impt
3750
-------
interface gi1/0/5
switchport access vlan 20
3845
------
interface gi0/0.20
encapsulation dot1q 20
06-01-2009 02:16 AM
Hi
U dnot need to setup the sub-interface on the router u can do the same with the main interface just configure the ip on the interface as per the same subnet.
Thanks
Mahmood
06-01-2009 03:07 AM
You would normally only need to use subinterfaces on the 3845 if your "trunk" multiple VLANs from your 3750. Since it appears your 3750 port is an access port, you should be able to just use the 3845's main interface.
06-01-2009 03:27 AM
Hi,
Router(routing port) and Switch(switch port) take different approach.
Vlan just decide whether to transfer of the packet in a switch.
Therefor, As Mahmood illustrates you can just configure the ip on the interface of the same subnet.
By the way, when you configure the dot1q on the interface, router gives tag to packet and switch drops it.
HTH
Tomoyuki
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