Latest / CyberSecurity Summary / Cisco CCNA in 60 Days
Transcript
- 0:00Speaker 1: Welcome to the deep dive. This is where we take
- 0:02Speaker 1: your sources, dig into them and really pull out the
- 0:06Speaker 1: most important insights. That's right. Today we're kind of pulling
- 0:09Speaker 1: back the curtain on how the Internet, you know, how
- 0:12Speaker 1: all our modern networks actually work underneath it all? Yeah,
- 0:15Speaker 1: the real guts of it. Yeah, exactly. You click a link,
- 0:18Speaker 1: send a message, watch a video. It feels instantaneous, like magic,
- 0:22Speaker 1: doesn't it. It really does. Well, it's definitely not magic.
- 0:24Speaker 1: It's a very carefully designed system. And today we're doing
- 0:28Speaker 1: a deep dive into its core building blocks, switches and routers, and.
- 0:32Speaker 2: Our mission really is to give you a shortcut. This
- 0:35Speaker 2: stuff can be incredibly dense, so we're extracting the let's say,
- 0:38Speaker 2: the must know parts and maybe some surprising bits from
- 0:41Speaker 2: a great resource, the Cisco CCNA and sixty Days Learned
- 0:44Speaker 2: Dot pdf book.
- 0:46Speaker 1: Yeah, and it's got a kind of cool backstory. The
- 0:47Speaker 1: original author, Paul Browning, was actually an ex police officer
- 0:51Speaker 1: in the UK. Oh really, yeah, taught himself it, wrote
- 0:53Speaker 1: the first version because he needed it. But then importantly
- 0:57Speaker 1: he brought in these dual CCIE network architect people like
- 1:01Speaker 1: Daniel Gersh Daryl Brunnick for ITAFA the people who actually
- 1:04Speaker 1: do this stuff day in, day out, exactly as the
- 1:07Speaker 1: book says, they do Internet working full time. So what
- 1:11Speaker 1: you're getting, hopefully is that real world relevance distilled down.
- 1:17Speaker 2: The goal is you walk away feeling informed, maybe have
- 1:19Speaker 2: a couple of aha moments, and just get a better
- 1:22Speaker 2: feel for what's happening behind the scenes without getting totally overwhelmed.
- 1:25Speaker 1: Ideally. Okay, so let's start at the beginning, maybe how
- 1:29Speaker 1: things used to be before we had these intelligent devices.
- 1:32Speaker 1: We had hubs. You call them the network's loud speaker.
- 1:35Speaker 1: That's a good way to put it.
- 1:36Speaker 2: Yeah, hubs were really simple, basically multiport repeaters. Signal comes
- 1:40Speaker 2: in one port, it gets boosted, and then just blasted
- 1:43Speaker 2: out of every other port. Didn't matter who it was for.
- 1:46Speaker 1: So if my computer sends something to yours, everyone else
- 1:48Speaker 1: plugged in got it too.
- 1:49Speaker 2: Everyone got it. Which leads to the biggest problem. Yeah,
- 1:53Speaker 2: one huge collision domain, right.
- 1:56Speaker 1: Like shouting in a crowded room.
- 1:57Speaker 2: You said, Yeah, chaos total, Only one device could really
- 2:02Speaker 2: talk at a time without signals colliding, and they only
- 2:05Speaker 2: worked at half duplex. Couldn't send and receive simultaneously. Performance
- 2:09Speaker 2: was well, not great.
- 2:11Speaker 1: Okay, So hubs were noisy and inefficient. Then came switches,
- 2:15Speaker 1: and here's where you said it gets interested. Maybe counterintuitive
- 2:19Speaker 1: switches increase collision domains.
- 2:21Speaker 2: Yeah sounds weird, right, but it's a very good thing.
- 2:24Speaker 2: See with the switch, each port essentially becomes its own
- 2:28Speaker 2: collision domain. Traffic is isolated.
- 2:30Speaker 1: Uh okay, so instead of a shouting match, it's.
- 2:32Speaker 2: More like like a smart telephone operator maybe, or an
- 2:35Speaker 2: efficient post office. It directs traffic precisely.
- 2:38Speaker 1: How does it do that? How does it nowhere to
- 2:39Speaker 1: send things?
- 2:40Speaker 2: So switches use something called a content addressable memory table
- 2:44Speaker 2: a CAM table, and this is usually stored in a
- 2:47Speaker 2: special chip and ask to make it super fast?
- 2:49Speaker 1: Okay. The switch listens to.
- 2:51Speaker 2: The traffic and learns the unique hardware address the emmelia
- 2:54Speaker 2: address of whatever device is plugged into each port.
- 2:57Speaker 1: It builds this table, so.
- 2:59Speaker 2: When a frame comes in in, the switch looks at
- 3:01Speaker 2: the destination MSc address, checks its CAM table and says, ah,
- 3:05Speaker 2: that device is on port five, and sends the frame
- 3:08Speaker 2: only out of port five.
- 3:09Speaker 1: Not broadcasting it everywhere like the hub did.
- 3:12Speaker 2: Exactly, huge improvement and efficiency less unnecessary traffic.
- 3:16Speaker 1: Better security makes total sense. So switches are great for
- 3:20Speaker 1: connecting local things BCS, printers, servers, and you mentioned segmenting
- 3:25Speaker 1: networks with VLANs, which I definitely want to get back to.
- 3:28Speaker 2: We will.
- 3:28Speaker 1: But for basic setup, you just need to give it
- 3:30Speaker 1: a name, a host name, and set up promote access right,
- 3:33Speaker 1: prefer secure.
- 3:34Speaker 2: SSH precisely, keep it simple but secure. Now, if switches
- 3:39Speaker 2: handle the local traffic, routers are the big navigators. They
- 3:43Speaker 2: connect different networks.
- 3:44Speaker 1: And you said learning about routers is like what half
- 3:46Speaker 1: the CCNA curriculum easily.
- 3:48Speaker 2: Yeah, it tells you how crucial they are. They're the
- 3:50Speaker 2: devices that really stitch the Internet together, connecting all these
- 3:53Speaker 2: separate local networks.
- 3:54Speaker 1: So they don't just connect networks, they actively learned about them.
- 3:57Speaker 1: They do.
- 3:57Speaker 2: They learn routes, They exchange routing information with routers, and
- 4:01Speaker 2: they figure out the best way to get packets from
- 4:03Speaker 2: networkA to network B, whether that's internal networks or out
- 4:06Speaker 2: to the wider Internet.
- 4:07Speaker 1: Okay, walk me through that. A packet arrives at the
- 4:10Speaker 1: router destined for somewhere else. What happens step by step?
- 4:14Speaker 2: Okay, So first the router receives the frame off the
- 4:16Speaker 2: wire and needs to look inside, so it performs decapsulation.
- 4:20Speaker 2: It strips off the layer two frame, header and trailer.
- 4:23Speaker 2: That information was just for the previous.
- 4:25Speaker 1: Hop, right, like the local delivery instructions exactly.
- 4:28Speaker 2: Then it looks at the layer three packet inside, specifically
- 4:32Speaker 2: the destination IP address, the ultimate disc the ultimate destination. Yes,
- 4:36Speaker 2: it consults its routing table to find the best path
- 4:39Speaker 2: towards that destination IP. Then crucially, it re encapsulates that
- 4:43Speaker 2: layer three packet into a new layer.
- 4:45Speaker 1: Two frame, a new frame.
- 4:47Speaker 2: Why new, because the next hop might be over a
- 4:49Speaker 2: different type of network link. Maybe it came in over ethernet,
- 4:53Speaker 2: but it's going out over say an older ceial link
- 4:55Speaker 2: using HDLC. The frame format needs to match the outgoing link.
- 5:00Speaker 1: Ah, okay, different local delivery instructions for the next leg
- 5:04Speaker 1: of the journey, You got it.
- 5:05Speaker 2: And then it forwards that new frame out the correct interface.
- 5:09Speaker 1: So this leads to that really key point, that aha
- 5:11Speaker 1: moment you mentioned. Yes, this is fundamental.
- 5:15Speaker 2: As a packet travels across multiple networks, multiple routers, the
- 5:19Speaker 2: source and destination IP addresses inside that packet they never change.
- 5:23Speaker 1: They never change. Okay, But the layer two.
- 5:25Speaker 2: Mmy addresses in the frame. They change at every single
- 5:29Speaker 2: hop between routers or other intermediary devices.
- 5:32Speaker 1: Right, the envelope dress stays the same, but the mail
- 5:35Speaker 1: carrier changes at each sorting office.
- 5:37Speaker 2: Perfect analogy. The IP address is the final house address.
- 5:41Speaker 2: Theme address is the specific person carrying the mail between
- 5:44Speaker 2: post offices. Right now, That dynamic is what makes global
- 5:48Speaker 2: routing work alongside local delivery.
- 5:50Speaker 1: And interacting with these routers like switches, usually means using
- 5:54Speaker 1: the command line interface the CLI. It has different modes
- 5:57Speaker 1: it does.
- 5:57Speaker 2: It's hierarchical. You start in user mode, which is very
- 6:00Speaker 2: limited router. Then you enable to get to privileged mode
- 6:03Speaker 2: router hashtag where you can view things and do basic tests.
- 6:07Speaker 2: To make changes, you go into global configuration mode config
- 6:11Speaker 2: T giving router configure hashtag, and from there you might
- 6:14Speaker 2: go into more specific modes like interface configuration, router configure hashtag,
- 6:20Speaker 2: or router configuration.
- 6:22Speaker 1: Kind of nested levels of control exactly.
- 6:24Speaker 2: It prevents accidental changes. You use commands like exit to
- 6:28Speaker 2: go back up a level or credil plus z to
- 6:30Speaker 2: jump straight back to privileged mode.
- 6:32Speaker 1: And for new folks navigating this.
- 6:33Speaker 2: Oh, the question mark is your best friend type it anywhere.
- 6:37Speaker 2: It shows you available commands or options. Tab completion is
- 6:40Speaker 2: also essential. Start typing a command, hit tab, it finishes
- 6:43Speaker 2: it for you, saves typos, and show history is handy
- 6:47Speaker 2: to see what you type before life savers.
- 6:49Speaker 1: I bet okay. So we have the devices, hubs, switches, routers.
- 6:53Speaker 1: We know how they physically move data. Now let's talk
- 6:56Speaker 1: about the language they speak, these models OSI and t ACPIP.
- 7:01Speaker 1: What problem did they solve? Great question?
- 7:03Speaker 2: Before these models, networking was kind of the wild West.
- 7:06Speaker 2: Every vendor had their own way of doing things, and
- 7:08Speaker 2: getting equipment from different companies to talk to each other
- 7:11Speaker 2: was difficult, a nightmare probably pretty much. So these models
- 7:16Speaker 2: OSI being more theoretical with seven layers and TCPIP being
- 7:19Speaker 2: the practical one, which this go often shows as five layers.
- 7:22Speaker 2: Now they created a common framework, a blueprint.
- 7:26Speaker 1: A standard way of thinking about network functions.
- 7:28Speaker 2: Exactly, they divided networking into logical layers physical data, link, network, transport, application,
- 7:35Speaker 2: and so on. This modularity means vendor A can focus
- 7:38Speaker 2: on making a great layer two switch, and vendor B
- 7:40Speaker 2: can make a great layer three router, and they can
- 7:43Speaker 2: still work together because they adhere to the same layered rules.
- 7:46Speaker 1: And it allows innovation at one layer without breaking everything else.
- 7:50Speaker 2: Absolutely, it's all about interoperability, and.
- 7:53Speaker 1: This concept of encapsulation and decapsulation fits right in here,
- 7:56Speaker 1: doesn't it perfectly.
- 7:58Speaker 2: As data moves down the layers on sending device, each
- 8:01Speaker 2: layer adds its own header, like putting the data in
- 8:03Speaker 2: an envelope than a bigger envelope, etc.
- 8:05Speaker 1: That's encapsulation, wrapping it up, wrapping it up.
- 8:08Speaker 2: Then as it moves up the layers on the receiving device,
- 8:10Speaker 2: each layer unwraps its corresponding header, processes the information, and
- 8:14Speaker 2: passes the rest up decapsulation.
- 8:17Speaker 1: Okay, so let's look at the addresses used at these layers.
- 8:19Speaker 1: Layer three IP addressing the global address. We started with
- 8:23Speaker 1: IPv four.
- 8:24Speaker 2: Right, the original thirty two bit addresses revolutionary at the time,
- 8:28Speaker 2: but we ran into a problem pretty quickly. With the
- 8:31Speaker 2: massive explosion of computers and Internet connected devices.
- 8:34Speaker 1: We ran out of addresses, basically started running out.
- 8:36Speaker 2: Yeah, address exhaustion became a real issue. We had addressed
- 8:40Speaker 2: classes initially ABC with defall masks, but we needed more flexibility.
- 8:44Speaker 1: Which led to subnetting exactly.
- 8:46Speaker 2: Subnetting was this clever trick. It let network admins steal
- 8:51Speaker 2: bits from the host part of the IP address to
- 8:53Speaker 2: create more network segments or subnets within the originally allocated block.
- 8:58Speaker 1: So you could take one large network and carve it
- 9:00Speaker 1: up into smaller, more manageable pieces, like taking a large
- 9:03Speaker 1: plot of land and dividing it into smaller lots. Good analogy.
- 9:07Speaker 2: It helped use the available addresses more efficiently and allowed
- 9:10Speaker 2: for better network organization and security. You know, calculating subnets
- 9:14Speaker 2: can be tricky, hence things like cheat sheets like figuring
- 9:17Speaker 2: out which subnet one ninety two point one sixty eight
- 9:20Speaker 2: point one zero zero two six.
- 9:21Speaker 1: Belongs to right. But even subnetting was just delaying the
- 9:25Speaker 1: inevitable with IPv four exhaustion, which brings us to IPv
- 9:29Speaker 1: six the future, well, the present and future. Why the
- 9:32Speaker 1: big push to migrate? Obviously, there are way more addresses
- 9:35Speaker 1: one hundred and twenty eight bits versus thirty two that's.
- 9:38Speaker 2: The headline feature, almost unlimited addresses. But IPB six offers more.
- 9:42Speaker 2: It has a simpler packet header, which routers can process
- 9:45Speaker 2: more efficiently. It eliminates broadcast traffic altogether.
- 9:48Speaker 1: No more shouting in the room, No more shouting.
- 9:50Speaker 2: It relies heavily on multicast instead, and it has built
- 9:54Speaker 2: in support for stateless auto configuration, making it much easier
- 9:57Speaker 2: for devices to get an address automatically.
- 9:59Speaker 1: Okay, simple, faster, bigger address space, easier configuration sounds good,
- 10:03Speaker 1: but the addresses look intimidating. That's adecimal. They do look different.
- 10:07Speaker 1: They use exitesimal numbers zero nine and letters af eight
- 10:11Speaker 1: groups of four hex characters separated by colons, like two
- 10:15Speaker 1: thousand one point point zero dB eight point eight five
- 10:17Speaker 1: eight three point zero zero zero zero zero zero zero
- 10:20Speaker 1: zero point a two e point zero three seven zero
- 10:22Speaker 1: point seven three three four. That's a mouthful lots of
- 10:25Speaker 1: zeros in that example. Often yes, which is why there's
- 10:27Speaker 1: a shorthand. You can use a double colon dome just
- 10:29Speaker 1: once an interddress to represent a consecutive string of all
- 10:32Speaker 1: zero groups ah compression, so that example could become two
- 10:36Speaker 1: thousand and one dot dB eight dot eight five a
- 10:38Speaker 1: three point eighty two e point zero three seven zero
- 10:41Speaker 1: point seven three.
- 10:41Speaker 2: Three four precisely makes them a bit easier than handle,
- 10:45Speaker 2: and IPv six has different address types too. There are
- 10:47Speaker 2: link local addresses. They start with fe eighty point en
- 10:51Speaker 2: and devices use them automatically to talk to other devices
- 10:53Speaker 2: on the same physical link for things like neighbor.
- 10:56Speaker 1: Discovery, so local chat only. Right.
- 10:58Speaker 2: Then you have multicast of russes starting FS zero zero
- 11:01Speaker 2: point eight, used extensively for one to many communication. IPv
- 11:04Speaker 2: six uses multicasts for things arps to do in IPP
- 11:07Speaker 2: four and any cast is interesting, same address on multiple devices,
- 11:11Speaker 2: your traffic goes to the nearest one.
- 11:13Speaker 1: It's more of a concept for CCNA level though, and
- 11:15Speaker 1: auto configuration. You mentioned stateless and state full.
- 11:18Speaker 2: Yeah. Statefle is like DHT and IPv four where server
- 11:20Speaker 2: hands out addresses DHCPv six stateless is cooler. A host
- 11:24Speaker 2: listens for router advertisements containing the network prefix, then it
- 11:27Speaker 2: basically creates its own unique address by combining that prefix
- 11:29Speaker 2: with its own MSSU address slightly modified and what's called
- 11:32Speaker 2: EUI sixty four.
- 11:33Speaker 1: Format clever self sufficient addressing pretty much. Okay, So that's
- 11:37Speaker 1: layer three. Down.
- 11:38Speaker 2: At layer two we have MAAC addresses, the physical hardware address.
- 11:42Speaker 1: Burned into the network card, unique to each device.
- 11:45Speaker 2: Ideally ideally yes, the data link layer address. But how
- 11:49Speaker 2: does your computer know the MAC address of, say, the
- 11:52Speaker 2: local router when it only knows the router's IP address.
- 11:56Speaker 1: Good question. It needs to translate IP to MP somehow
- 11:59Speaker 1: for local deal.
- 12:00Speaker 2: And that's ARP Address Resolution Protocol. It's the local translator.
- 12:04Speaker 1: How does it work?
- 12:05Speaker 2: So when your PC wants to send a packet to
- 12:08Speaker 2: the router's IP, it first checks its own AARP cash
- 12:11Speaker 2: a little table mapping IPS to MLC.
- 12:13Speaker 1: It already knows uh huh.
- 12:14Speaker 2: If the router's MH isn't in the cash, your PC
- 12:17Speaker 2: sends out an ARP request. This is a broadcast message saying, hey,
- 12:21Speaker 2: whoever has IP address one nine to two point one
- 12:23Speaker 2: sixty eight point one on one, please tell me your
- 12:25Speaker 2: my address.
- 12:26Speaker 1: Shouting again, but just locally, this time locally exactly.
- 12:29Speaker 2: The router sees this broadcast, recognizes its own IP and
- 12:32Speaker 2: sends an ARP replied directly back to your PC, saying
- 12:35Speaker 2: that's me, Here's Miami address. Your PC then adds this
- 12:38Speaker 2: mapping to its RP cash and can now build the
- 12:41Speaker 2: layer two frame properly.
- 12:42Speaker 1: Got it, And that explains why sometimes the first ping
- 12:46Speaker 1: to a device fails. That's often the reason.
- 12:48Speaker 2: Yeah, you'll see a period maybe for the first ping attempt,
- 12:52Speaker 2: indicating a timeout while ARP does its thing. Then the
- 12:55Speaker 2: next pings succeed with exclamation marks B. The ms isn't
- 12:58Speaker 2: now cashed. These cashes don't last forever though, they time out,
- 13:02Speaker 2: usually after a few hours to keep things fresh.
- 13:04Speaker 1: Okay, ARP handles local IP TOMAC translation, but going back
- 13:09Speaker 1: to the IPv four address shortage, ARP doesn't solve that.
- 13:12Speaker 1: That's where NAT comes in, right, Network address translation absolutely essential. NAT.
- 13:17Speaker 2: Your analogy of the color tokens was spot on. You
- 13:20Speaker 2: have loads of private internal addresses you can use freely
- 13:23Speaker 2: the blue and yellow tokens, but you only have a
- 13:25Speaker 2: few or maybe just one public IP address to access
- 13:29Speaker 2: the global Internet, the scarce green tokens.
- 13:31Speaker 1: So NEAT is the gatekeeper managing those green tokens.
- 13:34Speaker 2: It's the exchange mechanism. When your internal device needs to
- 13:37Speaker 2: talk to the Internet, the GNAT router swaps out the
- 13:40Speaker 2: private source IP for a public one. Its fundamental purpose
- 13:44Speaker 2: was and still is conserving those precious public IPv four addresses.
- 13:48Speaker 1: And there are different flavors of net A.
- 13:50Speaker 2: Few main types. Yeah, static net is a simple one
- 13:53Speaker 2: to one mapping. This private IP always uses that public IP.
- 13:57Speaker 2: Good for hosting a server. Okay, Then you have a
- 13:59Speaker 2: NAP where you have a pool of public eyps, and
- 14:03Speaker 2: internal devices grab one from the pool as needed, first come,
- 14:06Speaker 2: first served until the pool runs out right. But the
- 14:09Speaker 2: most common type, especially in homes and small businesses, is
- 14:13Speaker 2: NAT overload, often called PAT port.
- 14:15Speaker 1: Address translation the CAT. Yeah.
- 14:18Speaker 2: This allows many internal devices to share a single public
- 14:21Speaker 2: IP address. The router keeps track of connections by using
- 14:24Speaker 2: different source port numbers for each internal device's session.
- 14:28Speaker 1: Ah, so it uses the port number to differentiate the
- 14:30Speaker 1: conversations sharing that one public IP precisely. It's incredibly efficient
- 14:34Speaker 1: for address conservation. And you mentioned a common troubleshooting issue
- 14:37Speaker 1: with NAT, something easily forgotten. Oh yeah, it's almost a classic.
- 14:42Speaker 2: Nine times out of ten, someone's configured the NAT rules,
- 14:44Speaker 2: but they forgot to tell the router which interface is
- 14:47Speaker 2: connected to the internal network and which is connected to
- 14:50Speaker 2: the external network.
- 14:51Speaker 1: You need those.
- 14:52Speaker 2: Ipnet inside and IPNAT outside commands on the interfaces.
- 14:56Speaker 1: Simple mistake, big headache, Good tip. Okay, let's shift gears
- 15:01Speaker 1: to organizing networks within an organization. V lance Virtual.
- 15:07Speaker 2: Lands d lands are huge, really fundamental for modern network design.
- 15:11Speaker 2: They let you take one physical switch and logically chop
- 15:14Speaker 2: it up into multiple virtual switches.
- 15:16Speaker 1: So devices plugged into the same physical switch can be
- 15:19Speaker 1: in different logical networks exactly.
- 15:21Speaker 2: You can group devices by department, say sales on VLAN ten,
- 15:25Speaker 2: engineering on VLAN twenty, even if their desks are scattered
- 15:28Speaker 2: across the building and plugged into different switches. Or you
- 15:30Speaker 2: can separate voice traffic onto its own VLAN for quality
- 15:33Speaker 2: of service and.
- 15:34Speaker 1: The key benefit here security wise or traffic.
- 15:37Speaker 2: Wise, each VLAN is its own separate broadcast domain. Remember
- 15:40Speaker 2: how hubs were one big broadcast domain and switches made
- 15:43Speaker 2: each port its own collision domain. Well, vilains create broadcast
- 15:47Speaker 2: boundaries at layer two. By default, traffic from VLAN ten
- 15:51Speaker 2: cannot reach VLAN twenty and vice versa. Broadcasts sent in
- 15:55Speaker 2: VLAN ten only go to other ports in.
- 15:57Speaker 1: VLAN ten, So improve security through isle and less broadcast
- 16:01Speaker 1: noise flooding the whole network.
- 16:03Speaker 2: Absolutely, but it means each vland needs its own IP subnet,
- 16:07Speaker 2: like one ninety two point one sixty eight point zero
- 16:10Speaker 2: two four for v LAN ten and one ninety two
- 16:13Speaker 2: point one sixty eight point twenty day point zero two
- 16:16Speaker 2: four for VLAND twenty.
- 16:17Speaker 1: Okay, different virtual neighborhoods, different address ranges. But what if
- 16:20Speaker 1: sales needs to talk to engineering, how do they communicate
- 16:23Speaker 1: between vlands?
- 16:24Speaker 2: Ah, that requires interval routing. You need a layer three device,
- 16:28Speaker 2: a router or a multi layer switch to act as
- 16:30Speaker 2: the bridge between those IP subnets.
- 16:32Speaker 1: Makes sense. But first, what if I have devices in
- 16:34Speaker 1: the same vlan, say VLAN ten, but they're plugged into
- 16:37Speaker 1: different physical switches, one on floor one, one on floor two.
- 16:40Speaker 1: How does their traffic stay in VLAN ten across the building?
- 16:42Speaker 2: Good question. That's where trunk links come in. A trunk
- 16:45Speaker 2: link is a special connection between switches that's configured to
- 16:47Speaker 2: carry traffic for multiple VLANs simultaneously.
- 16:50Speaker 1: Like a highway carrying traffic for different destinations.
- 16:52Speaker 2: Exactly when a frame belonging to say villan ten needs
- 16:57Speaker 2: to cross the trunk link to the other switch, the
- 16:59Speaker 2: first switch adds a tag to the frame that identifies
- 17:02Speaker 2: it as belonging to.
- 17:03Speaker 1: Vilan ten, a VLANI tag giant Right.
- 17:06Speaker 2: The receiving switch sees the tag, knows the frame belongs
- 17:09Speaker 2: to villaan ten, removes the tag and forwards the frame
- 17:12Speaker 2: only to ports assigned to VLAN ten on its side.
- 17:15Speaker 1: So the Vilin identity is maintained across switches. And how
- 17:18Speaker 1: is this tagging actually done.
- 17:19Speaker 2: Two main ways. There's an older Cisco proprietary method called
- 17:23Speaker 2: isl interswitch link. You don't see it much anymore, Okay,
- 17:26Speaker 2: The standard universally used method is i ee atoh two
- 17:29Speaker 2: point one Q, often just called DOT one Q. It
- 17:31Speaker 2: inserts a small tag into the Ethernet frame header.
- 17:34Speaker 1: Got it? ATO two point one Q is the standard.
- 17:36Speaker 1: And you mentioned something with a native lan ah?
- 17:38Speaker 2: Yes, with ATO two point one Q, there's a concept
- 17:41Speaker 2: of a native LAN. Traffic belonging to this specific villain
- 17:44Speaker 2: is sent across the trunk link untagged by default.
- 17:47Speaker 1: This is villain one untagged. Is that a problem? It
- 17:49Speaker 1: can be a security risk.
- 17:51Speaker 2: It's best practice to change the native VLAN to something
- 17:54Speaker 2: other than the default VLAN one and make sure it's
- 17:57Speaker 2: consistent on both ends of the trunk link. Also, so
- 18:00Speaker 2: don't put any user devices in the native VLAN.
- 18:03Speaker 1: Okay, change the native vilan from one. And what about
- 18:05Speaker 1: setting up these trunk links? Is it always manual?
- 18:08Speaker 2: You can configure them manually. But Cisco also has a
- 18:11Speaker 2: protocol called DTP Dynamic Trunking Protocol. It allows switches to
- 18:16Speaker 2: automatically negotiate whether the link between them should become a
- 18:18Speaker 2: trunk it's Cisco proprietary though, right.
- 18:21Speaker 1: So we have VLANs for segmentation trunks to connect VLANs
- 18:25Speaker 1: across switches. Now back to routing between VLANs. How do
- 18:29Speaker 1: we build those bridges?
- 18:30Speaker 2: Several ways? The old school way was to use a
- 18:33Speaker 2: physical router with a separate physical interface plugged into the
- 18:36Speaker 2: switch for each VLAN. One port for VLAN ten, one
- 18:39Speaker 2: for VILAN twenty.
- 18:40Speaker 1: Sounds inefficient, uses up a lot of router ports.
- 18:42Speaker 2: Very inefficient, doesn't scale well. A more common method became
- 18:46Speaker 2: router on a stick. Yeah, you use one physical router
- 18:50Speaker 2: interface connected to the switch via a trunk link. Then
- 18:53Speaker 2: on the router you create logical sub interfaces, one for
- 18:56Speaker 2: each VLAN. Each sub interface gets an IP address in
- 19:00Speaker 2: that VLAN subnet and understands the eight to two point
- 19:02Speaker 2: one Q tags.
- 19:04Speaker 1: Ah. So the single physical link carries tag traffic for
- 19:07Speaker 1: all VLANs up to the router, and the router sorts
- 19:09Speaker 1: it out using sub interfaces exactly.
- 19:11Speaker 2: The downside is that all intervland traffic has to go
- 19:14Speaker 2: up to the router and back down, sharing the bandwidth
- 19:17Speaker 2: of that single link.
- 19:18Speaker 1: It can become a bottleneck. Okay, better than multiple physical interfaces,
- 19:21Speaker 1: but still potentially slow. What's the modern approach.
- 19:25Speaker 2: Multi layer switches. These are switches that can also perform
- 19:28Speaker 2: layer three routing. You create logical interfaces on the switch itself,
- 19:32Speaker 2: called switch virtual interfaces or sviis SVIs. Yeah, you create
- 19:36Speaker 2: an SVII for each VLAN like Interfaceland ten interface Land twenty,
- 19:41Speaker 2: give it an IP address in that VLAN subnet, and
- 19:43Speaker 2: the switch can then route traffic directly between VLANs at
- 19:47Speaker 2: hardware speed, much faster and more scalable.
- 19:49Speaker 1: So the routing happens right there inside the switch, right inside.
- 19:53Speaker 2: Though sometimes on certain switch models, like maybe a Cisco
- 19:56Speaker 2: twenty nine to sixty, you might need to enable a
- 19:59Speaker 2: specific routing template and SDM template and reload the switch
- 20:02Speaker 2: before it can do layer three routing.
- 20:04Speaker 1: Good to know? And if things go wrong with VLANs
- 20:07Speaker 1: or trunking? What are the usual suspects when troubleshooting?
- 20:11Speaker 2: Often it's simple configuration errors. Did you assign the ports
- 20:14Speaker 2: to the correct VLANs? Are the trunk links configured correctly
- 20:17Speaker 2: on both ends? Same native vland, same allowed VLANs. Physical
- 20:20Speaker 2: layer issues of course, bad cables, huh, mismatched VTP settings.
- 20:25Speaker 2: VTP is a protocol for synchronizing VLAN databases, and if
- 20:29Speaker 2: domains or passwords don't match, it causes problems. There's even
- 20:33Speaker 2: a scary scenario where a new switch with a higher
- 20:35Speaker 2: VTP revision number can accidentally wipe out the VLAN configuration
- 20:39Speaker 2: on all your existing switches.
- 20:40Speaker 1: If you're not careful. Yikes.
- 20:42Speaker 2: Yeah, VTP needs careful handling and sometimes spanning to reprotocol STP,
- 20:46Speaker 2: which prevents loops, might be blocking a port you expect
- 20:49Speaker 2: to be working, and amber lade on the switch port
- 20:52Speaker 2: is often a clue that STP is involved.
- 20:54Speaker 1: Okay, let's to check there. Finally, let's wrap up with security.
- 20:57Speaker 1: We have all this gear, switches, routers, how do wetect them?
- 21:00Speaker 2: The absolute first step, often forgotten is physical security. Lock
- 21:04Speaker 2: the doors. Network gears shouldn't be accessible to just anyone.
- 21:08Speaker 2: If someone can physically plug into your core switch or
- 21:11Speaker 2: console into your router, game over right.
- 21:14Speaker 1: Lock the wiring closet, secure the data.
- 21:16Speaker 2: Center absolutely, Then secure remote access. We mentioned SSH over telnet.
- 21:22Speaker 2: Telnet sends passwords and plaintext. Big no no, Always use SSH.
- 21:27Speaker 1: And setting up SSH requires a host name and a
- 21:29Speaker 1: domain name on the device right to generate the crypto.
- 21:32Speaker 2: Keys, correct, you need those configured first, Then manage your
- 21:36Speaker 2: passwords properly. Use strong passwords obviously, and understand the difference
- 21:40Speaker 2: between enable password.
- 21:41Speaker 1: The less secure one.
- 21:42Speaker 2: Yeah, it's stored less securely, potentially visible in the configure.
- 21:45Speaker 2: If you haven't encrypted it, use enable secret instead. It
- 21:49Speaker 2: uses stronger MD five hashing and always takes precedence over
- 21:52Speaker 2: enable password if both are configured.
- 21:54Speaker 1: What if you forget the enabled secret password locked out?
- 21:57Speaker 2: Not necessarily, but it's a hassle as a password recovery
- 22:01Speaker 2: procedure usually involves interrupting the boot process and changing a
- 22:05Speaker 2: configuration register value specific to the device model.
- 22:08Speaker 1: Best not to forget it. Good advice. What other basic
- 22:12Speaker 1: security hygiene should be done?
- 22:13Speaker 2: Use the service password encryption command. It applies a weak
- 22:17Speaker 2: encryption to passwords like the enabled password and user passwords
- 22:20Speaker 2: in the configuration file, just so they aren't sitting there
- 22:23Speaker 2: in plaintext if someone looks at the configure. Better than nothing. Okay,
- 22:27Speaker 2: centralize your logging. Configure devices to send cislog messages to
- 22:31Speaker 2: a central server. You need logs for troubleshooting and security auditing,
- 22:35Speaker 2: and make sure those logs have accurate time stamps right.
- 22:38Speaker 1: Use service time stamps, log daytime, local time showtime zone.
- 22:41Speaker 2: Exactly, which also means you need accurate time on the
- 22:44Speaker 2: devices themselves. That's where NTP Network Time Protocol comes in.
- 22:49Speaker 2: Synchronize your device clocks to a reliable NTP server.
- 22:52Speaker 1: Essential for correlating events across different devices. Absolutely.
- 22:56Speaker 2: Then there's SMMP simple network management protocol from monitoring device
- 23:01Speaker 2: health and stats from a central network management station and MS.
- 23:05Speaker 2: Understand the difference between SNMP traps which are unacknowledged alerts
- 23:09Speaker 2: sent by the device, and informs which are acknowledged, making
- 23:12Speaker 2: them more reliable but using more resources.
- 23:15Speaker 1: And NetFlow how does that fit in?
- 23:17Speaker 2: NetFlow is different from SNMP. SNMP tells you about the
- 23:20Speaker 2: device itself, cpu load, memory usage, interface errors. NetFlow tells
- 23:25Speaker 2: you about the traffic flowing through the device, who's talking
- 23:27Speaker 2: to whom, how much data, what protocols invaluable for understanding
- 23:32Speaker 2: traffic patterns, baselining and spotting anomalies.
- 23:35Speaker 1: Okay, monitoring is key. What about locking down the switch
- 23:38Speaker 1: ports themselves, preventing random devices from plugging in.
- 23:41Speaker 2: That's switchport security critical for access layer switches where users connect.
- 23:46Speaker 2: You can configure ports to only allow specific m mass
- 23:49Speaker 2: addresses or a limited number of MC addresses.
- 23:52Speaker 1: As it learned which max are allowed.
- 23:54Speaker 2: You can configure them statically typing them in, or you
- 23:57Speaker 2: can use stickymac. With stickymac, the switch learns the first
- 24:01Speaker 2: a MAC address it sees on the port and automatically
- 24:04Speaker 2: converts them into secure static entries in the running can fig.
- 24:08Speaker 1: Convenient, and you can limit the number, like if you
- 24:11Speaker 1: have an IP phone and a PC connected to the same.
- 24:13Speaker 2: Port exactly, you'd set switchport port security maximum two in
- 24:16Speaker 2: that case, one for the phone's data VLAN MAC, one
- 24:20Speaker 2: for the PC's data vland MAC.
- 24:22Speaker 1: What happens if an unauthorized device plugs in depends on
- 24:26Speaker 1: the violation mode.
- 24:26Speaker 2: You can figure the default is shut down. The port
- 24:29Speaker 2: goes into an air disabled state and stops passing traffic
- 24:32Speaker 2: needs manual intervention or automatic recovery to bring back up,
- 24:36Speaker 2: or you can set it to restrict. It drops the
- 24:38Speaker 2: bad traffic, sends an alert SNMP trap and counts the violation,
- 24:43Speaker 2: or protect which just silently drops the bad traffic. No alert,
- 24:47Speaker 2: no counter. Shutdown is usually recommended, and you.
- 24:49Speaker 1: Can configure or disabled recovery to automatically re enable the
- 24:52Speaker 1: port after a while.
- 24:53Speaker 2: Yes, you can set timers for that other port security
- 24:56Speaker 2: best practices shut down any unused ports administratively, don't leave
- 25:00Speaker 2: them active, and assign them to an unused VLAN not
- 25:04Speaker 2: VLAN one, and again change that native VLAN away from
- 25:07Speaker 2: VLAN one.
- 25:08Speaker 1: Lots of layers to security. What about authenticating the administrators
- 25:12Speaker 1: themselves instead of local passwords on every device.
- 25:16Speaker 2: Right For larger networks, managing local users on hundreds of
- 25:18Speaker 2: devices is impractical. That's where centralized authentication comes in, using
- 25:22Speaker 2: protocols like tech ass plus or Radius Rentoy. Triple A
- 25:26Speaker 2: stands for Authentication, authorization and accounting. You set up triple
- 25:30Speaker 2: A servers, often running tac ass plus serve, which is
- 25:33Speaker 2: Cisco proprietary and uses TCP port forty nine. When an
- 25:37Speaker 2: admin tries to log into a router or switch, the
- 25:40Speaker 2: device contacts the tax as plus server to verify the
- 25:42Speaker 2: user name and password, check what commands they're authorized to run,
- 25:45Speaker 2: and lug their activity.
- 25:46Speaker 1: Much more scalable and secure, central control way better for management, security,
- 25:50Speaker 1: and auditing. Wow. Okay, so that really brings us full circle.
- 25:54Speaker 1: We've gone from you know, basic hubs shouting everywhere, to
- 25:58Speaker 1: intelligent switches directing traffic locally, routers navigating between networks.
- 26:03Speaker 2: Yeah, understanding the language they speak ip amris arp NAT.
- 26:09Speaker 1: How we organize them with vlands and connect those vlands
- 26:12Speaker 1: with trunks and routing.
- 26:13Speaker 2: And finally the critical steps to actually secure these foundational
- 26:17Speaker 2: pieces of the network.
- 26:19Speaker 1: It's been a real deep dive. The idea was to
- 26:21Speaker 1: give you that shortcut, that solid understanding of the mechanics
- 26:24Speaker 1: behind the scenes.
- 26:25Speaker 2: And hopefully knowing this stuff isn't just you know, interesting trivia.
- 26:30Speaker 2: It really helps when things go wrong, when you need
- 26:32Speaker 2: to figure out why you can't reach something, or when
- 26:34Speaker 2: you're planning how to expand or secure your own network.
- 26:37Speaker 1: It empowers you, really gives you the foundational knowledge exactly.
- 26:40Speaker 1: So as we wrap up, we've seen how these core
- 26:43Speaker 1: networking ideas have evolved, but some fundamentals seem constant. Here's
- 26:48Speaker 1: the thought to leave you with. With everything changing so fast,
- 26:53Speaker 1: AI quantum competing on the horizon, what's one fundamental principle
- 26:57Speaker 1: of network communication? Maybe something we touched on today that
- 27:00Speaker 1: you think will always be critical no matter how the
- 27:02Speaker 1: technology itself transforms. Something timeless about how information gets from
- 27:06Speaker 1: A to B H. That's a great question to ponder.
- 27:10Speaker 1: What endures something to think about thanks for joining us
- 27:13Speaker 1: on the deep Dive