TechKnowSurge
Cisco CCNA 1.6 Cisco CCNA 1.10 Cisco CCST Networking 3.4 Cisco CCST IT 3.3 Cisco CCST Networking 2.2 Cisco CCNA 4.3
VideoNetworkFree

DEMO: Connecting a Computer

Covers the process of connecting a computer to a Cisco 2960 switch via Ethernet and manually configuring a static IPv4 address when no DHCP server is available on the network.

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

About this video

Connecting a host to a managed switch is a foundational step in building a functional network, and verifying the resulting interface state confirms whether a Layer 2 link has been successfully established. After physically connecting a computer to FastEthernet 0/14 on a Cisco 2960 switch, the show ip interface brief command is used in privileged EXEC mode to confirm the interface is active and passing frames at Layer 2. While this provides basic connectivity between directly attached devices, meaningful network communication across most environments requires a valid Layer 3 IP address assignment as well. When no DHCP server is present, Windows automatically falls back to an APIPA address in the 169.254.0.0/16 range, which the operating system assigns without any external input. This address class is a clear indicator that no dynamic IP configuration was received and that the host cannot participate effectively in a routed network. To correct this, a static IPv4 address is manually assigned through the Windows network adapter settings by switching from automatic to manual configuration. The static configuration demonstrated here assigns an address of 10.0.0.156 with a /8 subnet prefix, a default gateway of 10.0.0.1 representing the first usable address on the network, and Google's public DNS server at 8.8.8.8 as an external name resolution option. Once saved, the host is properly addressed and capable of communicating with other devices on the same network segment, establishing the groundwork for building out and testing a multi-device lab environment.

What you'll learn

What's covered

Connecting PC to Switch

Aligned to

Cisco CCNA
1.6 Configure and verify IPv4 addressing and subnetting
1.10 Verify IP parameters for Client OS
4.3 Explain the role of DHCP and DNS within the network
Cisco CCST Networking
3.4 Demonstrate how to set up and check network connectivity
2.2 Identify IPv4 addresses and subnet formats
Cisco CCST IT
3.3 Examine basic end-device connectivity to the network

Key terms

IP Address
A numerical label assigned to each device connected to a network that uses the Internet Protocol.
Subnet Mask
A 32-bit number that divides an IP address into network and host portions.
Default Gateway
The router that a device uses to send traffic to destinations outside its local network.
Dynamic Host Configuration Protocol
DHCP
A network protocol that automatically assigns IP addresses and other configuration parameters to devices on a network.
Automatic Private IP Addressing
APIPA
A feature that automatically assigns a device an IP address in the 169.254.0.0/16 range when it cannot obtain an address from a DHCP server. APIPA allows limited local-network communication but does not provide internet access.
Switch
A network device that connects devices within a LAN and forwards traffic based on MAC addresses.

Topics

Networking Ipv4 Static Ip Configuration Apipa Cisco 2960 Windows Network Settings Ethernet

Transcript

It's finally time to get something plugged into the switch. We're going to connect the computer to the switch, not the console cable, but connect into the Ethernet and see what it looks like.

Making the physical connection

We're going to be connecting into one of the 2960s, and we're going to be connecting into the Ethernet port Fa0/14. So we're going to plug it into Fa0/14 on the switch side, and then on the computer we'll plug it into the port on the computer.

Checking the interface status

Now I'm on that 2960 here, so let's take a look and see what it looks like. If you recall from one of my previous videos, we did a show ip interface brief to see some of the interfaces and see what status they were in, so let's take a look at that status now. I'm going to jump into the privileged EXEC mode and I'm going to do show ip interface brief.

Now this device is connected to the switch. It has a layer two connection, so at this point in time it would be able to send out a frame onto the network, and the switch would be able to forward that frame on to whatever device, so we would have some sort of communication going. But it's just layer two, and most of our devices now need some sort of IP address, layer three and layer four information, in order for it to communicate effectively on our networks.

Do we have an IP address?

So do we have that, do we have an IP address? What I'm going to do is pull up a command prompt. I click the Windows button, I type in cmd to bring up a command prompt, and here I do an ipconfig. Then it gives me some information about the configurations of the network card, and what I see here is the Ethernet adapter, which is the one that I plugged into the switch.

If you recall, this address of 169.254 is an APIPA address, and what that means is that it automatically assigned an address to it in this range. It randomly chose 52.2. It randomly chose that because it didn't get an IP address. It probably tried to look out and say, hey, is there a DHCP server out there, I'm requesting an IP address, and didn't get a response back, because I don't have a DHCP server on the network, so nothing responded back. So we see that this didn't get an address and so it automatically address to it.

What we're going to need to do for it to effectively communicate on the network: if there's two devices on this network that both had an APIPA address, we'd be able to communicate between the two, but most likely what we want to do is assign an address that we've assigned as a network address for the whole network.

Assigning a static address

I see this is connected wirelessly, so I'm actually remoted into this machine, but I'm going to right click this and say open network and internet settings. It's going to open up, and we see here that it is in fact connected to the wireless but it's not connected to the Ethernet. For all my labs I want to connect to the Ethernet, so I'm going to click on properties here. We see here that yes, in fact it is looking for an automatic IP address, or a DHCP, a dynamic host configuration protocol. It did not receive a response back, and so what we want to do is manually assign something to this machine.

I click on edit, and here we click the drop down and select manual instead. For the purpose of this class we're mostly going to be working with IPv4, so I'm going to turn that on, and then I'm going to come up with an IP address for this machine. Ahead of time I would want to know what my IP address range is that I could assign to this machine. Later on, as we work through this, we'll actually assign some IP addresses to our network, so it's going to be important, but for the purpose of this demo we're going to do a 10.0.0.15, 56, let's do 56.

Then the subnet prefix length: we're just going to say eight here, we're going to open it up, this is going to be a huge network. And the gateway: a lot of times it's the first address of the network, the first usable address, so a lot of the time, in this case right here, it'll be 10.0.0.1.

Any preferred DNS that we use: a lot of times that could be your router. In your homes it would be your router. Within the Active Directory network you probably have a DHCP server and a DNS server, where the DNS specifically is associated with Active Directory. In this case right here we're going to just use something that's external, so one that I do use a lot is 8.8.8.8, and that's an external IP address. You could also use something like OpenDNS, so there are free ones out there.

Then I'm going to save this information, and now this is connected on the network. If I connect another device onto the network, then I'd be able to ping that address or connect into that address, as long as it's on the same network as this computer is.

So there you have it. We've got our machine now configured and it's connected into the switch, and now we can start sending traffic across here.

About TechKnowSurge

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

Explore free tools and programs →