Cisco CCNA Command Guide For Beginners And Intermediates: A Practical Step By Step Guide to Cisco CCNA Routing And Switching Command Line - podcast episode cover

Cisco CCNA Command Guide For Beginners And Intermediates: A Practical Step By Step Guide to Cisco CCNA Routing And Switching Command Line

Feb 06, 202630 min
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

Provides an overview of Cisco CCNA commands for beginners and intermediate users, focusing on practical applications in real networks and simulation labs. It systematically covers fundamental networking concepts such as IP subnetting, including classful addressing and binary conversions, and device connectivity with cabling types. The guide then transitions into detailed sections on command-line interface shortcuts and helpful commands, followed by extensive coverage of router configuration, including various modes, password security, and interface setup. Subsequent sections thoroughly explore routing protocols like Static Routes, RIP, EIGRP, and OSPF, detailing their configuration, administrative distances, and troubleshooting techniques. Finally, the book addresses switching concepts, encompassing switch configuration, VLAN management, and trunking protocols, making it a complete resource for aspiring network engineers.

You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary

Get the Book now from Amazon:
https://www.amazon.com/Cisco-Command-Guide-Beginners-Intermediates/dp/B08T7DYPCZ?&linkCode=ll1&tag=cvthunderx-20&linkId=6b9b8dcc8ef153eb19869f96247ebb76&language=en_US&ref_=as_li_ss_tl

Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy

Transcript

Speaker 1

Welcome back to the deep dive. Today, we're really getting our hands dirty, jumping into the practical world of Cisco CCNA commands.

Speaker 2

Yeah, exactly.

Speaker 1

Imagine you're setting up a network from scratch, maybe for a new office, a growing startup. Where do you even begin?

Speaker 2

Right?

Speaker 1

Our mission for you today is basically to pull out the absolute must know bits, give you a kind of shortcut, you know, so you feel ready to connect some dots.

Speaker 2

And what's really valuable here, I think, is that this guide we're looking at focuses on the commands you actually need. Beginner, intermediate level CCNA stuff, practical stuff exactly, stuff you can use on real gear or in the simulation labs for the exam. It's all about application.

Speaker 1

Okay, So first things first, before any configuration, you got to connect things right.

Speaker 2

Cabling the physical layer yep.

Speaker 1

Sounds basic maybe, but here's where it gets interesting, Like choosing the wrong cable that can completely sink your network before you type a single command.

Speaker 2

Oh absolutely, I've seen it happen. Hours wasted me too.

Speaker 1

I remember, spending age is troubleshooting once only to find YEP, crossover cable where a straight through should have been. Total face palm moment happens to the best of us. So the guide really stresses mastering this. Know you're streight through your crossover, your rollover cables.

Speaker 2

And the pinouts are key. It's the wiring inside, which pin connects to which get that wrong? No data flow, simple as that.

Speaker 1

And once it's plugged in, you need to check the config on the actual computers.

Speaker 2

Right, yeah, on the end devices, So like if you can FIG on Linux or Mac.

Speaker 1

Or IP can fig if you're on Windows, Windows two thousand and up.

Speaker 2

Basically, and this whole cabling thing, getting it right, it really sets the stage, doesn't it. Make sure you're not chasing hardware ghosts when the problem is actually software exactly.

Speaker 1

You don't want to be troubleshooting routing protocols. If the cable's just.

Speaker 2

Wrong, you're trying to drive a car with no wheels.

Speaker 1

Essentially, good analogy. Okay, so physically connected, now they need addresses. They need to speak the language of IP. Right, let's talk IP subnetting. Sounds a bit scary, maybe you can see in that way, but we'll break it down. Think about those IP address classes ABC.

Speaker 2

Mainly, Yeah, they're like different sizes of networks right.

Speaker 1

So Class A starts with a zero first number is zero to one twenty seven. That's your massive network like an ocean liner holds millions of devices.

Speaker 2

Huge organizations ISPs.

Speaker 1

Maybe Class B starts one zero numbers one twenty eight to one ninety one. That's maybe more like a large cargo ship medium to large businesses makes sense. And Class C starts one one zero numbers one ninety two to two twenty three. That's your small fishing boat home networks small offices holds a couple hundred addresses.

Speaker 2

Perfect for most smaller setups.

Speaker 1

Then you have Class D for multicasting like video streams to many people at once.

Speaker 2

Two hundred and twenty four to two thirty nine range.

Speaker 1

And Class E, which is reserved experimental stuff two forty.

Speaker 2

In up right, And the guide shows how computer see these numbers converting decimal to binary.

Speaker 1

Yeah, like one ninety two becomes one hundred and one hundred thousand, or two twenty four is eleven hundred and fetter thousand.

Speaker 2

So that familiar private IP one ninety two point one sixty eight point two five four point twenty five four The router sees it as a one one hundred zero zero zero zero one zero one one zero zero point one one one on a narrow point one one one one one one point one one one one one one one one binary.

Speaker 1

Okay, So how does the router use that?

Speaker 2

That's where binary ending comes in. It sounds technical, but it's fundamental. It's how devices figure out the network part of an address versus the host part.

Speaker 1

Like separating the street name from the house number exactly.

Speaker 2

It uses the IP address and the subnet mask. Think of it like a filter. Only where both the IP and the mask have a one bit, does a one come through in the result.

Speaker 1

Okay?

Speaker 2

The logic is simple zero no zero one and no zero zero one is a one bit only one on one gives you one, got it? So take that one ninety two point one sixty eight point two five four point two five four Again. If your mask is two five five point two five five point zero point zero, which is all ones in the first two oct it's when you endy them together binary style. Get one ninety two point one sixty eight point zero zero. That's the network number. That's how your device knows if another IP

is on the same local network or somewhere else. Right.

Speaker 1

Okay, that makes sense. So wired up addresses understood. Now, how do we talk to these Cisco devices, routers, switches.

Speaker 2

That's the command line interface, the CLI, your.

Speaker 1

Direct line in no fancy graphics, just task commands.

Speaker 2

Pretty much. It's the primary way you can figure and manage Cisco gear.

Speaker 1

And there are shortcuts right right to save.

Speaker 2

Typing Oh yeah, tons of them, big time savers like typing COF then hitting the TB key It autocompletes to configure terminal nice or just for able to get into privilege mode.

Speaker 1

Very handy, but you still need to know the full command for exams usually.

Speaker 2

Definitely good point. The shortcuts are for efficiency on the job.

Speaker 1

And what if you forget a command or aren't sure what options are available?

Speaker 2

The question mark your best friend on the CLI? Yeah yep. Just type bought on its own shows you all commands in that mode. Type C or N shows commands starting C or N or type of command like clock, then a space then and it shows you what words or parameters can come next. Super helpful, like a built in.

Speaker 1

What about the setup mode? The guide mentions is that useful?

Speaker 2

Not really for most people. It kicks in automatically if a device has zero configuration.

Speaker 1

Like brand new out of the box exactly, or you.

Speaker 2

Can type set up. It's like a basic wizard, ask you questions, but it's very limited.

Speaker 1

Can't do much with it.

Speaker 2

Nope, basic IP stuff maybe a password, no ACLS, no NAT. Serious configuration requires the CLI. Most engineers skip.

Speaker 1

It, gotcha, stick to the CLI definitely.

Speaker 2

And speaking of the CLI, there are even more shortcuts, like keyboard shortcuts that really boost productivity. Oh like what well, Ctrl plus z is amazing, jumpt you right back to privileged mode from anywhere, and configu mode saves typing end or exit multiple times. Oh I like that. Ctrl plus F moves forward a character, ec plus b moves back a whole word. Ctrl plus e takes you to the end of the line you're typing.

Speaker 1

Handy for fixing typos totally.

Speaker 2

And then there's command history. Ctrl plus P recalls previous commands ctr we'll plug and recalls newer ones if you went back too.

Speaker 1

Far, so you don't have to retype everything exactly.

Speaker 2

And you can even control how many commands get remembered with terminal history size. And then a number. Default is often just ten, but you can bump it up maybe to fifty or one hundred max is two fifty six?

Speaker 1

Why not? I always set it to max.

Speaker 2

It uses a bit of router memory, probably not noticeable on modern gear, but something to be aware of. There's always a trade off. You can reset it with no terminal history size. Okay. Cool.

Speaker 1

Now, once you're configuring things, you need to see what's going on right.

Speaker 2

Verify stuff absolutely. That's where the show commands come in. They are indispensable your eyes and ears inside the device.

Speaker 1

So if something's broken, where do you start? What are the key show commands?

Speaker 2

Great question, It's less about memorizing a list and more about thinking what do I need to check? I tend to group them. Okay. First, basic connectivity and interfaces. Show interfaces status gives you a quick look at all ports of they up, down, connected, show interface fast Internet oh one or whatever. It gives you detailed staff for that specific port, error speed.

Speaker 1

Duplex all right, checking the physical connection.

Speaker 2

Then ipaddressing DOT show interface brief is fantastic, quick summary dot interface, IP address is that up status protocol dot super useful, And show ARP shows the mapping between IP addresses and MC addresses the device has learned. Crucial for Layer two troubleshooting makes sense.

Speaker 1

What about the actual configuration.

Speaker 2

That's where show running config comes in. Shows you the active configuration what the device is using right now from ramp absolutely vibe and you compare that to show startup canfig that's the config saved and NVRMP the one the loads on boot. If they're different, you know you haven't saved your changes. Ah, the classic mistake happens all the time. Then for routing, show ip rout that's your routing table. How does this router know how to reach different networks?

It's all in there. And show protocols tells you about the Layer three protocols.

Speaker 1

Configured, got it any others?

Speaker 2

Show version is good for checking the iOS software version, uptime, hardware info. Show history dumps your command history buffer. Show flash shows you the flash memory contents, Show clock for the time, Show hosts for any local host named it mappings you've set up.

Speaker 1

Wow. Okay, so show commands are really your window into the device.

Speaker 2

Absolutely you live and breathe Show commands when managing Cisco gear.

Speaker 1

Okay, let's zoom in on router. Specifically, they're the traffic cops directing packets between.

Speaker 2

Networks, directing the traffic.

Speaker 1

Yeah, and configuring them means understanding those different modes you mentioned earlier.

Speaker 2

Right, you start in user mode usually just router prelimited. Then enable gets you to privileged mode rater hashtag. Here you can run show commands, debugs, save can figs, but still can't make changes. For changes, you need configure terminal or can fig for short. That takes you into global configuration mode router can fig hashtag. This is where the

real work happens, and from there you can go deeper. YEP, interface faster at a zero zero takes you to interface mode router configure hashtag or router ospe f one takes you to router configure mode reader figure outer hashtag. There are also modes for lines, can fig line the sub interfaces, config soubif key thing.

Speaker 1

Is different commands work in different modes.

Speaker 2

Exactly, And first thing you usually do in global config get the writer or a.

Speaker 1

Name post name R one or whatever post name name Yeah.

Speaker 2

Yeah. Good practice for identification.

Speaker 1

And security is paramount right passwords, oh absolute foundational.

Speaker 2

You've got two main enabled passwords.

Speaker 1

The ones to get into privileged mode.

Speaker 2

Right enable password password is the old way stores in plaintext and the config bad idea to so avoid that one, yes, always use enable secret password. This one uses stronger encryption MT five hashing usually much more secure, and if you can figure both the enabled secret wins, it always overrides the enabled password.

Speaker 1

Good to know. What about passwords for actually logging in, like over the console cable or remotely?

Speaker 2

Yep, you secure those lines too, Line console zero for the console port line VTIO four typically covers the five virtual terminal lines for Telnet or SSH, LINEO zero for the auxiliary report. In the commands inside the line config mode, use password to set it, and then critically you must type log in to tell a router to actually check for that password on login.

Speaker 1

Attempts okay password, then log in right.

Speaker 2

And there's also service password encryption. This command applies a very weak encryption to all plaintext passwords in the config like the line passwords or if you foolishly used enable password.

Speaker 1

Is it actually secure?

Speaker 2

Not really, it's easily breakable. It just stops casual shoulder surfing. Enable secret is the only strong one built in for the enabled password. If you turn off service password encryption later, any passwords that weakly encrypted stay that way.

Speaker 1

So just to be clear. Why is an able password such a bad idea? How quickly could that bite you?

Speaker 2

Instantly? If anyone gets a copy of your config file, maybe a backup, maybe through some other access, they just read the password. It's right there, no guessing, no cracking required, enable secret hashes it so even seeing the config doesn't give away the password directly. It's a basic essential secure step.

Speaker 1

Okay, message received, use an able secret. Now interfaces, the actual connections, how do we configure those?

Speaker 2

Right? So you navigate using interface followed by the type in number like interface cereal zero zero zero, interface faceter and at zero zero.

Speaker 1

And you warned the prompt doesn't always change.

Speaker 2

Yeah, it might just say rote or configu hashagg regardless of whether you're in serial zero zero, fascinated at zero zero, keep track, exit moves you back up one level.

Speaker 1

Okay. Let's say we're configuring a serial interface like for a WAN link.

Speaker 2

Okay, so interface serial zero zero zero zero. Good practice to add a description like description link to main office helps document things and the IP address, app dress, subnetmask, standard stuff.

Speaker 1

And the special thing for cereal the clock rate.

Speaker 2

If you have the DCE cable, the one providing the timing signal for the link You must set the clock rate speed command on that interface only needed on the DCE side.

Speaker 1

How do you know the speed?

Speaker 2

Usually determined by the service provider or the capabilities of the link fin no shutdown to actually turn the interface on, They're off by default? No shutdown? Got it?

Speaker 1

And for fast Ethernet like connecting to a land switch.

Speaker 2

Simpler interface fast Ethernet zero zero maybe a description then IP address, IP address, subnet mask and no shutdown. No clock rate needed there?

Speaker 1

Okay? What about those messages you sometimes see when you log into a device, like warnings or welcome messages.

Speaker 2

Ah banners? Yeah, you could set those banner mot hashtag, message here, hashtag attag. The hashtag is a deliminter. You can use any character not nut in your message. MOTD stands for Message of the day. When does that show up after successful log in? Usually there's also banner log in hashtag message hashtag which shows up before the login prompt. MOOTD usually takes precedence if both are set. Good for legal disclaimers or warnings?

Speaker 1

Cool? You mentioned show hosts earlier? Can you manually set those?

Speaker 2

You can use IPPO host name, IP address so you could do IIP post server one one nine two point one sixty eight point one one one on a zero. Then on that router you could potentially ping server one instead of the IP. It's just a local mapping on that device.

Speaker 1

Handy for remembering key servers.

Speaker 2

Yeah, and related to look ups. By default, if you type something the router doesn't recognize as a command, it tries to resolve it via DNS, thinking it's a host name you want to connect.

Speaker 1

To, and that can be slow. If you just made a typo.

Speaker 2

Exactly, it hangs for a bit. Try to contact a DNS server. You can turn that off with no IP domain lookup. Saves a lot of frustration from typos.

Speaker 1

Good tip. All right, any other really useful general commands we should know?

Speaker 2

Yeah, a few life savers. No logging synchronous ever. Typing a command and a console message like percent link fine you be down? Yeah, pops up right in the middle of your line.

Speaker 1

Yes, so annoying.

Speaker 2

No logging synchronous stops that. It ensures your command prompt reappears cleanly below the message, so you don't lose your place.

Speaker 1

Essential Okay, definitely using that one.

Speaker 2

Then exact timeout sets how long a console or vty session can be idle before it logs you out. Yeah, exact time out one hundred zero means ten minutes, zero seconds, good security practice. What about zero zero means never time out? Big security hole. Don't do that on production.

Speaker 1

Gear right, and saving your work crucial.

Speaker 2

Copy running config, startup config, or copyrun start for short saves the act of config from RAM to envy RAM. If you don't do this and the router reboots, all gone, yep, mistake, you only make ones. You can also erase startup config to wipe the save config for starting fresh and copy running config. TFTP lets you back up your config to a TFTP serve on the network. Good for disaster recovery.

Speaker 1

And that do command you mentioned right do.

Speaker 2

Let's say you're deep in interface configuration mode. Router can fig ashtag ETI. Normally to see the running config, you'd have to type end then show running config.

Speaker 1

Yeah, jump back out with do.

Speaker 2

You can just type do show running config right there in interface mode. It executes the show command without making you leave config mode. Huge time saver, but it doesn't work for everything. Doesn't work for commands that change your mode, like configure terminal itself, but for most show commands, ping trace for it.

Speaker 1

That's pert awesome, Okay configured. How do they learn about networks beyond the ones directly plugged into them?

Speaker 2

Ah, Now we get into routing. How riders build their maps of the internetwork.

Speaker 1

Starts with static routes the manual way.

Speaker 2

Often yeah, simple scenarios. The command is that brot, then the destination network, then the subnet mask of that destination, than how to get there. How to get there could be either the IP address of the next router in the path, next hopyup, or the router's own exit interface

that leads toward that network. Example, it proved ten point one point two point zero two five five point two five five point two five five point zero one ninety two point one sixty eight point one point one that tells the router to reach the ten point one point two point zero network. Send packets to the router at one ninety two point one sixty eight point one point one.

Speaker 1

Simple enough, but they're temporary by default.

Speaker 2

Yeah. If the interface used to reach the next hop goes down, the static route disappears. From the routing table. You can add the permanent keyword at the end if you want it to stay even if the interface is down. But that's less common.

Speaker 1

Okay, But what if a router learn multiple ways to get to the same place, maybe a static route and also a dynamic protocol.

Speaker 2

Excellent question. That's where administrative distance or AD comes in.

Speaker 1

AD sounds important. It is.

Speaker 2

It's a number from zero to two fifty five that represents how trustworthy a routing source is. Lower number means more trustworthy, So the.

Speaker 1

Router picks the path with the lowest AD.

Speaker 2

Exactly if it learns about the same network from two different sources, it installs the route with the lower AD into the routing table.

Speaker 1

What are some typical AD values.

Speaker 2

A directly connected network has an AD of zero. Can't be that it's plugged right in, makes sense. A static route has a default AD of one, very trustworthy because you manually configured it. Okay, Then the dynamic protocols EIGRP is ninety, OSPF is one ten, RIP is one twenty.

Speaker 1

So EIGRP is preferred over OSPF, which is preferred over RIP. If they all offer a route.

Speaker 2

By default, yes, and two fifty five means totally untrusted, the route won't be used.

Speaker 1

Can you use this AD cleverly.

Speaker 2

Absolutely, that's the idea behind and floating static routes. Imagine you're running EI g RP eighty ninety as your main routing protocol. You could configure a static route for the same destination, but manually give it a higher AD, say one hundred.

Speaker 1

So normally the EIGRP route.

Speaker 2

Is used, right, but if the e I goop route disappears, maybe the link fails, the router sees the static route with eighty one hundred is now the best path, and it floats into the routing table as a backup.

Speaker 1

Ah cool, automatic backup.

Speaker 2

Exactly intelligent failover using AD. And then there are default routes the route of last resource decisely ap route one ozero point zero point zero point zero point zero point zero, followed by the next hop or exit interface. It basically means, if you don't have a specific route for this destination at your table, send it here, usually points towards your ISP or core network, and you check all this one shoe iproot your main command for viewing the routing table

and seeing which routes are active. They're ad metric and how they were learned.

Speaker 1

Okay, so static routes are manual. What about the dynamic ones you mentioned RIP E I g r POSPF right.

Speaker 2

Those are the protocols routers used to automatically share routing information with each other, much more scalable for larger networks.

Speaker 1

Let's maybe touch on each one briefly, starting with RIP sure.

Speaker 2

RIP Routing Information Protocol. It's a pretty old simple distance vector protocol. You enable it with router RIP, then tell it what networks to advertise YEP using the network command. But crucially with RP version one and sometimes version two, you use the classical network number like network one nine two point one six eight point one one point zero, even if you're using subnets within.

Speaker 1

That class four. Okay.

Speaker 2

Version two is better supports subnet masks. It's common to use version two and no auto summary to stop it from doing unhelpful classful summarization. You might also use passive interface on interfaces facing users, so RIT updates don't go out there and troubleshooting debug IP RIP shows you the updates being sent or received. Also show a protocols gives you info about RIP timers and settings.

Speaker 1

Got it next up E I g RP E I g.

Speaker 2

RP Enhanced Interior Gateway Routing Protocol Cisco proprietary but very popular. It's an advanced distance sometimes called hybrid.

Speaker 1

How do you turn it on?

Speaker 2

Router I GRIP followed by an autonomous system number like router I GRIP one hundred. This as number must match on all routers you want to become neighbors.

Speaker 1

Okay, as number is key. What else?

Speaker 2

EIGRP uses metrics based on bandwidth and delay. By default, the bandwidth command on interface influences the calculation, but doesn't actually change the interface speed. It supports unequal cost load balancing using the variance command. Like RIP, no auto summary is usually recommended.

Speaker 1

What about security?

Speaker 2

EIGRP has robust MT five authentication. You create a key chain, define key numbers and key string passwords and apply it to the interface and choos. Routers only accept updates from trusted neighbors. Very important o'ifying EIGRP show at P c rep neighbors to see adjacent routers, show apic GRIP topology, shows the routes. EIGRP knows about debug I GRIP packets for deep troubleshooting.

Speaker 1

Cool and finally, OSPF.

Speaker 2

OSPF Open Shortest Path first industry standard link state protocol very scalable wide use.

Speaker 1

How it's a configure router OS.

Speaker 2

Followed by a process eight like router os one. This idea is just locally significant. It doesn't have to match between routers.

Speaker 1

Okay, different from eigrp's AS number.

Speaker 2

Right. Then you use the network command. But it's different here network IP address, wildcard mask, area, area card mask.

Speaker 1

What's that?

Speaker 2

It's like an inverted subnet maask zeros mean match this bit exactly, ones mean ignore this bit. So network one ninety two point one six eight point hero zero point two five to five. Area zero means enable OSPF on any interface whose IP starts with a one ninety two point one sixty eight point one. The area is crucial for osps's hierarchical design.

Speaker 1

And loopback interfaces are important.

Speaker 2

Often use for the routar eight. OSPF needs a unique ID for each router. A loopback interface IP is stable because it never goes down unless manually shut down, making it a good source for the router ID. What else is key for OSPF on multi access networks like ethernet, OSPF ALEXA designated router DR and backup DR. To manage adjacencies, you can influence this with EPUS five priority on the interface priority wins Priority zero means it can't become DRBDR.

OSPF uses cost calculated from interface bandwidth. Lower cost is better higher band with lower cost. Authentication is also supported. Simple textor MD five and OSBF timers the hello interval and dead interval months match between neighbors for them to form an.

Speaker 1

Adjacency verifying OSPF show.

Speaker 2

IP your ref of neighbor is key, show IP ASP of database shows the link state information, debug APAASP events helps troubleshoot adjacency issues. OSPF is powerful, especially in larger complex networks.

Speaker 1

Okay, that's a whirlwind tour of routing. Let's switch gears. Now move from the wide area network down to the local network switches.

Speaker 2

Right connecting devices within the same building or floor, typically managing local traffic.

Speaker 1

Switches have modes like routers too, YEP user.

Speaker 2

Mode, switch, privileged mode, switch, hashtag, global config. Very similar feel it is show commands many of the same show version, show running canfig but also switch specific ones like showflan, showmac address table, show interfaces status.

Speaker 1

How do you configure basic switch info?

Speaker 2

Pretty much like a router hostname name to say, the team. Password configuration is identical. Enable secret line console, zero line vt AoE fifteen switches often to have more vty lines, password log in service, password encryption.

Speaker 1

Can you give us switch an IP address? I thought there were layer two devices?

Speaker 2

Good question. They operate primarily at layer two. Yes, forwarding based on AIRP addresses. But for management, so you can telnet or SSH into the switch, you need an IP address where you can figure that on a switched virtual interface or SVII, usually interface FLAN one. By default, you go to that interface, assign an app address of address,

subnet mask and no shutdown. You also need to configure a default gateway for the switch using I Default Gateway Gateway IP in global CONFIGU mode, so you can reach management stations on other networks.

Speaker 1

Huh okay, so the IP is just for managing the switch itself exactly.

Speaker 2

You can also set interface descriptions, configure speed in duplex settings. Auto is common, but sometimes you need to hard code them.

Speaker 1

And resetting a switch reload.

Speaker 2

Restarts it right. A restartup config wipes the safe config but wiping VLAN infos different. You need to erase flash dot vland DOTU. Careful with that command, very careful, make sure you type the call incorrectly. Flash dot vland dot dot dat. If you just do a race flash, you could wipe the entire operating system.

Speaker 1

Hikes. Okay, Switches work with MPO addresses, right, How do you manage those?

Speaker 2

They learn app addresses automatically by looking at the source address of frames coming into each port. They build a macaddress table sometimes it's called a CAM table. You can see it with show Mac address table.

Speaker 1

Can you clear it?

Speaker 2

Yep? Clear macaddress table. Dynamic removes all learned addresses. Or you can specify an interface or VLAN.

Speaker 1

Can you manually assign a MAC address to a port?

Speaker 2

You can mac address table static macaddress landed interface type number. This permanently locks that MPOCK address to that specific port in that vland. Sometimes used for security or specific configurations.

Speaker 1

Speaking of security, what about locking down ports preventing random people from plugging.

Speaker 2

In AH port security crucial feature on switches Unless you control witch MACA addresses and how many are allowed to connect to a specific switch.

Speaker 1

Port, how do you turn it on?

Speaker 2

First, make sure the port is an access port, switchport mode access. Then switchport port security enables the feature on that interface.

Speaker 1

Then you set the rules exactly.

Speaker 2

Switchport port security maximum value says how many MAC addresses are allowed, often just one. Switchport port security mac address MAC address can statically define the allowed MAC or you can use switch court port security MAC address dicky to let the switch learn the first MA address it sees and stick it to the port.

Speaker 1

What happens if someone violates the rule plugs in a different device That depends.

Speaker 2

On the violation mode. You said it with switch port security violation shut down restrict.

Speaker 1

Protect shutdowns sounds serious.

Speaker 2

It is. The interface goes into an air disabled state, effectively shutting it down requires manual intervention to bring back ups drops the violate in traffic and sends log messages in S and MP traps. The port stays up, but the unauthorized device can't communicate. Protect simplest just drops the violating traffic, no logs port stays up. Shutdown is the most common secure default.

Speaker 1

How do you check if port security tripped?

Speaker 2

Show port security interface type number gives you all the details. Max addresses, current count, sticky ams, violation mode and security action count.

Speaker 1

Okay, very useful. Now let's talk VLANs virtual lands right.

Speaker 2

Breaking up one physical switch into multiple logical broadcast domains great for security organization performance.

Speaker 1

How do you create them?

Speaker 2

Simple? In global config land landed like land ten, then optionally name name like name sales.

Speaker 1

VLAN ten is now called sales. How do you put ports into it?

Speaker 2

Go into the interface canfig interface faster net zero one First make it an access port switchport mode access, then assign it switchboard access LAN ten, So.

Speaker 1

Fazero one is now in the sales vlan. Can you do multiple ports at once?

Speaker 2

Yes? Using the interface range their face range fasten it zero one ten than any commands you type applied to all ten ports. Very efficient. Verifying VLAN Chovelan brief is the best quick overview shows all vlands their names and which ports are assigned to them. You can also use chauvelin name sales or Chauvelan E ten.

Speaker 1

How are VLANs saved? Is it in the startup configure?

Speaker 2

Mostly? Yes? For standard range vilans one one thousand and five, they're actually saved in that VLAN dot dot file and flash memory we mentioned. Extended range villans one thousand and six four to ninety four might behave differently depending on the switch model and configuration.

Speaker 1

Mode and clearing VLAN assignments.

Speaker 2

On an interface no switch court access FLAN usually puts it back into VLAN one. The default to delete a vilan entirely use no VLAN ten, but be careful any ports still assigned to VLAN ten will become inactive. Best practice is to reassign the ports before deleting the VLAN good tip.

Speaker 1

Okay, Last big topic connecting switches together and managing VLANs across multiple switches. Trunking and BTP right.

Speaker 2

If you want multiple vlands to cross a link between two switches, you need a trunk, and VDP helps synchronize VLAN databases.

Speaker 1

How does a trunk get formed?

Speaker 2

Often automatically using DTP Dynamic trunking Protocol Cisco proprietary interface modes like Dynamic Auto or Dynamic Desirable negotiate, or you can manually force it with switchport mode. Trunk using switchport non negotiate turns off DTP if you hardcode it as a trunk or.

Speaker 1

Access port and the trunk needs to know how to tag the traffic for different vlands.

Speaker 2

Right, exactly. That's encapsulation. Two main types Cisco's old ISL and the industry standard IEE eight two point one Q often called DOT one Q. You can figure it with switchport trunk encapsulation is ATO dot one Q negotiate. Most modern networks use dot one Q if set to negotiate, it usually prefers isl Both sides support.

Speaker 1

It, okay, Now, VTP VLAN trunking protocol.

Speaker 2

This protocol lets one switch the VTP server manage the VLAN database for other switches VTP clients in the same VDP domain. You create VLAN twenty on the server and boom, it automatically appears on all the clients.

Speaker 1

Saves a lot of work.

Speaker 2

Huge time saver. In large networks, you can figure the VDP mode server client or transparent. Transparent switches manage their own vlands, but PASSVDP info. You said a VDP domain name and optionally a VTPU password password, then those have to match absolutely critical domain name and password must be identical case sensitive for switches to exchange VTP updates. A mismatch can cause big problems.

Speaker 1

What's VTP pruning smart feature?

Speaker 2

If enabled, VTP pruning switches tell their neighbors which VLANs they actually have active ports for. Then broadcast traffic for a specific VLAN is only sent across trunks if the neighboring switch actually needs that. VLAN reduces unnecessary.

Speaker 1

Traffic verifying VTP.

Speaker 2

So VTP status gives you the mode, domain name, revision number, very important pruning status, show VTP counters, shows update statistics.

Speaker 1

Wow, we've covered a ton of ground, from basic cables and ips all the way to complex routing and switching configus.

Speaker 2

We really have. It's the core toolkit for a CEC and a engineer.

Speaker 1

So what does this all mean for you listening? You've just gotten, hopefully a really powerful shortcut to understanding these cor Cisco commands and concepts. We've tried to unpack everything from you know, literally how devices connect to how they talk across networks and how you manage them.

Speaker 2

It really provides that foundational command structure. But this raises a final important question for you, yea, how will you take this structured knowledge, this theory and turn it into hands on practice?

Speaker 1

Right reading about it is one thing.

Speaker 2

Exactly We really recommend you get into simulation labs, packet tracer, GNS three, EVENG whatever works for you. Start typing these commands, build networks, break them, fix them. That's where the real learning happens, when you actually apply it

Transcript source: Provided by creator in RSS feed: download file
For the best experience, listen in Metacast app for iOS or Android