Computer Knowledge

Computer Networks

2,614 Questions

Computer networks involve the architecture, protocols, and security measures used for digital communication. This collection covers OSI model layers, IP addressing, data transmission, and cryptographic standards. These concepts are vital for the computer knowledge sections of banking and government exams.

OSI model layersNetwork protocolsIP subnet maskingData encryption standardsServer configurationsNetwork commands

Computer Networks Questions

Multiple choice
  1. ip classless

  2. no ip classless

  3. ip default-network 0.0.0.0

  4. ip default-gateway 172.16.254.1

  5. ip route 0.0.0.0 0.0.0.0 Serial 0/0/1

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The 'ip classless' command tells the router to forward packets destined for unknown subnets to the best available route, typically the default route (gateway of last resort). Without this command, if the router doesn't have an exact match for a destination subnet in its routing table, it drops the packet even if a default route exists. This was the default behavior in older IOS versions for classful routing. The command ensures the router uses classless routing behavior, forwarding packets for subnets it doesn't specifically know about to the default gateway.

Multiple choice
  1. Dynamically assigns an IP address to the host

  2. Provides local DHCP services

  3. Converts data from 802.11 to 802.3 frame encapsulation

  4. Provides a gateway for connecting to other networks

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A wireless access point (AP) acts as a bridge between wireless and wired networks. Its primary function is converting wireless 802.11 frames into wired 802.3 Ethernet frames so devices can communicate across network types. APs do not typically provide DHCP services (A and B) or act as network gateways (D).

Multiple choice
  1. A(config)# interface fa0/0

  2. A(config-if)# ip ospf priority 255

  3. D will remain the DR. C will remain the BDR.

  4. A will become the DR. D will become the BDR.

  5. A will become the DR. C will remain the BDR.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When Router A's interface priority is set to 255, it becomes ineligible to participate in DR/BDR election regardless of other configurations. The existing DR (Router D) and BDR (Router C) will remain unchanged. This is a priority change, not an election question - the 255 value specifically removes the router from contention.

Multiple choice
  1. 0

  2. 1

  3. 2

  4. 3

  5. 4

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

IPv6 does not use broadcast addressing at all - it eliminated the broadcast concept entirely. Instead, IPv6 uses multicast, anycast, and unicast. The answer is 0 broadcast domains regardless of topology because the protocol doesn't support broadcasts as a communication method.

Multiple choice
  1. There is a native VLAN mismatch.

  2. The Fa0/11 interface of Switch1 is not configured as a trunk.

  3. The link between Switch1 and Switch2 is up but not trunked.

  4. VLAN 50 is not allowed on the trunk link between Switch1 and Switch2.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The problem occurs because VLAN 50 is not permitted to traverse the trunk link between Switch1 and Switch2. Host A and B can communicate because they're on the same switch. For Host A to reach Host C or D (on Switch2), VLAN 50 must be added to the allowed VLAN list on the trunk port using the switchport trunk allowed vlan command.

Multiple choice
  1. Associate with the access point and then open a session with the access point.

  2. Physically connect to the access point and then reboot the computer to launch the configuration software.

  3. From a computer in the same IP subnet as the access point, enter the default IP address of the access point in a web browser.

  4. Modify the TCP/IP properties of the computer connected to the access point so that it exists on the same network, and then reboot your computer to establish a connection.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Linksys WRT300N access points are configured through a web interface. You access the configuration by entering the default IP address (typically 192.168.1.1) into a web browser from a computer on the same subnet. The other options are incorrect: you don't need to associate first (A), physical connection isn't required for configuration (B), and TCP/IP modification isn't necessary if you're already on the same subnet (D).

Multiple choice
  1. 255.255.255.0

  2. 255.255.255.192

  3. 255.255.255.224

  4. 255.255.255.240

  5. 255.255.255.248

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To support 27 hosts, we need a block with at least 29 usable addresses (2^5 - 2 = 30 for /27, which gives 255.255.255.224). Option A (/24) provides 254 addresses - too many wasted. Option B (/26) provides 62 addresses - still wasteful. Option D (/28) provides only 14 addresses - insufficient. Option E (/29) provides only 6 addresses - insufficient. The /27 mask (C) is optimal.

Multiple choice
  1. Interface Serial0/0/0 resets very frequently.

  2. PPP LQM has shutdown the serial interface.

  3. The serial interface has no input or output queues available.

  4. The serial interface is not configured for a Layer 2 protocol.

  5. The interface has been administratively shutdown with the shutdown command.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The serial interface cannot communicate because no Layer 2 protocol (like PPP, HDLC, or Frame Relay) has been configured. Serial interfaces require explicit Layer 2 encapsulation configuration to function. The other options are incorrect: interface resets (A) wouldn't prevent communication, LQM (B) is a specific PPP feature not relevant here, missing queues (C) is not the issue, and the interface is not administratively shutdown (E) as evidenced by 'up/down' or similar state.

Multiple choice
  1. Split horizon

  2. Error condition

  3. Hold-down timer

  4. Route poisoning

  5. Count to infinity

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Route poisoning is the mechanism where a router advertises a failed route with an infinite metric (hop count 16 in RIP) to immediately inform other routers that the route is unreachable. This prevents routing loops by ensuring all routers know the route is bad. Split horizon (A) prevents sending updates back the way they came, error condition (B) is not a routing loop prevention mechanism, hold-down timer (C) waits before accepting changes, and count to infinity (E) is what routing loop prevention aims to avoid.

Multiple choice
  1. B(config)# int fa0/0 B(config-if)# router-id 192.168.1.5

  2. B(config)# int lo0 B(config-if)# ip address 192.168.1.5

  3. B(config)# router ospf 1 B(config-router)# router-id 192.168.1.5

  4. B (config)# router ospf 1 B(config-router)# ip address 192.168.1.5

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The router-id command must be configured under OSPF router configuration mode, not under interface configuration mode. Option A incorrectly attempts to set router-id on an interface, Option B only assigns an IP address to a loopback interface, and Option D uses the wrong command (ip address) under router mode. Only Option C correctly enters OSPF router mode with 'router ospf 1' and then sets the router-id.

Multiple choice
  1. Compared to RIP, EIGRP has a lower administrative distance.

  2. Compared to EIGRP, RIP has a higher metric value for the route.

  3. Compared to RIP, the EIGRP route has fewer hops.

  4. Compared to RIP, EIGRP has a faster update timer.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Routers use administrative distance (AD) as the tiebreaker when multiple routing protocols provide routes to the same destination. EIGRP has a default AD of 90, while RIP has AD 120. The router will always prefer the route with the lower administrative distance, which is why the EIGRP route was installed over the RIP route. Option B is incorrect because RIP's metric (hop count) is only compared when both routes are from the same protocol.

Multiple choice
  1. The IP settings are not properly configured on the host.

  2. Internet Protocol is not properly installed on the host.

  3. There is a problem at the physical or data link layer.

  4. The default gateway device is not operating.

  5. A router on the path to the destination host has gone down.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The ping 127.0.0.1 command tests the local TCP/IP stack's loopback functionality. When this fails, it indicates that Internet Protocol (TCP/IP) is not properly installed or is corrupted on the host system. The 127.0.0.1 address never leaves the host computer, so IP settings, default gateway, physical layer problems, or router issues are irrelevant to this specific test. This is a fundamental test of whether the network software itself is functional.

Multiple choice
  1. Modified Cut Through

  2. Store and Forward

  3. Cut Through

  4. Fragment Free

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Cut-through switching reads the destination MAC address as soon as it arrives in the frame header and immediately begins forwarding the frame to the destination port without waiting for the entire frame to be received. This provides lower latency than store-and-forward switching but may forward corrupted frames since error checking happens after forwarding begins. Modified cut-through and fragment-free are variations that wait slightly longer to reduce errors, while store-and-forward receives the complete frame before forwarding.

Multiple choice
  1. Issue the clock rate command on interface Serial 0/0/0

  2. Issue the description command on interface Serial 0/0/1

  3. Issue the ip address command on interface FastEthernet 0/0

  4. Issue the no shutdown command on interface FastEthernet 0/1

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The issue with Router B's FastEthernet interface is that it is in an administratively down state (shutdown). The 'no shutdown' command will bring the interface up, allowing it to pass traffic. This is a common configuration command that reactivates an interface that was manually disabled. Clock rate is for serial DCE interfaces, description is just a label, and ip address is for assigning addressing (not needed if already configured but interface is shutdown).

Multiple choice
  1. SW1(config)# vtp version 1

  2. SW2(config)# vtp mode client

  3. SW3(config)# vtp domain Cisco1

  4. SW3(config)# vtp mode transparent

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

VTP (VLAN Trunking Protocol) requires all switches in the same VTP domain to have matching domain names before VLAN information will propagate. SW3 likely has a different VTP domain name (or none configured), so it's not receiving VLAN updates from SW1 and SW2. Setting 'vtp domain Cisco1' on SW3 will match the domain name, allowing VTP advertisements to be processed. VTP version should match across switches, but domain mismatch is the more common issue preventing propagation.