š IPv6 autoconfiguration stateless and stateful (13 MCQs)
Automatic Address Configuration in IPv6 Networks
IPv6 hosts can configure interface addresses and network parameters with limited manual intervention. Stateless Address Autoconfiguration, or SLAAC, uses router advertisements to learn prefixes and construct addresses locally. Stateful DHCPv6 can allocate addresses and provide configuration information through a server. These methods support different administrative needs, and a network may use SLAAC and DHCPv6 together rather than treating them as mutually exclusive.
Router Advertisements and DHCPv6 Roles
Routers send Router Advertisement messages containing prefix information, lifetimes, and flags that guide host configuration. With SLAAC, a host combines an advertised prefix with an interface identifier and performs Duplicate Address Detection. DHCPv6 uses client-server exchanges to supply addresses or other parameters. DHCPv6 may also operate statelessly to provide options while SLAAC forms the address.
The Host Configuration Sequence
A newly connected host first forms a link-local address and checks whether it is already in use. It listens for router advertisements or sends a Router Solicitation to prompt one. The host then processes advertised prefixes and flags, configures a suitable address, performs Duplicate Address Detection, and may contact a DHCPv6 server for managed addresses or additional parameters.
Comparing SLAAC and Stateful DHCPv6 in Practice
On a LAN advertising prefix 2001:DB8:10:1::/64 with autonomous configuration enabled, a host can create its own address from that prefix. In a managed network, the router may signal DHCPv6 use, and a server can lease an address and DNS settings. Both approaches still rely on Duplicate Address Detection before an address is used.
Combining Address Assignment with Other Network Parameters
SLAAC and DHCPv6 connect IPv6 addressing with router discovery, DNS configuration, and address-lifetime management. SLAAC reduces the need for per-host address allocation records, while stateful DHCPv6 gives administrators centralized assignment control. Stateless DHCPv6 can provide additional settings even when addresses are formed through SLAAC, making mixed configuration common in managed networks.
Misconceptions About SLAAC and DHCPv6
'SLAAC requires a DHCP server' is incorrect because the host forms an address from router-advertised prefix information. 'DHCPv6 always replaces router advertisements' is false because routers still provide essential on-link and default-router information. 'An assigned address is immediately assumed unique' is wrong; Duplicate Address Detection checks for conflicts. This distinction matters when reading configuration flags.
Distinguishing Stateless and Stateful Configuration
For examinations, compare where the address comes from, which device provides configuration, and how lifetimes are managed. Interpret router-advertisement flags, identify the role of DHCPv6, and describe Duplicate Address Detection. Remember that DHCPv6 may supply non-address parameters without assigning the interface address itself. Know which information is distributed locally and which is maintained centrally.
SLAAC and DHCPv6 Configuration Terms
- SLAAC - Host forms addresses from advertised prefixes.
- DHCPv6 - Client-server protocol for IPv6 configuration.
- Router Advertisement - Message carrying prefix and router information.
- DAD - Checks whether an address is duplicated.
- Lifetime - Period an address remains preferred or valid.
- Stateless - Configuration without server-maintained address leases.
š All IPv6 autoconfiguration stateless and stateful MCQs
Q1. If a router receives a BGP UPDATE that lists its own AS number in the ASāPATH, what should the router do with that update?
š Explanation: The router detects a loop because its own AS appears in the ASāPATH. According to BGP loopāprevention rules, the safest action is to discard the UPDATE, preventing the router from advertising a path that would create a routing loop.
Q2. An UPDATE arrives with ORIGIN set to valueāÆ2 and a high MULTIāEXITāDISC metric. Compared to a route with ORIGIN valueāÆ1 and a lower MED, which attribute most directly makes the first route less preferred?
š Explanation: BGP first evaluates the ORIGIN attribute; a value ofāÆ2 (EGP) is less preferred than a value ofāÆ1 (IGP). Because ORIGIN is examined before MED, the higher ORIGIN value causes the route to be less attractive regardless of the MED value.
Q3. When a BGP speaker receives an UPDATE that lacks a LOCALāPREF attribute, what default value does it assume for internal routes?
š Explanation: For iBGP updates, the LOCALāPREF attribute is mandatory; if it is missing, the receiving router uses the default value ofāÆ100. This default ensures consistent preference handling across the autonomous system while external routes may omit the attribute.
Q4. An AS sets LOCALāPREF toāÆ200 and MED toāÆ50 for routes from a neighbor. A downstream AS sees two alternatives: PathāÆX (LOCALāPREFāÆ150, MEDāÆ30) and PathāÆY (LOCALāPREFāÆ200, MEDāÆ70). Which path will be selected and why?
š Explanation: BGP first compares LOCALāPREF values; the higher value (200 for PathāÆY) outweighs the longer ASāPATH or higher MED. Consequently, PathāÆY is preferred even though its MED is larger, because LOCALāPREF has higher decisionāprocess priority.
Q5. Compare the transitive nature of the ORIGIN attribute with that of the MULTIāEXITāDISCRIMINATOR attribute. Which statement is accurate?
š Explanation: The ORIGIN attribute is a wellāknown transitive attribute, meaning it is passed unchanged between ASes. In contrast, the MULTIāEXITāDISCRIMINATOR (MED) is an optional nonātransitive attribute; it is not advertised beyond the neighboring AS.
Q6. What is the effect of erroneously setting the OPTIONAL bit on the LOCALāPREF attribute flag?
š Explanation: LOCALāPREF is defined as a wellāknown discretionary attribute. If the OPTIONAL bit is set, the attribute becomes malformed; compliant routers treat it as an unknown optional attribute and discard it, effectively preventing the value from being propagated.
Q7. Which statement correctly describes ASāPATH handling in iBGP versus eBGP sessions?
š Explanation: During an eBGP exchange, the local AS number is appended to the ASāPATH before the UPDATE is sent. In iBGP sessions, the ASāPATH is left unchanged because the update is already within the same autonomous system, so no new AS number is added.
Q8. An administrator configures a router to prepend its own AS three times for routes from a neighbor and also sets LOCALāPREF toāÆ250. How does this affect selection in a downstream AS that receives these routes alongside alternatives with shorter ASāPATH but lower LOCALāPREF?
š Explanation: BGP first evaluates LOCALāPREF; the higher value (250) outranks a shorter ASāPATH with a lower LOCALāPREF. Therefore, the downstream AS will select the prepended routes despite their longer ASāPATH because LOCALāPREF has higher priority in the decision process.
Q9. Which ORIGIN attribute value is considered most trustworthy when selecting a route?
š Explanation: The ORIGIN attribute ranks IGP (valueāÆ1) as the most reliable source, followed by EGP (valueāÆ2) and INCOMPLETE (valueāÆ3). Consequently, routes advertised with an IGP origin are preferred over those with higherāvalue origins.
Q10. How can the MULTIāEXITāDISCRIMINATOR (MED) attribute be used for inbound traffic engineering between two neighboring ASes?
š Explanation: By assigning a lower MED value to the preferred exit point, an AS signals its neighbor that this path should be favored for inbound traffic. The neighborās BGP decision process will select the path with the smallest MED when other attributes are equal.
Q11. What best describes how route reflectors treat the LOCALāPREF attribute in iBGP?
š Explanation: Route reflectors are designed to preserve the LOCALāPREF attribute when reflecting routes. They forward the attribute unchanged to client peers, ensuring that the original preference decisions made by the originating router remain effective throughout the iBGP topology.
Q12. An AS receives two routes to the same prefix: RouteāÆA (LOCALāPREFāÆ100, ORIGINāÆIGP, ASāPATH lengthāÆ2) and RouteāÆB (LOCALāPREFāÆ200, ORIGINāÆEGP, ASāPATH lengthāÆ1). Which route will BGP select and why?
š Explanation: BGP first compares LOCALāPREF values; the higher value (200 for RouteāÆB) wins regardless of ORIGIN or ASāPATH length. Thus, RouteāÆB is selected even though it has a shorter ASāPATH and a less preferred ORIGIN type.
Q13. Which attribute type number corresponds to the NEXTāHOP attribute in BGP?
š Explanation: In the BGP attribute type field, the NEXTāHOP attribute is assigned type numberāÆ3. This wellāknown mandatory attribute conveys the IP address of the next hop router for forwarding traffic toward the destination network.