01-18-2008
11:42 PM
- last edited on
03-25-2019
03:58 PM
by
ciscomoderator
Cisco 2851 with two integrated 10/100/1000 ports and im trying to configre them as switchport (switchport access vlan X) but I don't see an available command, does this switch not support gigabit ports to switchport? I'm able to configure other FastEthernet ports to switchport but not the gigabit port.
Thanks.
01-18-2008 11:59 PM
command : sw mod access
01-19-2008 12:03 AM
no that's doesn't work
Router(config-if)#sw mod access
^
% Invalid input detected at '^' marker.
01-19-2008 12:06 AM
Hi,
In order to let a layer 3 port to act as a Layer 2 port you must use the interface configuration command: switchport.
After this command you must use that interface as a Layer 2 interface.
I hope this helps.
Best regards.
Massimiliano.
01-19-2008 12:12 AM
i know that but it is not happening on this one
01-19-2008 01:33 AM
Hi Nawaz,
The 2851 is a Cisco router, and the integrated GE interfaces of Cisco routers doesn't support to be configured as switchports.
BR,
Mohammed Mahmoud.
11-25-2024 05:10 AM
16 years later and your reply helped me lol thank you.
I'm messing around with an old 2945 and I was testing some settings on the integrated port and the switchport command was not valid, but it works fine on the gig ports on the ehwic.
11-25-2024 09:37 AM
Yes it is a very old post, but the information is still helpful. The 2851 of the original post and the 2945 of your post are "routers" and the built in interfaces are dedicated layer 3 functions, so switchport is not supported on them. Your ehwic is more flexible, and switchport is reasonable for it.
01-19-2008 03:38 AM
these are built in router ports not a layer2/3 switch thus you cannot configure them as switchports. You would have to buy the optional 4, 8, 16 port switch modules to fit into one of the slots if you want this feature otherwise get a manageable switch and use the 2800 as a router on a stick for the routing.
11-25-2024 10:51 AM - edited 11-28-2024 11:24 AM
@nawas wrote:Cisco 2851 with two integrated 10/100/1000 ports and im trying to configre them as switchport (switchport access vlan X) but I don't see an available command, does this switch not support gigabit ports to switchport? I'm able to configure other FastEthernet ports to switchport but not the gigabit port. Favorite Music
Thanks.
The Cisco 2851 router does not natively support configuring its gigabit ports as switchports (e.g., switchport access vlan X). The gigabit ports on the 2851 are typically routed interfaces, not switchports. To use them as switchports, you would need to install a switch module or use a different device that supports Layer 2 switching on gigabit ports.
12-22-2024 12:25 PM
Just want to add, that many router routed ports may support some L2 processing using a L2 bridging capability. So, it's not necessarily true such ports only support L3.
Additional information: https://www.cisco.com/c/en/us/support/docs/lan-switching/integrated-routing-bridging-irb/200650-Understanding-Bridge-Virtual-Interface.html
BTW, I know @Richard Burts is aware of this capability, as he mentioned it years ago in another thread, but as it's NOT a direct substitute for switch port mode, I suspect he didn't see the need to mention it, but it's the kind of feature many might be unaware of.
12-23-2024 08:19 AM
Perhaps it is a matter of semantics. Joseph makes an interesting point that some layer 2 functionality (bridging) can be configured on the router interfaces. I am aware of that and did not mention it because I did not think it was part of the question in the original post. The OP specifically asked about configuring switchport on the router interface. I answered that specific question "The 2851 of the original post and the 2945 of your post are "routers" and the built in interfaces are dedicated layer 3 functions, so switchport is not supported on them" Joseph correctly answers a different question "can layer 2 functions be configured on the router interfaces". So we are both correct. I hope the original poster has learned helpful information from both of us.
12-23-2024 09:48 AM
BTW, @Richard Burts hopefully you didn't take my reply implying there was anything incorrect about your original reply, because there wasn't.
Your reply and a few others, specifically mentioned such ports couldn't be configured as switchports; also correct.
However, a couple of replies (not yours) also appeared to imply, or explicitly state, that such router ports could only be used as L3 ports, which is not always the case. The latter is what prompted my reply.
As to OP's original question, he didn't go into detail what he wants to accomplish, besides using the switchport command. So, possibly (doubtful, IMO) a bridged mode port might meet his need (or perhaps a routed interface with subinterfaces to match multiple VLANs). (Personally, I'm curious what he actually does want to accomplish using a router port as a L2 port.)
12-24-2024 07:45 AM
@Joseph W. Doherty I appreciate the follow up. I did not take your reply as implying that my answer was incorrect. Both of our answers were correct in the context that they addressed. I specifically addressed the part of the discussion about configuring interfaces as switchport. You addressed (correctly) the suggestion that the interfaces have no layer 2 capability.
I agree that it is not clear why the OP wanted to configure the interface as a switchport. And if we knew what was the intention we would be able to give better advice.
12-23-2024 09:01 AM
The GigabitEthernet ports on the Cisco 2851 are routed ports by default and do not support the switchport command. They are intended for Layer 3 configurations, unlike the FastEthernet ports, which can be used as Layer 2 switchports. If you need switching capabilities, you'll need an external switch or a different router model that supports Layer 2 on Gigabit ports.
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