Latest / CyberSecurity Summary / Cisco CCNA Command Guide For Beginners And Intermediates: A Practical Step By Step Guide to Cisco CCNA Routing And Switching Command Line
Transcript
- 0:00Speaker 1: Welcome back to the deep dive. Today, we're really getting
- 0:04Speaker 1: our hands dirty, jumping into the practical world of Cisco
- 0:07Speaker 1: CCNA commands.
- 0:08Speaker 2: Yeah, exactly.
- 0:10Speaker 1: Imagine you're setting up a network from scratch, maybe for
- 0:13Speaker 1: a new office, a growing startup. Where do you even begin?
- 0:16Speaker 2: Right?
- 0:17Speaker 1: Our mission for you today is basically to pull out
- 0:19Speaker 1: the absolute must know bits, give you a kind of shortcut,
- 0:23Speaker 1: you know, so you feel ready to connect some dots.
- 0:26Speaker 2: And what's really valuable here, I think, is that this
- 0:28Speaker 2: guide we're looking at focuses on the commands you actually need. Beginner,
- 0:32Speaker 2: intermediate level CCNA stuff, practical stuff exactly, stuff you can
- 0:37Speaker 2: use on real gear or in the simulation labs for
- 0:39Speaker 2: the exam. It's all about application.
- 0:41Speaker 1: Okay, So first things first, before any configuration, you got
- 0:43Speaker 1: to connect things right.
- 0:44Speaker 2: Cabling the physical layer yep.
- 0:46Speaker 1: Sounds basic maybe, but here's where it gets interesting, Like
- 0:50Speaker 1: choosing the wrong cable that can completely sink your network
- 0:54Speaker 1: before you type a single command.
- 0:55Speaker 2: Oh absolutely, I've seen it happen. Hours wasted me too.
- 0:59Speaker 1: I remember, spending age is troubleshooting once only to find YEP,
- 1:03Speaker 1: crossover cable where a straight through should have been. Total
- 1:07Speaker 1: face palm moment happens to the best of us. So
- 1:09Speaker 1: the guide really stresses mastering this. Know you're streight through
- 1:13Speaker 1: your crossover, your rollover cables.
- 1:16Speaker 2: And the pinouts are key. It's the wiring inside, which
- 1:19Speaker 2: pin connects to which get that wrong? No data flow,
- 1:23Speaker 2: simple as that.
- 1:24Speaker 1: And once it's plugged in, you need to check the
- 1:26Speaker 1: config on the actual computers.
- 1:28Speaker 2: Right, yeah, on the end devices, So like if you
- 1:30Speaker 2: can FIG on Linux or Mac.
- 1:31Speaker 1: Or IP can fig if you're on Windows, Windows two
- 1:34Speaker 1: thousand and up.
- 1:35Speaker 2: Basically, and this whole cabling thing, getting it right, it
- 1:38Speaker 2: really sets the stage, doesn't it. Make sure you're not
- 1:40Speaker 2: chasing hardware ghosts when the problem is actually software exactly.
- 1:44Speaker 1: You don't want to be troubleshooting routing protocols. If the
- 1:47Speaker 1: cable's just.
- 1:47Speaker 2: Wrong, you're trying to drive a car with no wheels.
- 1:49Speaker 1: Essentially, good analogy. Okay, so physically connected, now they need addresses.
- 1:54Speaker 1: They need to speak the language of IP. Right, let's
- 1:56Speaker 1: talk IP subnetting. Sounds a bit scary, maybe you can
- 1:59Speaker 1: see in that way, but we'll break it down. Think
- 2:01Speaker 1: about those IP address classes ABC.
- 2:04Speaker 2: Mainly, Yeah, they're like different sizes of networks right.
- 2:07Speaker 1: So Class A starts with a zero first number is
- 2:10Speaker 1: zero to one twenty seven. That's your massive network like
- 2:12Speaker 1: an ocean liner holds millions of devices.
- 2:15Speaker 2: Huge organizations ISPs.
- 2:17Speaker 1: Maybe Class B starts one zero numbers one twenty eight
- 2:19Speaker 1: to one ninety one. That's maybe more like a large
- 2:21Speaker 1: cargo ship medium to large businesses makes sense. And Class
- 2:24Speaker 1: C starts one one zero numbers one ninety two to
- 2:27Speaker 1: two twenty three. That's your small fishing boat home networks
- 2:29Speaker 1: small offices holds a couple hundred addresses.
- 2:32Speaker 2: Perfect for most smaller setups.
- 2:33Speaker 1: Then you have Class D for multicasting like video streams
- 2:36Speaker 1: to many people at once.
- 2:37Speaker 2: Two hundred and twenty four to two thirty nine range.
- 2:39Speaker 1: And Class E, which is reserved experimental stuff two forty.
- 2:42Speaker 2: In up right, And the guide shows how computer see
- 2:45Speaker 2: these numbers converting decimal to binary.
- 2:47Speaker 1: Yeah, like one ninety two becomes one hundred and one
- 2:49Speaker 1: hundred thousand, or two twenty four is eleven hundred and
- 2:51Speaker 1: fetter thousand.
- 2:52Speaker 2: So that familiar private IP one ninety two point one
- 2:54Speaker 2: sixty eight point two five four point twenty five four
- 2:56Speaker 2: The router sees it as a one one hundred zero
- 2:58Speaker 2: zero zero zero one zero one one zero zero point
- 3:01Speaker 2: one one one on a narrow point one one one
- 3:03Speaker 2: one one one point one one one one one one
- 3:05Speaker 2: one one binary.
- 3:06Speaker 1: Okay, So how does the router use that?
- 3:09Speaker 2: That's where binary ending comes in. It sounds technical, but
- 3:12Speaker 2: it's fundamental. It's how devices figure out the network part
- 3:15Speaker 2: of an address versus the host part.
- 3:17Speaker 1: Like separating the street name from the house number exactly.
- 3:21Speaker 2: It uses the IP address and the subnet mask. Think
- 3:24Speaker 2: of it like a filter. Only where both the IP
- 3:26Speaker 2: and the mask have a one bit, does a one
- 3:28Speaker 2: come through in the result.
- 3:29Speaker 1: Okay?
- 3:29Speaker 2: The logic is simple zero no zero one and no
- 3:32Speaker 2: zero zero one is a one bit only one on
- 3:34Speaker 2: one gives you one, got it? So take that one
- 3:36Speaker 2: ninety two point one sixty eight point two five four
- 3:38Speaker 2: point two five four Again. If your mask is two
- 3:41Speaker 2: five five point two five five point zero point zero,
- 3:44Speaker 2: which is all ones in the first two oct it's
- 3:46Speaker 2: when you endy them together binary style. Get one ninety
- 3:49Speaker 2: two point one sixty eight point zero zero. That's the
- 3:52Speaker 2: network number. That's how your device knows if another IP
- 3:55Speaker 2: is on the same local network or somewhere else. Right.
- 3:57Speaker 1: Okay, that makes sense. So wired up addresses understood. Now,
- 4:01Speaker 1: how do we talk to these Cisco devices, routers, switches.
- 4:04Speaker 2: That's the command line interface, the CLI, your.
- 4:06Speaker 1: Direct line in no fancy graphics, just task commands.
- 4:10Speaker 2: Pretty much. It's the primary way you can figure and
- 4:12Speaker 2: manage Cisco gear.
- 4:13Speaker 1: And there are shortcuts right right to save.
- 4:15Speaker 2: Typing Oh yeah, tons of them, big time savers like
- 4:18Speaker 2: typing COF then hitting the TB key It autocompletes to
- 4:22Speaker 2: configure terminal nice or just for able to get into
- 4:26Speaker 2: privilege mode.
- 4:27Speaker 1: Very handy, but you still need to know the full
- 4:29Speaker 1: command for exams usually.
- 4:31Speaker 2: Definitely good point. The shortcuts are for efficiency on the job.
- 4:35Speaker 1: And what if you forget a command or aren't sure
- 4:37Speaker 1: what options are available?
- 4:39Speaker 2: The question mark your best friend on the CLI? Yeah yep.
- 4:42Speaker 2: Just type bought on its own shows you all commands
- 4:45Speaker 2: in that mode. Type C or N shows commands starting
- 4:49Speaker 2: C or N or type of command like clock, then
- 4:53Speaker 2: a space then and it shows you what words or
- 4:56Speaker 2: parameters can come next. Super helpful, like a built in.
- 5:00Speaker 1: What about the setup mode? The guide mentions is that useful?
- 5:04Speaker 2: Not really for most people. It kicks in automatically if
- 5:07Speaker 2: a device has zero configuration.
- 5:09Speaker 1: Like brand new out of the box exactly, or you.
- 5:11Speaker 2: Can type set up. It's like a basic wizard, ask
- 5:14Speaker 2: you questions, but it's very limited.
- 5:15Speaker 1: Can't do much with it.
- 5:17Speaker 2: Nope, basic IP stuff maybe a password, no ACLS, no NAT.
- 5:23Speaker 2: Serious configuration requires the CLI. Most engineers skip.
- 5:27Speaker 1: It, gotcha, stick to the CLI definitely.
- 5:30Speaker 2: And speaking of the CLI, there are even more shortcuts,
- 5:33Speaker 2: like keyboard shortcuts that really boost productivity. Oh like what well,
- 5:37Speaker 2: Ctrl plus z is amazing, jumpt you right back to
- 5:40Speaker 2: privileged mode from anywhere, and configu mode saves typing end
- 5:43Speaker 2: or exit multiple times. Oh I like that. Ctrl plus
- 5:47Speaker 2: F moves forward a character, ec plus b moves back
- 5:50Speaker 2: a whole word. Ctrl plus e takes you to the
- 5:52Speaker 2: end of the line you're typing.
- 5:53Speaker 1: Handy for fixing typos totally.
- 5:55Speaker 2: And then there's command history. Ctrl plus P recalls previous
- 5:59Speaker 2: commands ctr we'll plug and recalls newer ones if you
- 6:01Speaker 2: went back too.
- 6:02Speaker 1: Far, so you don't have to retype everything exactly.
- 6:05Speaker 2: And you can even control how many commands get remembered
- 6:08Speaker 2: with terminal history size. And then a number. Default is
- 6:10Speaker 2: often just ten, but you can bump it up maybe
- 6:12Speaker 2: to fifty or one hundred max is two fifty six?
- 6:15Speaker 1: Why not? I always set it to max.
- 6:16Speaker 2: It uses a bit of router memory, probably not noticeable
- 6:19Speaker 2: on modern gear, but something to be aware of. There's
- 6:22Speaker 2: always a trade off. You can reset it with no
- 6:24Speaker 2: terminal history size. Okay. Cool.
- 6:26Speaker 1: Now, once you're configuring things, you need to see what's
- 6:28Speaker 1: going on right.
- 6:29Speaker 2: Verify stuff absolutely. That's where the show commands come in.
- 6:32Speaker 2: They are indispensable your eyes and ears inside the device.
- 6:37Speaker 1: So if something's broken, where do you start? What are
- 6:39Speaker 1: the key show commands?
- 6:41Speaker 2: Great question, It's less about memorizing a list and more
- 6:44Speaker 2: about thinking what do I need to check? I tend
- 6:47Speaker 2: to group them. Okay. First, basic connectivity and interfaces. Show
- 6:52Speaker 2: interfaces status gives you a quick look at all ports
- 6:54Speaker 2: of they up, down, connected, show interface fast Internet oh
- 6:58Speaker 2: one or whatever. It gives you detailed staff for that
- 7:00Speaker 2: specific port, error speed.
- 7:02Speaker 1: Duplex all right, checking the physical connection.
- 7:04Speaker 2: Then ipaddressing DOT show interface brief is fantastic, quick summary
- 7:07Speaker 2: dot interface, IP address is that up status protocol dot
- 7:12Speaker 2: super useful, And show ARP shows the mapping between IP
- 7:15Speaker 2: addresses and MC addresses the device has learned. Crucial for
- 7:18Speaker 2: Layer two troubleshooting makes sense.
- 7:21Speaker 1: What about the actual configuration.
- 7:23Speaker 2: That's where show running config comes in. Shows you the
- 7:25Speaker 2: active configuration what the device is using right now from
- 7:27Speaker 2: ramp absolutely vibe and you compare that to show startup
- 7:31Speaker 2: canfig that's the config saved and NVRMP the one the
- 7:34Speaker 2: loads on boot. If they're different, you know you haven't
- 7:36Speaker 2: saved your changes. Ah, the classic mistake happens all the time.
- 7:40Speaker 2: Then for routing, show ip rout that's your routing table.
- 7:44Speaker 2: How does this router know how to reach different networks?
- 7:47Speaker 2: It's all in there. And show protocols tells you about
- 7:49Speaker 2: the Layer three protocols.
- 7:50Speaker 1: Configured, got it any others?
- 7:52Speaker 2: Show version is good for checking the iOS software version, uptime,
- 7:56Speaker 2: hardware info. Show history dumps your command history buffer. Show
- 8:00Speaker 2: flash shows you the flash memory contents, Show clock for
- 8:03Speaker 2: the time, Show hosts for any local host named it
- 8:06Speaker 2: mappings you've set up.
- 8:07Speaker 1: Wow. Okay, so show commands are really your window into
- 8:10Speaker 1: the device.
- 8:11Speaker 2: Absolutely you live and breathe Show commands when managing Cisco gear.
- 8:14Speaker 1: Okay, let's zoom in on router. Specifically, they're the traffic
- 8:17Speaker 1: cops directing packets between.
- 8:20Speaker 2: Networks, directing the traffic.
- 8:21Speaker 1: Yeah, and configuring them means understanding those different modes you
- 8:24Speaker 1: mentioned earlier.
- 8:25Speaker 2: Right, you start in user mode usually just router prelimited.
- 8:29Speaker 2: Then enable gets you to privileged mode rater hashtag. Here
- 8:33Speaker 2: you can run show commands, debugs, save can figs, but
- 8:38Speaker 2: still can't make changes. For changes, you need configure terminal
- 8:42Speaker 2: or can fig for short. That takes you into global
- 8:45Speaker 2: configuration mode router can fig hashtag. This is where the
- 8:48Speaker 2: real work happens, and from there you can go deeper. YEP,
- 8:51Speaker 2: interface faster at a zero zero takes you to interface
- 8:54Speaker 2: mode router configure hashtag or router ospe f one takes
- 8:59Speaker 2: you to router configure mode reader figure outer hashtag. There
- 9:03Speaker 2: are also modes for lines, can fig line the sub interfaces,
- 9:06Speaker 2: config soubif key thing.
- 9:07Speaker 1: Is different commands work in different modes.
- 9:10Speaker 2: Exactly, And first thing you usually do in global config
- 9:12Speaker 2: get the writer or a.
- 9:13Speaker 1: Name post name R one or whatever post name name Yeah.
- 9:15Speaker 2: Yeah. Good practice for identification.
- 9:17Speaker 1: And security is paramount right passwords, oh absolute foundational.
- 9:21Speaker 2: You've got two main enabled passwords.
- 9:23Speaker 1: The ones to get into privileged mode.
- 9:25Speaker 2: Right enable password password is the old way stores in
- 9:28Speaker 2: plaintext and the config bad idea to so avoid that one, yes,
- 9:32Speaker 2: always use enable secret password. This one uses stronger encryption
- 9:36Speaker 2: MT five hashing usually much more secure, and if you
- 9:39Speaker 2: can figure both the enabled secret wins, it always overrides
- 9:42Speaker 2: the enabled password.
- 9:43Speaker 1: Good to know. What about passwords for actually logging in,
- 9:47Speaker 1: like over the console cable or remotely?
- 9:49Speaker 2: Yep, you secure those lines too, Line console zero for
- 9:52Speaker 2: the console port line VTIO four typically covers the five
- 9:56Speaker 2: virtual terminal lines for Telnet or SSH, LINEO zero for
- 10:01Speaker 2: the auxiliary report. In the commands inside the line config mode,
- 10:05Speaker 2: use password to set it, and then critically you must
- 10:08Speaker 2: type log in to tell a router to actually check
- 10:10Speaker 2: for that password on login.
- 10:11Speaker 1: Attempts okay password, then log in right.
- 10:14Speaker 2: And there's also service password encryption. This command applies a
- 10:17Speaker 2: very weak encryption to all plaintext passwords in the config
- 10:20Speaker 2: like the line passwords or if you foolishly used enable password.
- 10:23Speaker 1: Is it actually secure?
- 10:25Speaker 2: Not really, it's easily breakable. It just stops casual shoulder surfing.
- 10:28Speaker 2: Enable secret is the only strong one built in for
- 10:30Speaker 2: the enabled password. If you turn off service password encryption later,
- 10:35Speaker 2: any passwords that weakly encrypted stay that way.
- 10:38Speaker 1: So just to be clear. Why is an able password
- 10:41Speaker 1: such a bad idea? How quickly could that bite you?
- 10:44Speaker 2: Instantly? If anyone gets a copy of your config file,
- 10:47Speaker 2: maybe a backup, maybe through some other access, they just
- 10:49Speaker 2: read the password. It's right there, no guessing, no cracking required,
- 10:53Speaker 2: enable secret hashes it so even seeing the config doesn't
- 10:56Speaker 2: give away the password directly. It's a basic essential secure step.
- 11:00Speaker 1: Okay, message received, use an able secret. Now interfaces, the
- 11:05Speaker 1: actual connections, how do we configure those?
- 11:07Speaker 2: Right? So you navigate using interface followed by the type
- 11:10Speaker 2: in number like interface cereal zero zero zero, interface faceter
- 11:14Speaker 2: and at zero zero.
- 11:15Speaker 1: And you warned the prompt doesn't always change.
- 11:17Speaker 2: Yeah, it might just say rote or configu hashagg regardless
- 11:20Speaker 2: of whether you're in serial zero zero, fascinated at zero zero,
- 11:23Speaker 2: keep track, exit moves you back up one level.
- 11:25Speaker 1: Okay. Let's say we're configuring a serial interface like for
- 11:28Speaker 1: a WAN link.
- 11:29Speaker 2: Okay, so interface serial zero zero zero zero. Good practice
- 11:35Speaker 2: to add a description like description link to main office
- 11:38Speaker 2: helps document things and the IP address, app dress, subnetmask,
- 11:42Speaker 2: standard stuff.
- 11:43Speaker 1: And the special thing for cereal the clock rate.
- 11:46Speaker 2: If you have the DCE cable, the one providing the
- 11:48Speaker 2: timing signal for the link You must set the clock
- 11:51Speaker 2: rate speed command on that interface only needed on the
- 11:54Speaker 2: DCE side.
- 11:54Speaker 1: How do you know the speed?
- 11:56Speaker 2: Usually determined by the service provider or the capabilities of
- 11:58Speaker 2: the link fin no shutdown to actually turn the interface on,
- 12:02Speaker 2: They're off by default? No shutdown? Got it?
- 12:05Speaker 1: And for fast Ethernet like connecting to a land switch.
- 12:07Speaker 2: Simpler interface fast Ethernet zero zero maybe a description then
- 12:12Speaker 2: IP address, IP address, subnet mask and no shutdown. No
- 12:15Speaker 2: clock rate needed there?
- 12:16Speaker 1: Okay? What about those messages you sometimes see when you
- 12:19Speaker 1: log into a device, like warnings or welcome messages.
- 12:22Speaker 2: Ah banners? Yeah, you could set those banner mot hashtag,
- 12:25Speaker 2: message here, hashtag attag. The hashtag is a deliminter. You
- 12:27Speaker 2: can use any character not nut in your message. MOTD
- 12:30Speaker 2: stands for Message of the day. When does that show
- 12:33Speaker 2: up after successful log in? Usually there's also banner log
- 12:36Speaker 2: in hashtag message hashtag which shows up before the login prompt.
- 12:40Speaker 2: MOOTD usually takes precedence if both are set. Good for
- 12:43Speaker 2: legal disclaimers or warnings?
- 12:44Speaker 1: Cool? You mentioned show hosts earlier? Can you manually set those?
- 12:48Speaker 2: You can use IPPO host name, IP address so you
- 12:51Speaker 2: could do IIP post server one one nine two point
- 12:53Speaker 2: one sixty eight point one one one on a zero.
- 12:56Speaker 2: Then on that router you could potentially ping server one
- 13:00Speaker 2: instead of the IP. It's just a local mapping on
- 13:03Speaker 2: that device.
- 13:03Speaker 1: Handy for remembering key servers.
- 13:05Speaker 2: Yeah, and related to look ups. By default, if you
- 13:08Speaker 2: type something the router doesn't recognize as a command, it
- 13:10Speaker 2: tries to resolve it via DNS, thinking it's a host
- 13:13Speaker 2: name you want to connect.
- 13:14Speaker 1: To, and that can be slow. If you just made
- 13:16Speaker 1: a typo.
- 13:16Speaker 2: Exactly, it hangs for a bit. Try to contact a
- 13:19Speaker 2: DNS server. You can turn that off with no IP
- 13:21Speaker 2: domain lookup. Saves a lot of frustration from typos.
- 13:24Speaker 1: Good tip. All right, any other really useful general commands
- 13:26Speaker 1: we should know?
- 13:27Speaker 2: Yeah, a few life savers. No logging synchronous ever. Typing
- 13:30Speaker 2: a command and a console message like percent link fine
- 13:33Speaker 2: you be down? Yeah, pops up right in the middle
- 13:35Speaker 2: of your line.
- 13:35Speaker 1: Yes, so annoying.
- 13:38Speaker 2: No logging synchronous stops that. It ensures your command prompt
- 13:42Speaker 2: reappears cleanly below the message, so you don't lose your place.
- 13:46Speaker 1: Essential Okay, definitely using that one.
- 13:48Speaker 2: Then exact timeout sets how long a console or vty
- 13:51Speaker 2: session can be idle before it logs you out. Yeah,
- 13:54Speaker 2: exact time out one hundred zero means ten minutes, zero seconds,
- 13:57Speaker 2: good security practice. What about zero zero means never time out?
- 14:02Speaker 2: Big security hole. Don't do that on production.
- 14:04Speaker 1: Gear right, and saving your work crucial.
- 14:07Speaker 2: Copy running config, startup config, or copyrun start for short
- 14:10Speaker 2: saves the act of config from RAM to envy RAM.
- 14:12Speaker 2: If you don't do this and the router reboots, all gone, yep, mistake,
- 14:17Speaker 2: you only make ones. You can also erase startup config
- 14:19Speaker 2: to wipe the save config for starting fresh and copy
- 14:22Speaker 2: running config. TFTP lets you back up your config to
- 14:25Speaker 2: a TFTP serve on the network. Good for disaster recovery.
- 14:28Speaker 1: And that do command you mentioned right do.
- 14:31Speaker 2: Let's say you're deep in interface configuration mode. Router can
- 14:34Speaker 2: fig ashtag ETI. Normally to see the running config, you'd
- 14:37Speaker 2: have to type end then show running config.
- 14:40Speaker 1: Yeah, jump back out with do.
- 14:41Speaker 2: You can just type do show running config right there
- 14:44Speaker 2: in interface mode. It executes the show command without making
- 14:48Speaker 2: you leave config mode. Huge time saver, but it doesn't
- 14:51Speaker 2: work for everything. Doesn't work for commands that change your mode,
- 14:54Speaker 2: like configure terminal itself, but for most show commands, ping
- 14:57Speaker 2: trace for it.
- 14:58Speaker 1: That's pert awesome, Okay configured. How do they learn about
- 15:02Speaker 1: networks beyond the ones directly plugged into them?
- 15:05Speaker 2: Ah, Now we get into routing. How riders build their
- 15:07Speaker 2: maps of the internetwork.
- 15:09Speaker 1: Starts with static routes the manual way.
- 15:11Speaker 2: Often yeah, simple scenarios. The command is that brot, then
- 15:14Speaker 2: the destination network, then the subnet mask of that destination,
- 15:18Speaker 2: than how to get there. How to get there could
- 15:19Speaker 2: be either the IP address of the next router in
- 15:22Speaker 2: the path, next hopyup, or the router's own exit interface
- 15:25Speaker 2: that leads toward that network. Example, it proved ten point
- 15:28Speaker 2: one point two point zero two five five point two
- 15:31Speaker 2: five five point two five five point zero one ninety
- 15:33Speaker 2: two point one sixty eight point one point one that
- 15:35Speaker 2: tells the router to reach the ten point one point
- 15:38Speaker 2: two point zero network. Send packets to the router at
- 15:41Speaker 2: one ninety two point one sixty eight point one point one.
- 15:43Speaker 1: Simple enough, but they're temporary by default.
- 15:45Speaker 2: Yeah. If the interface used to reach the next hop
- 15:48Speaker 2: goes down, the static route disappears. From the routing table.
- 15:51Speaker 2: You can add the permanent keyword at the end if
- 15:54Speaker 2: you want it to stay even if the interface is down.
- 15:56Speaker 2: But that's less common.
- 15:58Speaker 1: Okay, But what if a router learn multiple ways to
- 16:00Speaker 1: get to the same place, maybe a static route and
- 16:03Speaker 1: also a dynamic protocol.
- 16:05Speaker 2: Excellent question. That's where administrative distance or AD comes in.
- 16:09Speaker 1: AD sounds important. It is.
- 16:11Speaker 2: It's a number from zero to two fifty five that
- 16:13Speaker 2: represents how trustworthy a routing source is. Lower number means
- 16:17Speaker 2: more trustworthy, So the.
- 16:18Speaker 1: Router picks the path with the lowest AD.
- 16:21Speaker 2: Exactly if it learns about the same network from two
- 16:23Speaker 2: different sources, it installs the route with the lower AD
- 16:26Speaker 2: into the routing table.
- 16:27Speaker 1: What are some typical AD values.
- 16:29Speaker 2: A directly connected network has an AD of zero. Can't
- 16:32Speaker 2: be that it's plugged right in, makes sense. A static
- 16:34Speaker 2: route has a default AD of one, very trustworthy because
- 16:38Speaker 2: you manually configured it. Okay, Then the dynamic protocols EIGRP
- 16:41Speaker 2: is ninety, OSPF is one ten, RIP is one twenty.
- 16:45Speaker 1: So EIGRP is preferred over OSPF, which is preferred over RIP.
- 16:49Speaker 1: If they all offer a route.
- 16:50Speaker 2: By default, yes, and two fifty five means totally untrusted,
- 16:54Speaker 2: the route won't be used.
- 16:56Speaker 1: Can you use this AD cleverly.
- 16:58Speaker 2: Absolutely, that's the idea behind and floating static routes. Imagine
- 17:01Speaker 2: you're running EI g RP eighty ninety as your main
- 17:04Speaker 2: routing protocol. You could configure a static route for the
- 17:07Speaker 2: same destination, but manually give it a higher AD, say
- 17:10Speaker 2: one hundred.
- 17:11Speaker 1: So normally the EIGRP route.
- 17:13Speaker 2: Is used, right, but if the e I goop route disappears,
- 17:17Speaker 2: maybe the link fails, the router sees the static route
- 17:20Speaker 2: with eighty one hundred is now the best path, and
- 17:22Speaker 2: it floats into the routing table as a backup.
- 17:24Speaker 1: Ah cool, automatic backup.
- 17:26Speaker 2: Exactly intelligent failover using AD. And then there are default
- 17:29Speaker 2: routes the route of last resource decisely ap route one
- 17:32Speaker 2: ozero point zero point zero point zero point zero point zero,
- 17:35Speaker 2: followed by the next hop or exit interface. It basically means,
- 17:38Speaker 2: if you don't have a specific route for this destination
- 17:40Speaker 2: at your table, send it here, usually points towards your
- 17:43Speaker 2: ISP or core network, and you check all this one
- 17:45Speaker 2: shoe iproot your main command for viewing the routing table
- 17:47Speaker 2: and seeing which routes are active. They're ad metric and
- 17:50Speaker 2: how they were learned.
- 17:50Speaker 1: Okay, so static routes are manual. What about the dynamic
- 17:53Speaker 1: ones you mentioned RIP E I g r POSPF right.
- 17:57Speaker 2: Those are the protocols routers used to automatically share routing
- 18:00Speaker 2: information with each other, much more scalable for larger networks.
- 18:03Speaker 1: Let's maybe touch on each one briefly, starting with RIP sure.
- 18:06Speaker 2: RIP Routing Information Protocol. It's a pretty old simple distance
- 18:11Speaker 2: vector protocol. You enable it with router RIP, then tell
- 18:13Speaker 2: it what networks to advertise YEP using the network command.
- 18:16Speaker 2: But crucially with RP version one and sometimes version two,
- 18:20Speaker 2: you use the classical network number like network one nine
- 18:23Speaker 2: two point one six eight point one one point zero,
- 18:26Speaker 2: even if you're using subnets within.
- 18:27Speaker 1: That class four. Okay.
- 18:29Speaker 2: Version two is better supports subnet masks. It's common to
- 18:32Speaker 2: use version two and no auto summary to stop it
- 18:34Speaker 2: from doing unhelpful classful summarization. You might also use passive
- 18:38Speaker 2: interface on interfaces facing users, so RIT updates don't go
- 18:42Speaker 2: out there and troubleshooting debug IP RIP shows you the
- 18:45Speaker 2: updates being sent or received. Also show a protocols gives
- 18:48Speaker 2: you info about RIP timers and settings.
- 18:50Speaker 1: Got it next up E I g RP E I g.
- 18:53Speaker 2: RP Enhanced Interior Gateway Routing Protocol Cisco proprietary but very popular.
- 18:59Speaker 2: It's an advanced distance sometimes called hybrid.
- 19:01Speaker 1: How do you turn it on?
- 19:02Speaker 2: Router I GRIP followed by an autonomous system number like
- 19:05Speaker 2: router I GRIP one hundred. This as number must match
- 19:09Speaker 2: on all routers you want to become neighbors.
- 19:11Speaker 1: Okay, as number is key. What else?
- 19:13Speaker 2: EIGRP uses metrics based on bandwidth and delay. By default,
- 19:17Speaker 2: the bandwidth command on interface influences the calculation, but doesn't
- 19:21Speaker 2: actually change the interface speed. It supports unequal cost load
- 19:25Speaker 2: balancing using the variance command. Like RIP, no auto summary
- 19:28Speaker 2: is usually recommended.
- 19:29Speaker 1: What about security?
- 19:30Speaker 2: EIGRP has robust MT five authentication. You create a key chain,
- 19:35Speaker 2: define key numbers and key string passwords and apply it
- 19:37Speaker 2: to the interface and choos. Routers only accept updates from
- 19:40Speaker 2: trusted neighbors. Very important o'ifying EIGRP show at P c
- 19:44Speaker 2: rep neighbors to see adjacent routers, show apic GRIP topology,
- 19:48Speaker 2: shows the routes. EIGRP knows about debug I GRIP packets
- 19:51Speaker 2: for deep troubleshooting.
- 19:52Speaker 1: Cool and finally, OSPF.
- 19:54Speaker 2: OSPF Open Shortest Path first industry standard link state protocol
- 19:59Speaker 2: very scalable wide use.
- 20:00Speaker 1: How it's a configure router OS.
- 20:01Speaker 2: Followed by a process eight like router os one. This
- 20:04Speaker 2: idea is just locally significant. It doesn't have to match
- 20:07Speaker 2: between routers.
- 20:08Speaker 1: Okay, different from eigrp's AS number.
- 20:10Speaker 2: Right. Then you use the network command. But it's different
- 20:12Speaker 2: here network IP address, wildcard mask, area, area card mask.
- 20:17Speaker 1: What's that?
- 20:17Speaker 2: It's like an inverted subnet maask zeros mean match this
- 20:20Speaker 2: bit exactly, ones mean ignore this bit. So network one
- 20:23Speaker 2: ninety two point one six eight point hero zero point
- 20:27Speaker 2: two five to five. Area zero means enable OSPF on
- 20:30Speaker 2: any interface whose IP starts with a one ninety two
- 20:32Speaker 2: point one sixty eight point one. The area is crucial
- 20:35Speaker 2: for osps's hierarchical design.
- 20:37Speaker 1: And loopback interfaces are important.
- 20:38Speaker 2: Often use for the routar eight. OSPF needs a unique
- 20:41Speaker 2: ID for each router. A loopback interface IP is stable
- 20:44Speaker 2: because it never goes down unless manually shut down, making
- 20:47Speaker 2: it a good source for the router ID. What else
- 20:49Speaker 2: is key for OSPF on multi access networks like ethernet,
- 20:52Speaker 2: OSPF ALEXA designated router DR and backup DR. To manage adjacencies,
- 20:56Speaker 2: you can influence this with EPUS five priority on the
- 20:59Speaker 2: interface priority wins Priority zero means it can't become DRBDR.
- 21:03Speaker 2: OSPF uses cost calculated from interface bandwidth. Lower cost is
- 21:07Speaker 2: better higher band with lower cost. Authentication is also supported.
- 21:11Speaker 2: Simple textor MD five and OSBF timers the hello interval
- 21:15Speaker 2: and dead interval months match between neighbors for them to
- 21:17Speaker 2: form an.
- 21:18Speaker 1: Adjacency verifying OSPF show.
- 21:20Speaker 2: IP your ref of neighbor is key, show IP ASP
- 21:23Speaker 2: of database shows the link state information, debug APAASP events
- 21:27Speaker 2: helps troubleshoot adjacency issues. OSPF is powerful, especially in larger
- 21:31Speaker 2: complex networks.
- 21:31Speaker 1: Okay, that's a whirlwind tour of routing. Let's switch gears.
- 21:35Speaker 1: Now move from the wide area network down to the
- 21:37Speaker 1: local network switches.
- 21:38Speaker 2: Right connecting devices within the same building or floor, typically
- 21:42Speaker 2: managing local traffic.
- 21:43Speaker 1: Switches have modes like routers too, YEP user.
- 21:46Speaker 2: Mode, switch, privileged mode, switch, hashtag, global config. Very similar
- 21:50Speaker 2: feel it is show commands many of the same show version,
- 21:53Speaker 2: show running canfig but also switch specific ones like showflan,
- 21:57Speaker 2: showmac address table, show interfaces status.
- 21:59Speaker 1: How do you configure basic switch info?
- 22:02Speaker 2: Pretty much like a router hostname name to say, the team.
- 22:05Speaker 2: Password configuration is identical. Enable secret line console, zero line
- 22:09Speaker 2: vt AoE fifteen switches often to have more vty lines,
- 22:13Speaker 2: password log in service, password encryption.
- 22:16Speaker 1: Can you give us switch an IP address? I thought
- 22:18Speaker 1: there were layer two devices?
- 22:20Speaker 2: Good question. They operate primarily at layer two. Yes, forwarding
- 22:23Speaker 2: based on AIRP addresses. But for management, so you can
- 22:27Speaker 2: telnet or SSH into the switch, you need an IP
- 22:30Speaker 2: address where you can figure that on a switched virtual
- 22:33Speaker 2: interface or SVII, usually interface FLAN one. By default, you
- 22:37Speaker 2: go to that interface, assign an app address of address,
- 22:40Speaker 2: subnet mask and no shutdown. You also need to configure
- 22:43Speaker 2: a default gateway for the switch using I Default Gateway
- 22:47Speaker 2: Gateway IP in global CONFIGU mode, so you can reach
- 22:49Speaker 2: management stations on other networks.
- 22:51Speaker 1: Huh okay, so the IP is just for managing the
- 22:53Speaker 1: switch itself exactly.
- 22:54Speaker 2: You can also set interface descriptions, configure speed in duplex settings.
- 22:58Speaker 2: Auto is common, but sometimes you need to hard code them.
- 23:00Speaker 1: And resetting a switch reload.
- 23:01Speaker 2: Restarts it right. A restartup config wipes the safe config
- 23:04Speaker 2: but wiping VLAN infos different. You need to erase flash
- 23:07Speaker 2: dot vland DOTU. Careful with that command, very careful, make
- 23:10Speaker 2: sure you type the call incorrectly. Flash dot vland dot
- 23:13Speaker 2: dot dat. If you just do a race flash, you
- 23:15Speaker 2: could wipe the entire operating system.
- 23:17Speaker 1: Hikes. Okay, Switches work with MPO addresses, right, How do
- 23:21Speaker 1: you manage those?
- 23:22Speaker 2: They learn app addresses automatically by looking at the source
- 23:25Speaker 2: address of frames coming into each port. They build a
- 23:28Speaker 2: macaddress table sometimes it's called a CAM table. You can
- 23:31Speaker 2: see it with show Mac address table.
- 23:32Speaker 1: Can you clear it?
- 23:33Speaker 2: Yep? Clear macaddress table. Dynamic removes all learned addresses. Or
- 23:38Speaker 2: you can specify an interface or VLAN.
- 23:40Speaker 1: Can you manually assign a MAC address to a port?
- 23:44Speaker 2: You can mac address table static macaddress landed interface type number.
- 23:49Speaker 2: This permanently locks that MPOCK address to that specific port
- 23:52Speaker 2: in that vland. Sometimes used for security or specific configurations.
- 23:57Speaker 1: Speaking of security, what about locking down ports preventing random
- 24:00Speaker 1: people from plugging.
- 24:01Speaker 2: In AH port security crucial feature on switches Unless you
- 24:05Speaker 2: control witch MACA addresses and how many are allowed to
- 24:08Speaker 2: connect to a specific switch.
- 24:09Speaker 1: Port, how do you turn it on?
- 24:11Speaker 2: First, make sure the port is an access port, switchport
- 24:14Speaker 2: mode access. Then switchport port security enables the feature on
- 24:18Speaker 2: that interface.
- 24:19Speaker 1: Then you set the rules exactly.
- 24:21Speaker 2: Switchport port security maximum value says how many MAC addresses
- 24:25Speaker 2: are allowed, often just one. Switchport port security mac address
- 24:30Speaker 2: MAC address can statically define the allowed MAC or you
- 24:34Speaker 2: can use switch court port security MAC address dicky to
- 24:38Speaker 2: let the switch learn the first MA address it sees
- 24:40Speaker 2: and stick it to the port.
- 24:41Speaker 1: What happens if someone violates the rule plugs in a
- 24:44Speaker 1: different device That depends.
- 24:45Speaker 2: On the violation mode. You said it with switch port
- 24:48Speaker 2: security violation shut down restrict.
- 24:49Speaker 1: Protect shutdowns sounds serious.
- 24:51Speaker 2: It is. The interface goes into an air disabled state,
- 24:54Speaker 2: effectively shutting it down requires manual intervention to bring back
- 24:58Speaker 2: ups drops the violate in traffic and sends log messages
- 25:01Speaker 2: in S and MP traps. The port stays up, but
- 25:04Speaker 2: the unauthorized device can't communicate. Protect simplest just drops the
- 25:08Speaker 2: violating traffic, no logs port stays up. Shutdown is the
- 25:11Speaker 2: most common secure default.
- 25:13Speaker 1: How do you check if port security tripped?
- 25:15Speaker 2: Show port security interface type number gives you all the details.
- 25:18Speaker 2: Max addresses, current count, sticky ams, violation mode and security
- 25:22Speaker 2: action count.
- 25:23Speaker 1: Okay, very useful. Now let's talk VLANs virtual lands right.
- 25:28Speaker 2: Breaking up one physical switch into multiple logical broadcast domains
- 25:32Speaker 2: great for security organization performance.
- 25:34Speaker 1: How do you create them?
- 25:35Speaker 2: Simple? In global config land landed like land ten, then
- 25:40Speaker 2: optionally name name like name sales.
- 25:42Speaker 1: VLAN ten is now called sales. How do you put
- 25:45Speaker 1: ports into it?
- 25:45Speaker 2: Go into the interface canfig interface faster net zero one
- 25:48Speaker 2: First make it an access port switchport mode access, then
- 25:51Speaker 2: assign it switchboard access LAN ten, So.
- 25:54Speaker 1: Fazero one is now in the sales vlan. Can you
- 25:56Speaker 1: do multiple ports at once?
- 25:58Speaker 2: Yes? Using the interface range their face range fasten it
- 26:01Speaker 2: zero one ten than any commands you type applied to
- 26:04Speaker 2: all ten ports. Very efficient. Verifying VLAN Chovelan brief is
- 26:08Speaker 2: the best quick overview shows all vlands their names and
- 26:11Speaker 2: which ports are assigned to them. You can also use
- 26:13Speaker 2: chauvelin name sales or Chauvelan E ten.
- 26:15Speaker 1: How are VLANs saved? Is it in the startup configure?
- 26:18Speaker 2: Mostly? Yes? For standard range vilans one one thousand and five,
- 26:21Speaker 2: they're actually saved in that VLAN dot dot file and
- 26:24Speaker 2: flash memory we mentioned. Extended range villans one thousand and
- 26:27Speaker 2: six four to ninety four might behave differently depending on
- 26:31Speaker 2: the switch model and configuration.
- 26:32Speaker 1: Mode and clearing VLAN assignments.
- 26:35Speaker 2: On an interface no switch court access FLAN usually puts
- 26:38Speaker 2: it back into VLAN one. The default to delete a
- 26:41Speaker 2: vilan entirely use no VLAN ten, but be careful any
- 26:45Speaker 2: ports still assigned to VLAN ten will become inactive. Best
- 26:49Speaker 2: practice is to reassign the ports before deleting the VLAN
- 26:52Speaker 2: good tip.
- 26:52Speaker 1: Okay, Last big topic connecting switches together and managing VLANs
- 26:56Speaker 1: across multiple switches. Trunking and BTP right.
- 26:59Speaker 2: If you want multiple vlands to cross a link between
- 27:01Speaker 2: two switches, you need a trunk, and VDP helps synchronize
- 27:04Speaker 2: VLAN databases.
- 27:05Speaker 1: How does a trunk get formed?
- 27:07Speaker 2: Often automatically using DTP Dynamic trunking Protocol Cisco proprietary interface
- 27:12Speaker 2: modes like Dynamic Auto or Dynamic Desirable negotiate, or you
- 27:15Speaker 2: can manually force it with switchport mode. Trunk using switchport
- 27:18Speaker 2: non negotiate turns off DTP if you hardcode it as
- 27:20Speaker 2: a trunk or.
- 27:21Speaker 1: Access port and the trunk needs to know how to
- 27:22Speaker 1: tag the traffic for different vlands.
- 27:24Speaker 2: Right, exactly. That's encapsulation. Two main types Cisco's old ISL
- 27:29Speaker 2: and the industry standard IEE eight two point one Q
- 27:33Speaker 2: often called DOT one Q. You can figure it with
- 27:35Speaker 2: switchport trunk encapsulation is ATO dot one Q negotiate. Most
- 27:39Speaker 2: modern networks use dot one Q if set to negotiate,
- 27:42Speaker 2: it usually prefers isl Both sides support.
- 27:44Speaker 1: It, okay, Now, VTP VLAN trunking protocol.
- 27:47Speaker 2: This protocol lets one switch the VTP server manage the
- 27:51Speaker 2: VLAN database for other switches VTP clients in the same
- 27:55Speaker 2: VDP domain. You create VLAN twenty on the server and boom,
- 27:58Speaker 2: it automatically appears on all the clients.
- 28:00Speaker 1: Saves a lot of work.
- 28:01Speaker 2: Huge time saver. In large networks, you can figure the
- 28:03Speaker 2: VDP mode server client or transparent. Transparent switches manage their
- 28:07Speaker 2: own vlands, but PASSVDP info. You said a VDP domain
- 28:11Speaker 2: name and optionally a VTPU password password, then those have
- 28:14Speaker 2: to match absolutely critical domain name and password must be
- 28:17Speaker 2: identical case sensitive for switches to exchange VTP updates. A
- 28:21Speaker 2: mismatch can cause big problems.
- 28:22Speaker 1: What's VTP pruning smart feature?
- 28:25Speaker 2: If enabled, VTP pruning switches tell their neighbors which VLANs
- 28:29Speaker 2: they actually have active ports for. Then broadcast traffic for
- 28:33Speaker 2: a specific VLAN is only sent across trunks if the
- 28:36Speaker 2: neighboring switch actually needs that. VLAN reduces unnecessary.
- 28:40Speaker 1: Traffic verifying VTP.
- 28:42Speaker 2: So VTP status gives you the mode, domain name, revision number,
- 28:46Speaker 2: very important pruning status, show VTP counters, shows update statistics.
- 28:51Speaker 1: Wow, we've covered a ton of ground, from basic cables
- 28:55Speaker 1: and ips all the way to complex routing and switching configus.
- 28:58Speaker 2: We really have. It's the core toolkit for a CEC
- 29:01Speaker 2: and a engineer.
- 29:02Speaker 1: So what does this all mean for you listening? You've
- 29:04Speaker 1: just gotten, hopefully a really powerful shortcut to understanding these
- 29:07Speaker 1: cor Cisco commands and concepts. We've tried to unpack everything
- 29:10Speaker 1: from you know, literally how devices connect to how they
- 29:13Speaker 1: talk across networks and how you manage them.
- 29:15Speaker 2: It really provides that foundational command structure. But this raises
- 29:19Speaker 2: a final important question for you, yea, how will you
- 29:21Speaker 2: take this structured knowledge, this theory and turn it into
- 29:24Speaker 2: hands on practice?
- 29:25Speaker 1: Right reading about it is one thing.
- 29:27Speaker 2: Exactly We really recommend you get into simulation labs, packet tracer,
- 29:31Speaker 2: GNS three, EVENG whatever works for you. Start typing these commands,
- 29:35Speaker 2: build networks, break them, fix them. That's where the real
- 29:38Speaker 2: learning happens, when you actually apply it