TechKnowSurge
Cisco CCNA 1.13 Cisco CCNA 3.1 Cisco CCNA 1.6
VideoNetworkFree

DEMO: Routed Ports on a Switch

Layer 3 switches can be configured to operate routed ports alongside standard switch ports, enabling IP-based routing at the interface level. This content covers the commands used to convert a switch port to a routed port and back again on a Cisco 3750.

Complete this video to capture a CTF flag worth 1 point.

About this video

Layer 3 switches differ from standard Layer 2 switches in their ability to support routed ports — interfaces that behave like traditional router ports rather than switching ports. Converting a switch port to a routed port on a Cisco 3750 involves entering interface configuration mode and issuing the no switchport command, which disables switching functionality on that interface. Once converted, the interface accepts an IP address assignment and appears with a status of "routed" in the interface status table, with switchport functionality confirmed as disabled. For the routed port to participate in actual IP routing, the ip routing command must be enabled in global configuration mode, which activates the switch's Layer 3 forwarding capabilities. Without this step, the port holds an IP address but does not route traffic. The configuration is reversible — removing the IP address and applying the switchport command restores the interface to a standard switch port, complete with VLAN membership and switching statistics. This technique becomes particularly relevant when configuring inter-VLAN routing on a Layer 3 switch.

What you'll learn

What's covered

Switch Port to Routed Port

Aligned to

Cisco CCNA
1.13 Describe switching concepts
3.1 Interpret the components of routing table
1.6 Configure and verify IPv4 addressing and subnetting

Key terms

Layer 3
The Network layer of the OSI model, responsible for logical addressing and routing packets between networks.
Switch
A network device that connects devices within a LAN and forwards traffic based on MAC addresses.
Router
A network device that forwards data packets between networks based on IP addresses.
IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Routed Port
A switch port on a multilayer switch that has been configured to operate like a router interface at Layer 3 rather than as a switching port, allowing it to be assigned an IP address and participate in routing protocols. Routed ports are used where a Layer 3 boundary is needed directly on the switch without a separate router.
no switchport
A Cisco IOS command entered on a Layer 3 switch interface that converts a switch port into a routed port capable of Layer 3 routing.

Topics

Networking Layer 3 Switching Routed Ports Cisco Ios Switch Configuration Ip Routing

Transcript

We've taken a look at switch ports on a switch, and we've taken a look at routed ports on a router. Now let's look at what it looks like when we turn a switch port into a routed port. That is, a switch that has switch ports on it, and we turn one of them into a routed port. We can do this on a layer 3 device.

I'm on a layer 3 switch right here, a 3750, and what I'm going to do is configure it to be a routed port, or at least one of the ports to be a routed port. So I have to choose one. First of all I'm going to just do a show ip interface brief and see what ports I have here.

The one I'm going to actually change is going to be this FastEthernet 1/0/48. So let's take a look at what the running config looks like on that right now. I'm going to do show run interface Fa1/0/48, we'll hit enter, and we can see that there's no configurations on it right now.

Turning the port into a routed port

Let's go ahead and jump into that interface and start configuring it. I'm going to get into global configuration mode, go into the interface Fa1/0/48, and we're now configuring the interface.

We pretty much just need two commands to turn this into a routed port. Actually just one turns it into a routed port, and the other one assigns an IP address to it. So we're going to type in no switchport, and that's what turns it into a switch port.

Let's go ahead and take a look at the running config now and see what happens with it. So do show run interface, we'll hit enter, and we see it has the no switchport on there, and it also has a no ip address, because it is expecting an IP address. So let's type in the IP address that we're going to give it. I'm just going to come up with one, so maybe 10.10.10.10, we'll just have all tens there. Well, let's do a zero, so 24. We hit enter, and now this should be set up to be a routed port. It acts as if it's a router.

There is a couple of steps. Because this is a layer 3 switch, it can do routing and utilize this port for routing, but I don't have routing turned on right now. Really, I'm just showing you this to show you one of the differences between these routed ports and a switch port. So I'd have to type in ip routing in the global configuration mode to turn on routing on this.

Checking the settings

What I'm going to do is end out of here, and let's take a look at a few of the settings here. I'm going to do a show run interface and we'll take a look at what it looks like.

Then I'm going to do a show ip interface brief and see what it looks like. There's our IP address that we have assigned to it.

Now I can do a show interface status, and we can see what the status of these different connections are. We're looking for 48, which is routed, so we can see that that's routed from there.

Finally, what we're going to do is a show interface Fa1/0/48 switchport, and we can see that switchport is disabled on it.

Reversing it

Now what I want to do is reverse this. What I can do to reverse this is go back into global configuration mode. I'm going to apply the switchport back onto it. Maybe I'll take off the IP address first, so no ip address, and then I'll do a switchport, which turns it back into a switch port.

So I can end out of this, go back and do my show interface Fa1/0/48 switchport command, and I can see that switchport is enabled and has a bunch of stats on the switch port, and some VLAN information on it.

So this is one way to turn a switch port into a routed port, and then we turned it back into a switch port. We will be using that command later on. We're not going to use this one right away, but we're going to be using it when we turn a layer 3 switch into actually operating at a layer 3, and we'll get into that when we get into VLANs.

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →