1
00:00:09,730 --> 00:00:16,600
In this video, I'm going to discuss routed ports on Ethernet switches in this gns3 topology

2
00:00:16,600 --> 00:00:24,030
I have two IOS V layer 2 switches and an IOS V router.

3
00:00:24,190 --> 00:00:27,310
The devices have no configuration.

4
00:00:27,490 --> 00:00:34,520
So they've just booted up and I'll bypass the initial configuration dialog on the router

5
00:00:36,150 --> 00:00:40,470
and let's start by configuring hostnames on the switches

6
00:00:44,320 --> 00:00:54,580
and I'll configure a hostname on the router. So no configuration has been done on these devices at all.

7
00:00:54,580 --> 00:00:59,680
They're using the default configuration and I've simply changed the hostname.

8
00:00:59,680 --> 00:01:07,570
So show CDP neighbors on switch 1 shows me that switch 2 is available on the gigabit 00 interface

9
00:01:08,460 --> 00:01:16,770
CDP was advertising switch 2 with the name switch until I changed it. On switch 2 show CDP neighbor.

10
00:01:16,900 --> 00:01:21,520
We can see switch 1 connected to Gigabit 00.

11
00:01:21,520 --> 00:01:29,380
We don't see the router on gigabit 01 because the routers interfaces are shut down by default, show

12
00:01:29,830 --> 00:01:35,390
interface gigabit 00 switch port.

13
00:01:35,430 --> 00:01:36,630
Here's the command.

14
00:01:36,760 --> 00:01:40,970
We can see that the interface is enabled as a switch port.

15
00:01:41,010 --> 00:01:51,070
It's using dynamic auto DTP mode or dynamic trunking protocol mode the VLAN that the port belongs

16
00:01:51,070 --> 00:01:58,100
to is VLAN 1 because it wasn't able to negotiate trunking with switch 2.

17
00:01:58,150 --> 00:02:00,520
There are no trunk's configured on the switch.

18
00:02:00,940 --> 00:02:07,690
So show interface gigabit switch port, we can see that it's a static access port negotiation of

19
00:02:07,690 --> 00:02:13,680
trunking is enabled but it hasn't negotiated trunking with the other side.

20
00:02:14,410 --> 00:02:19,700
The interface belongs to VLAN 1 on switch 2

21
00:02:19,720 --> 00:02:21,090
we would see something similar.

22
00:02:21,100 --> 00:02:24,590
So show interface gigabit 00 switch port.

23
00:02:24,730 --> 00:02:31,800
The interface is enabled as a switch port using dynamic auto mode.

24
00:02:31,840 --> 00:02:42,280
So when we look at the VLANs at the moment only VLAN 1 and the other default VLANS are configured

25
00:02:42,490 --> 00:02:44,260
on the switches.

26
00:02:44,260 --> 00:02:49,340
We're not going to worry about FTDI and Token Ring in these videos.

27
00:02:49,680 --> 00:02:58,090
What I could do is create a switch virtual interface or SVI you do that by using the interface VLAN

28
00:02:58,130 --> 00:03:01,940
command, we can see that the interface has gone down.

29
00:03:02,450 --> 00:03:09,640
But what I could do is configure an IP address on this interface and then no shut it.

30
00:03:09,650 --> 00:03:18,010
I could then also do something similar create an SVI or switch to a virtual interface for VLAN

31
00:03:18,010 --> 00:03:18,520
1

32
00:03:21,160 --> 00:03:30,670
and give the switch an IP address and no shut the SVI. Interfaces come up on both sides.

33
00:03:30,670 --> 00:03:39,610
So we should be able to ping switch 2 from switch 1 there's the ping again and we should be able

34
00:03:39,610 --> 00:03:44,120
to ping switch 1 from switch 2.

35
00:03:44,140 --> 00:03:53,770
So the physical interface is a layer 2 interface gigabit 00 is enabled as a switch port interface.

36
00:03:53,770 --> 00:03:59,920
It's a layer 2 interface it supports protocols such as spanning tree.

37
00:04:00,070 --> 00:04:07,960
Notice this port is the root port on switch 2 and it's forwarding, show spending tree here shows that

38
00:04:08,000 --> 00:04:16,480
gigabit 00 is the designated port on this switch and it's also forwarding protocols such as DTP and spanning

39
00:04:16,480 --> 00:04:21,440
tree run across switch ports or layer 2 ports

40
00:04:21,480 --> 00:04:32,880
But what I could do as an example on switch 2 is make the port a routed port by using the command no

41
00:04:32,910 --> 00:04:40,830
switch port interfaces come up and now when we type the show interface gigabit 00 switch port

42
00:04:40,890 --> 00:04:49,200
notice we're told that the switch port is disabled. Whereas on this side it's still enabled as a switch

43
00:04:49,200 --> 00:04:54,210
port and we can see the access VLAN that the port belongs to.

44
00:04:54,570 --> 00:04:57,240
We'll also be able to see whether it becomes a trunk

45
00:04:57,660 --> 00:05:00,890
but that's not true on a routed port.

46
00:05:00,900 --> 00:05:08,860
Another difference between a routed port and a switch port is you can configure an IP address directly

47
00:05:09,340 --> 00:05:11,120
on the interface.

48
00:05:11,140 --> 00:05:14,580
Do show run interface gigabit 00.

49
00:05:15,010 --> 00:05:23,150
Notice it's disabled as a switch port and an IP address has been configured directly on the interface.

50
00:05:23,500 --> 00:05:32,320
Whereas if I try that here and try and configure an IP address it's not recognized.

51
00:05:32,350 --> 00:05:37,260
So at this point, I'll just change that IP address to make it consistent

52
00:05:37,930 --> 00:05:39,980
because this is switch 2.

53
00:05:40,400 --> 00:05:50,020
But notice the IP address command is not available on this side because it's currently a switch port.

54
00:05:50,530 --> 00:06:00,300
But if I type no switch port and then IP address notice I can configure the IP address on the interface

55
00:06:00,930 --> 00:06:09,850
do show interface gigabit 00 switch port it is disabled as a switch port.

56
00:06:10,190 --> 00:06:16,640
But I can ping switch 2 through that interface.

57
00:06:16,640 --> 00:06:27,570
So shows spanning tree notice spanning tree is not enabled on gigabit 00 previously gigabit 00 was a

58
00:06:27,570 --> 00:06:29,130
designated port.

59
00:06:29,370 --> 00:06:38,910
But now it's not shown in the output because spanning tree and dynamic trunk protocol do not run on

60
00:06:38,910 --> 00:06:40,150
routed ports.

61
00:06:40,170 --> 00:06:48,630
Gigabit 00 does also not appear on this side, show run interface gigabit 00

62
00:06:48,660 --> 00:06:52,360
shows us that an IP address is configured on the interface.

63
00:06:52,410 --> 00:07:00,070
If I enable this port as a switch port and look at the running config of that interface again.

64
00:07:00,150 --> 00:07:07,390
Notice the IP address has been removed and spanning tree is running on that interface

65
00:07:07,410 --> 00:07:19,020
once again. So interface gigabit00 no switch port IP address 10 122

66
00:07:23,170 --> 00:07:33,400
shows spanning tree, spanning tree is not running on gigabit 00 and I should be able to ping switch 1.

67
00:07:33,730 --> 00:07:42,190
So show IP interface brief shows us that this interface has an IP address configured on it whereas this

68
00:07:42,190 --> 00:07:50,410
interface is a layer 2 interface and the SVI or switch virtual interface is used as the layer

69
00:07:50,410 --> 00:08:00,070
3 interface. So show VLAN  brief notice gigabit 00 is not in the list of interfaces that belonged

70
00:08:00,070 --> 00:08:03,160
to VLAN 1, this interface

71
00:08:03,220 --> 00:08:13,680
Gigabit 01 is a layer 2 interface and belongs to VLAN 1 and has this as it's layer 3 IP address.

72
00:08:13,680 --> 00:08:24,780
So basically when you type no switch port you're turning that interface into a routed interface so it

73
00:08:24,840 --> 00:08:27,540
acts like a router.

74
00:08:28,970 --> 00:08:31,080
So gigabit 01 now

75
00:08:31,260 --> 00:08:39,260
is configured as a routed interface and on a router we will do something similar

76
00:08:39,289 --> 00:08:46,580
no shut the interface and configure an IP address directly on the interface and we should be able to

77
00:08:46,580 --> 00:08:53,520
ping switch 2 through that routed interface which we can.

78
00:08:53,900 --> 00:08:58,930
We could also enable a routing protocol.

79
00:08:59,300 --> 00:09:11,820
So I'll enable EIGRP on all interfaces could do the same here router EIGRP 1 and enable EIGRP

80
00:09:11,850 --> 00:09:20,000
on all interfaces. So show IP EIGRP interfaces its enabled in all interfaces and the neighbor relationship

81
00:09:20,000 --> 00:09:21,360
has been established.

82
00:09:21,620 --> 00:09:28,490
Show IP EIGRP neighbor, the neighbor relationship is established on the gigabit 01 interface not on

83
00:09:28,490 --> 00:09:42,830
the SVI but once again if we changed gigabit 00 to a switch port and then enabled EIGRP on this side

84
00:09:42,880 --> 00:09:46,850
notice the difference in the neighbor relationships.

85
00:09:47,070 --> 00:09:55,470
So show IP EIGRP neighbor, no neighbor relationship is established because I need to make this a switch

86
00:09:55,470 --> 00:10:00,820
port to put them back in the same subnet.

87
00:10:01,000 --> 00:10:08,470
So let's check our pings, can router 2 ping router 1 at the moment it can't and that's probably because

88
00:10:08,470 --> 00:10:10,340
of spanning tree.

89
00:10:10,500 --> 00:10:12,770
Notice that port is learning.

90
00:10:12,810 --> 00:10:20,440
So we've got to wait for spanning tree to converge before the EIGRP can form a neighbor relationship.

91
00:10:20,640 --> 00:10:30,210
Routed ports however don't use spanning tree so they will converge quicker than a spanning tree port will.

92
00:10:30,520 --> 00:10:33,490
So the convergence has just taken place.

93
00:10:33,730 --> 00:10:35,870
EIGRP neighbor relationship is established.

94
00:10:35,890 --> 00:10:37,580
So show IP EIGRP

95
00:10:37,580 --> 00:10:40,680
neighbor notice the difference.

96
00:10:40,680 --> 00:10:49,340
This neighbor which is switch 1 has been learnt on VLAN 1 whereas the router has been learnt on the gigabit

97
00:10:49,380 --> 00:10:55,830
01 interface. So show run interface gigabit 00 and 01

98
00:10:55,840 --> 00:11:03,910
notice the difference switch port is enabled on gigabit 00 no switch port has been configured on gigabit

99
00:11:03,950 --> 00:11:08,190
01 when we ping from switch 2 to switch 1

100
00:11:08,210 --> 00:11:19,120
we're using the SVI interface but when we ping from switch 2 to router 1 we're using the physical interface.

101
00:11:19,410 --> 00:11:25,370
So routed ports are typically used between switches and routers for example where a router connects

102
00:11:25,370 --> 00:11:32,870
you to the Internet, switched of virtual interfaces and switch port interfaces are typically used in

103
00:11:32,870 --> 00:11:41,270
a campus environment where you need to tag multiple VLANs across an interface a routed port doesn't

104
00:11:41,270 --> 00:11:48,320
have the concept of VLANs there are no VLANs you don't run spanning tree and you don't run DTP or

105
00:11:48,320 --> 00:11:50,110
dynamic trunk protocol.

106
00:11:50,180 --> 00:11:55,580
The port is a routed port in the same way that you configure a routed port on a router.

107
00:11:55,940 --> 00:11:58,700
So again show IP EIGRP neighbor.

108
00:11:58,970 --> 00:12:03,910
Notice the difference in how the neighbor relationships are formed.

109
00:12:03,910 --> 00:12:07,540
I hope you found this video useful if it's been of benefit to you.

110
00:12:07,610 --> 00:12:11,650
Please like it, please subscribe to my YouTube channel.

111
00:12:11,660 --> 00:12:13,180
I wish you all the very best.

