profcane's networking revision
recommended listening for this post is do it (yves remix)
NB: multi-select means none, any, or all are true :)

question 1

consider the following setup. i have setup the trunk between S1 and S2, VLAN 10 on G1/0/6 S1 and G1/0/11 S2, and VLAN 20 on G1/0/18 as per the diagram i have also correctly set the router’s ip addresses on their interfaces. pc A can ping pc B, but no pcs can ping the router. this is because
explanation STP does not come into play here, and the default for a trunk is to allow all VLANs. the default for an interface on a switch is ONLY VLAN 1, so the switch cannot send packets from PC A to R1 (the VLAN has not been properly configured).
question 2
which of these is possible to do on a CISCO router?
explanation one VLAN+IP address per LAN subinterface. the key thing here is that an IP address is ‘more specific’ than a VLAN, and the router requires you to set the VLAN (with the encapsulation dot1q ..) command before configuring the IP address. (you’ll note that in each example in the labs, the encapsulation command is performed before setting the IP).
question 3
LAN subinterface G0/0/1.10 is currently configured to 192.168.1.10/24. i want to configure LAN subinterface G0/0/1.20 - which address + subnet mask would the router let me configure it to?
explanation: the only constraint that the router enforces is that no subinterface must overlap (when it receives a packet destined for a specific subnet, it must know which interface to send it to, there cannot be any ‘ambiguities’). for each IP address above starting with 192.168.1.x, the 192.168.1.10/24 will necessarily overlap (because that subnet covers every single 192.168.1.x addr). 192.168.2.0 255.255.254.0 covers from 192.168.2.0 - 192.168.3.255, hence no overlap.
question 4
LAN subinterface g1/0/1.10 is currently configured to 192.168.1.10/28. i want to configure LAN subinterface g1/0/1.20. which address would i be able to configure it to?
explanation: the rule is no overlapping subnets. 192.168.1.10/28 covers 192.168.1.0–192.168.1.15. option A (192.168.1.3/30) covers 192.168.1.0–192.168.1.3 - overlap. option B (192.168.1.24/24) covers all of 192.168.1.x - overlap. option C (192.168.1.14/31) covers 192.168.1.14–192.168.1.15 - overlap. option D (192.168.2.0/255.255.254.0) covers 192.168.2.0–192.168.3.255 - no overlap, so this is valid.
question 5

consider the network topology, noting that PC1 and PC2 are on separate VLANs. PC1 sends PC2 an ICMP ping request. assuming that all ARP tables are empty, which of the following is true?
explanation: PCs are ‘VLAN unaware’, the PC only sends an ethernet packet. VLAN tags are a layer 2 thing, so they are mainly dealt with by switches (as well as layer 3 routers, which need to decapsulate the packet to check its IP, then reapply the next VLAN tag during encapsulation). switches only learn MAC addresses from source MAC addresses and not destinations, and when the router decapsulates the packet, it modifies the source MAC address of the packet to be the router’s.
question 6
same setup as above - PC1 wants to send an inter-VLAN ICMP ping to PC2. assume all ARP, MAC address, and routing tables are empty. which of the following is true?
explanation: PC1 cannot send an ARP request to PC2 because they are on different subnets! PC1 would send it to the default gateway (the router), and the router would then send its own ARP request to PC2, and PC2 would respond. throughout this process only two ARP requests would be sent (PC1 would need to ARP for its default gateway, and the router would need to ARP for PC2). third option is wrong because a switch floods a broadcast packet out of all ports except ingress, so it would only send 2 packets max (if that).
question 7

H1, H2, H3 are on subnet A, and H4, H5, H6 are on subnet B. all six are connected to a single unconfigured switch with no VLANs, and all ARP tables are empty. which of the following is true?
explanation: option A is wrong - H1 won’t ARP for H4 directly because H4 is on a different subnet. H1 would instead try to send to its default gateway (but there is none here, so the ping just fails). option B is correct - the switch floods the ARP broadcast out of all ports except the ingress port, which is 5 ports. option C is wrong switches only learn MAC addresses by reading source MAC addresses, not destination. option D is wrong - different subnets require a routing-capable device, which doesn’t exist here.
question 8
i have connected ports g1/1-2 together on DSW1 and S1, and i want to configure etherchannels. which of the following is true? (select all that apply)
multi-select
explanation: desirable / auto are for PAGP while active / passive are for LACP, mixing the two results in an etherchannel not forming. for on to work both sides need to be on, and at least one needs to be active / desirable in other for the channel to form
question 9 - rstp
consider the diagram below, where A is elected as the root bridge, all links have default cost, and all ports and switches have default priority. G1 on switch C is elected as the root port. which of the following describes a correct pattern of cause and effect?

explanation: option A is wrong, an etherchannel bundles the two separate links into one single connection and is generally treated as a single connection throughout all protocols RSTP included. B is correct, port G2 on switch C will receive a BPDU w/ a lower port priority and switch C will pick that instead. C is wrong bc cost only matters on egress ports (if it was port G3 on C and port G4 on B, then the new cost would b calculated). D wrong because root bridge election is based on lowest BID and BID is not affected by any link severing
question 10
select the true statements about RSTP. (select all that apply)
multi-select
explanation: A wrong, two ports on the end of the same link cant have the same role, B correct they will keep sending BPDUs, C wrong as bridge priority must be multiple of 4096, D correct (it receives BPDUs) & drops data frames
question 11 - hsrp
select the correct statements about HSRP. (select all that apply)
multi-select
explanation: option A wrong as the active router is selected deterministically through highest IP addr. option B wrong, the purpose of preempt is for the higher priority router to take Back the status of active router when it comes back online, option C correct option D correct
question 12
PC1 sends an ARP request for its default gateway (a virtual HSRP address shared by R1 and R2). which of the following is true?
explanation: the request destination MAC address is the broadcast and the source MAC address is PC1, the reply destination MAC address is PC1 and the source mac address is the virtual MAC addr for HSRP
question 13 - ospf

the following topology is set up for OSPF (R1, R2, DSW1 are all L3 devices; PC-A is off R1, PC-B is off R2, PC-C is off DSW1). which of the following is true? (select all that apply)
multi-select
explanation: given that the routers are all on point to point links, they dont actly share a broadcast segment, and broadcast segments are where the whole DR / BDR / DROTHER thing comes in. there wont be a single DROTHER across the L3 devices, A is therefore wrong. B is wrong if u understand OSPF even remotely, C is wrong because shortest paths are calculated per device, and D is wrong bc cost applies to egress ports, of which there are 2 (DSW1 G1/0/1 + R1 G0/0/0) therefore cost is 2.
question 14

consider this topology. router A and D both have loopback addresses and routes configured for 44.44.44.44, and B is the PC’s default gateway. A, B, C, and D are all advertising their routes to one another via OSPF. which of the following is true? (select all that apply)
multi-select
explanation: option A wrong (very tricky option! note this one specifically, bc switches are L2 devices and OSPF is a l3 protocol it does not factor in switches at all). option B is correct because if A shuts down then LSAs will be re-sent and LSDBs will re-update and reflect D as the only route for 44.44.44.44 & vice-versa, C is wrong because there will be one DR and the DR cannot have a DR as its neighbor, D wrong because of reason mentioned above (can be root | alternate, root | designated, designated | alternate, never root | root)
question 15

i do show spanning-tree on S2 in a topology where S1 connects to S2 via G1/0/1 and G1/0/2, and S2 connects onward to the root via G1/0/3. the output is:
G1/0/1 | DESG | FWD | cost 20000 | priority 128.1
G1/0/2 | DESG | FWD | cost 20000 | priority 16.2
G1/0/3 | ???? | FWD | cost 20000 | priority 128.3
which of the following is true? (select all that apply)
multi-select
explanation: A wrong as G1/0/3 shld be a root port. B wrong bc ‘guaranteed’, root ports are elected via cost first and foremost (which is first dictated by bandwidths), so if the cable is a lower bandwidth the cost will be higher (this is a bit tricky + annoyingly phrased but :P), C correct bc BID is device-specific and theyre both receiving from the same device, D correct bc RSTP treats etherchanneled interfaces as js one interface
question 16 - dhcp

consider a topology where a router is configured as a DHCP server, and PCs are on a different subnet. the connection from SW1 to DSW2 is VLAN 1 (default). which of the following is true? (select all that apply)
multi-select
explanation: A wrong, Discover is always addressed to broadcast addr (note that if a device is even sending Discover it doesnt have a default gateway yet), B correct, C correct, D no (if DHCP not working this is a common reason as to why, either configure OSPF or set static route, DHCP will need to address to the helper-address interface and it doesnt know where it is right off the bat)
question 17
which of the following statements about DHCP is true? (select all that apply)
multi-select
explanation: option A wrong because it can request when it needs to renew before the lease expires, option B wrong because NIC is typically only updated after ACK is received, C is wrong because DHCP Relay populates giaddr when Discover is sent. D wrong because it might also use the interface IP addr (assume a situation wherein there is no Relay, therefore giaddr remains blank)
question 18

consider a topology where a DHCP router services both VLAN 10 and VLAN 20. trunking is configured to allow all VLANs, and the DSWs have negotiated HSRP - one DSW is active for VLAN 10, the other for VLAN 20. both DSWs are configured as DHCP relay agents. which of the following is true? (select all that apply)
multi-select
explanation: option A correct, option B correct (HSRP hellos flooded out of all interfaces that support the VLAN), option C correct (consider the situation where the switch does not have a populated ARP table and the first packet it receives is a Discover, addressed to Broadcast. the switch will flood the Broadcast out, meaning it gets sent to both DSWs, which both fulfill their roles as Relays. in this scenario the DHCP server will sort it out - depends on implementation, but DHCP will end being fulfilled regardless). D wrong because of the exact same reason, Discovers are addressed to Broadcast. ordinarily if the PC tried to ARP for the DHCP router, it will fuck up and not resolve, but in this case its actually completely fine)
question 19
select the true statements about OSPF. (select all that apply)
multi-select
explanation: option 1 correct, option 2 correct (2-WAY is the expected connection), option 3 wrong bc EXSTART should be finished within a few seconds, if EXSTART is still ongoing after a long period of time then it indicates there is a mismatch in the HELLOs that prevents a full adjacency from forming. option 4 wrong bc it should be a wildcard mask.
question 20 — NAT

R2 is configured with NAT for the internal IP range of 192.168.10.0/23. assume a point-to-point connection from R2 to the ISP Edge Router on 172.17.0.1/30. which of the following is true?
multi-select
explanation: if uve experimented with NAT in the labs you will know that A is wrong, when the PCs send a ping the router is able to translate the source to a public addr which the internet is able to handle, however when the router sends a ping it does not translate the source IP addr to a public addr hence it is dropped. B is wrong, access-lists require wildcard masks. C is clearly wrong because u want a static config. D is wrong because u dont rlly need to NAT that interface for it to matter, PC A will forward to default gateway (R1), R1 will route to R2, R2 will NAT the source ip addr (which has always been PC A’s addr) and everything is fine
question 21
on a topology with NAT configured, i run show ip nat translations on the NAT-enabled router and no translations are shown. which of the following is a potential reason as to why? (select all that apply)
multi-select
explanation: only one wrong is the ISP issue, because even if the ISP was wrong packets would still hit the NAT router and trigger a translation. everything else would prevent a successful firing of NAT.
question 22
which of the following is true for NAT?
multi-select
explanation: there are 65536 possible ports so yes the theoretical limit is 65536 ports per available IP address. inside global denotes the public IP address of the host within ur internal private network. static NAT translation remains permanently up regardless of whether or not the webserver goes down. further note that if it was a dynamic assignment, the assignment wld only exist for a brief period of time (so in no scenario is option C ever correct, actually). an address is translated exactly twice: once going in, once going out.
question 23
a PC attempts to access www.youtube.com. assume that it has a caching server on its private network which it is configured to use, and additionally assume the server is completely blank. which of the following is a true statement about the process of DNS resolution?
explanation: too tired to write just take my word for it