Question #33

What is the expected outcome when an EUI-64 address is generated?
A
The interface ID is configured as a random 64-bit value
B
The characters FE80 are inserted at the beginning of the MAC address of the interface
C
The seventh bit of the original MAC address of the interface is inverted
D
The MAC address of the interface is (Note: Option D is incomplete in the search snippet but implies some manipulation of the MAC address)
English
This question delves into the mechanism of **EUI-64 (Extended Unique Identifier 64-bit)**, a method used in IPv6 to automatically generate the Interface ID portion of an IPv6 address from a device's MAC address. This is a fundamental concept for understanding IPv6 address auto-configuration, especially with **SLAAC (Stateless Address Autoconfiguration)**. Let's break down the question and the correct answer. --- ### **Understanding Key Terms** * **IPv6 Address:** The next generation of IP addresses, designed to replace IPv4. An IPv6 address is 128 bits long and typically divided into two main parts: the **Network Prefix** (the first 64 bits, indicating the network) and the **Interface ID** (the last 64 bits, identifying the specific interface on that network, similar to the host portion in IPv4). * **MAC Address (Media Access Control Address):** A unique, physical hardware address assigned to a network interface controller (NIC) for communications within a network segment. It is 48 bits long, usually represented in hexadecimal (e.g., `00:1A:2B:3C:4D:5E`). * **EUI-64 (Extended Unique Identifier 64-bit):** A standard method for generating a unique 64-bit Interface ID for an IPv6 address directly from a device's 48-bit MAC address. This is often used with SLAAC to allow devices to self-configure their IPv6 addresses without a DHCP server. * **Interface ID:** The unique identifier for a host within a subnet in an IPv6 address. When using EUI-64, this 64-bit value is derived from the MAC address. ### **The EUI-64 Generation Process** The EUI-64 process takes a 48-bit MAC address and expands it into a 64-bit Interface ID using the following steps: 1. **Split the MAC Address:** The 48-bit MAC address is split into two 24-bit halves. * Example MAC: `00:1A:2B:3C:4D:5E` * First half: `00:1A:2B` * Second half: `3C:4D:5E` 2. **Insert FFFE:** The hexadecimal value `FFFE` (16 bits) is inserted between the two 24-bit halves. * Result: `00:1A:2B:FF:FE:3C:4D:5E` (This is now 64 bits). 3. **Invert the Universal/Local (U/L) Bit:** This is the most crucial step related to the question. The 7th bit of the *original* MAC address's first byte is inverted (flipped). * **Why?** MAC addresses have a bit (the 7th bit, counting from 1, or the 2nd least significant bit of the first byte) called the **Universal/Local bit**. * If this bit is `0`, the MAC address is **universally administered** (globally unique, assigned by the manufacturer). * If this bit is `1`, the MAC address is **locally administered** (assigned by a network administrator for specific use). * **The EUI-64 standard inverts this bit** so that an Interface ID derived from a universally administered MAC address (where the U/L bit is `0`) will have the U/L bit set to `1` in its EUI-64 Interface ID. This signifies that the address is *globally unique* (even though it's locally derived from the MAC). * **Example:** Let's take the first byte of `00:1A:2B:3C:4D:5E`, which is `00` in hex. * In binary, `00` is `0000 0000`. * The 7th bit (counting from the left, starting at 1, or the second bit from the right if you consider the first byte as `b7 b6 b5 b4 b3 b2 b1 b0` where `b0` is the LSB) is the `b1` bit in this common notation, or if we look at `0000 00X0`, it's the bit before the last zero. * More commonly, and less ambiguously, it's the **seventh bit from the left** of the first byte when looking at the entire 48-bit MAC address. * Let's consider the first byte `00` (binary `00000000`). The 7th bit (the second bit from the left) is `0`. * Inverting this bit changes `00000000` to `00000010`. * `00` hex becomes `02` hex. * So, the MAC `00:1A:2B:3C:4D:5E` becomes `02:1A:2B:FF:FE:3C:4D:5E` for the Interface ID. ### **Analyzing the Options** Let's evaluate each option based on the EUI-64 generation process: * **"The interface ID is configured as a random 64-bit value"** * **Incorrect.** EUI-64 generates a deterministic (predictable) Interface ID based on the MAC address, not a random one. While IPv6 does have "Privacy Extensions" that can generate random Interface IDs to enhance privacy (to prevent tracking a device by its consistent EUI-64 address), this is a separate mechanism from the standard EUI-64 process itself. EUI-64's purpose is to derive it from the MAC. * **"The characters FE80 are inserted at the beginning of the MAC address of the interface"** * **Incorrect.** `FE80::/10` is the prefix for **Link-Local Addresses** in IPv6, which are used for communication only on the local link. While an EUI-64 Interface ID might be *combined* with the `FE80::` prefix to form a Link-Local address (e.g., `FE80::021A:2BFF:FE3C:4D5E`), the characters `FE80` are *not* inserted into the MAC address during the EUI-64 generation. Instead, `FFFE` is inserted in the *middle* of the MAC address. * **"The seventh bit of the original MAC address of the interface is inverted"** * **Correct.** As explained in step 3 of the EUI-64 generation process, the Universal/Local bit (the 7th bit of the first byte of the MAC address) is inverted. This is a defining characteristic of the EUI-64 standard. * **"The MAC address of the interface is..." (Incomplete)** * Even if this option were complete, it's unlikely to be the most accurate or specific answer. The other options cover more specific manipulations. The mere "use" or "manipulation" of the MAC address doesn't capture the specific bit inversion which is the key distinguishing feature and the focus of such a question. ### **Conclusion** The correct answer precisely describes a critical step in the EUI-64 address generation process, which is the inversion of the 7th bit of the original MAC address's first byte. The final answer is **The seventh bit of the original MAC address of the interface is inverted**
日本語
CCNA試験において、IPv6のアドレッシング、特に**EUI-64(Extended Unique Identifier 64-bit)**の生成プロセスを理解することは非常に重要です。 ご質問の「EUI-64アドレスが生成される際の期待される結果(仕組み)」について、プロのネットワークエンジニアの視点で詳しく解説します。 --- # 考題解析:IPv6 EUI-64 アドレスの生成 ## 1. 結論(期待される結果) EUI-64プロセスが実行されると、デバイスの**48ビットのMACアドレス**を基に、以下の2つのステップを経て**64ビットのインターフェースID**が生成されます。 1. MACアドレスの中間(24ビット目と25ビット目の間)に、固定値 **`FFFE` (16ビット)** を挿入する。 2. 先頭から7番目のビット(**U/Lビット**:Universal/Localビット)を**反転**させる。 --- ## 2. 詳細な生成プロセス EUI-64は、IPv6のステートレスアドレス自動設定(SLAAC)などで、インターフェースIDを自動生成するために使用されます。 ### ステップ1:FFFEの挿入 MACアドレスは48ビット(12桁の16進数)で構成されています。これを半分に分け、その間に `FFFE` を追加します。 * **MACアドレス例:** `00:11:22:33:44:55` * **挿入後:** `0011:22` + **`FFFE`** + `3344:55` ### ステップ2:第7ビットの反転 MACアドレスの最初のオクテット(8ビット)に注目します。この第7ビットは「U/Lビット」と呼ばれ、世界的に一意(Universal)か、ローカルで管理されている(Local)かを示します。EUI-64ではこのビットを反転させます。 * **例:** 最初のオクテットが `00`(16進数)の場合 * 2進数表記: `0000 0000` * 第7ビットを反転: `0000 0010` * 16進数に戻す: `02` --- ## 3. 具体的な計算例 試験でよく問われる計算の流れをシミュレーションします。 * **元のMACアドレス:** `00:90:27:17:FC:0F` 1. **FFFEを挿入:** `0090:27FF:FE17:FC0F` 2. **第7ビットを反転:** * 先頭の `00` は `0000 0000` * 反転後は `0000 0010` → `02` 3. **最終的なインターフェースID:** `0290:27FF:FE17:FC0F` --- ## 4. 試験対策のポイント(CCNAレベル) 試験で「EUI-64の結果」を問われた際は、以下の3点を確認してください。 * **中央に `FFFE` があるか?** * 選択肢の中で `FFFF` などと間違えているものがあるため注意してください。必ず `FFFE` です。 * **第7ビットが正しく計算されているか?** * もっとも簡単な覚え方は、**「16進数の2番目の数字に +2 または -2 する」**ことです。 * `00` → `02` * `0C` → `0E` * `02` → `00` (既に反転している場合) * **用途の理解:** * EUI-64は、IPv6プレフィックス(通常 /64)と組み合わせて、完全な128ビットのIPv6アドレスを構成するために使用されます。 --- ## 5. まとめ EUI-64アドレス生成の期待される結果は、**「MACアドレスを基に、FFFEの挿入とU/Lビットの反転を行うことで、一意の64ビットインターフェースIDを作成すること」**です。 この手法により、管理者が手動でIPアドレスを割り当てなくても、ネットワーク上の各デバイスが重複しないIPv6アドレスを自動的に取得できるようになります。
繁體中文
這是一題關於 IPv6 位址生成機制的經典 CCNA 考題。作為一名網路工程師,理解 **EUI-64 (Extended Unique Identifier)** 的運作原理對於掌握 **SLAAC (Stateless Address Autoconfiguration)** 至關重要。 以下是針對該考題的詳細解析: --- # 考題解析:IPv6 EUI-64 位址生成機制 ### 1. 核心考點 (The Expected Outcome) 當系統生成一個 EUI-64 位址時,其預期的結果包含兩個關鍵動作: 1. **在 48 位元的 MAC 位址中間插入固定值 `FFFE`**。 2. **將 MAC 位址第一個位元組(Byte)的第 7 個位元(U/L bit)進行反轉(Flip)**。 --- ### 2. 詳細生成步驟 (Step-by-Step Process) EUI-64 的目的是將一個 **48-bit 的 MAC 位址** 轉換為一個 **64-bit 的介面識別碼 (Interface ID)**。 #### 第一步:分割 MAC 位址 將 48-bit 的 MAC 位址從中間拆分為兩部分(前 24 bit 與後 24 bit)。 * 例如:`00:11:22:33:44:55` * 拆分:`0011:22` 與 `3344:55` #### 第二步:插入 FFFE 在中間插入 16 位元的十六進制值 `FFFE`。 * 結果:`0011:22FF:FE33:4455` #### 第三步:反轉第 7 個位元 (Universal/Local Bit) 這是最容易被忽視的步驟。找到第一個位元組(前兩位十六進制數),將其二進制的第 7 位元反轉(0 變 1,1 變 0)。 * 第一個位元組為 `00`(十六進制)= `0000 0000`(二進制)。 * 第 7 位元從 `0` 變為 `1`:`0000 0010`(二進制)= `02`(十六進制)。 * **最終 EUI-64 介面識別碼:** `0211:22FF:FE33:4455` --- ### 3. 實戰範例對照 | 項目 | 數值 | | :--- | :--- | | **原始 MAC 位址** | `0011.2233.4455` | | **插入 FFFE** | `0011:22FF:FE33:4455` | | **反轉第 7 位元 (Final EUI-64)** | **`0211:22FF:FE33:4455`** | > **工程師筆記:** 如果 MAC 位址的第一個位元組本來就是 `02`,反轉後會變成 `00`。但在大多數情況下,燒錄在網卡上的全球唯一 MAC 位址(BIA)第 7 位通常為 0,因此生成後通常會看到該位變為 2。 --- ### 4. 為什麼要這麼做? (Technical Background) * **擴充位數:** IPv6 的 Interface ID 需要 64 bit,而乙太網路 MAC 只有 48 bit,透過插入 `FFFE` 可以標準化長度。 * **U/L Bit 的意義:** 在 IEEE 標準中,第 7 位元代表「全球唯一 (0)」或「本地管理 (1)」。在 IPv6 中,為了方便管理與識別,將其定義為反轉狀態(1 代表全球唯一)。 --- ### 5. 考試陷阱提醒 在 CCNA 考題中,選項通常會設計以下陷阱: * **陷阱 A:** 只說插入 `FFFE`,沒提到反轉第 7 位元。 * **陷阱 B:** 誤稱插入 `FFFF`(正確應為 `FFFE`)。 * **陷阱 C:** 說反轉第 8 個位元(正確應為第 7 個位元)。 ### 總結 當題目詢問 **Expected Outcome** 時,正確答案應包含:**MAC 地址被擴展為 64 位元,中間嵌入了 FFFE,且第 7 個位元已被更改(Inverted)。**
简体中文
这是一道关于 IPv6 地址生成机制的经典 CCNA 考题。作为一名网络工程师,理解 **EUI-64(64-bit Extended Unique Identifier)** 的生成过程对于掌握 IPv6 无状态地址自动配置(SLAAC)至关重要。 以下是针对该考题的详细技术解析: --- ### 考题解析:EUI-64 地址生成的预期结果 #### 1. 什么是 EUI-64? 在 IPv6 网络中,一个单播地址由 128 位组成,通常分为: * **前 64 位:** 网络前缀(Network Prefix),由路由器通告。 * **后 64 位:** 接口标识符(Interface ID),用于标识链路上的特定接口。 **EUI-64** 是一种利用设备的 **48 位 MAC 地址** 自动生成这 **64 位接口标识符** 的标准方法。 --- #### 2. EUI-64 的生成步骤(核心考点) 生成一个 EUI-64 地址需要经过以下两个关键步骤: ##### 步骤 A:插入 FFFE MAC 地址是 48 位(6 个字节)。EUI-64 要求将其扩展为 64 位。 * **操作:** 将 48 位的 MAC 地址从中间拆开(前 24 位和后 24 位之间),插入固定的 16 位十六进制数值 **`FFFE`**。 * **示例:** * 原始 MAC:`0011.2233.4455` * 插入 FFFE 后:`0011:22FF:FE33:4455` ##### 步骤 B:反转第 7 位(U/L 位) 这是最容易在考试中出错的点。 * **操作:** 查看转换后地址的第一个字节(前 8 位),将从左数起的 **第 7 位(Universal/Local bit)** 进行反转(0 变为 1,1 变为 0)。 * **原理:** 在 IEEE 标准中,第 7 位为 0 表示本地管理(Local),为 1 表示全球唯一(Universal)。在生成 IPv6 接口 ID 时,通常将其反转为 1,以表示该地址是基于全球唯一的 MAC 地址生成的。 * **示例:** * 第一个字节是 `00`(十六进制)= `00000000`(二进制)。 * 反转第 7 位后:`00000010`(二进制)= `02`(十六进制)。 * 最终接口 ID:`0211:22FF:FE33:4455` --- #### 3. 预期结果总结(答案要点) 当 EUI-64 地址生成时,预期的结果包含以下特征: 1. **长度变化:** 从 48 位的 MAC 地址转换为了 **64 位** 的接口标识符。 2. **中间填充:** 地址的中间(第 24 位和第 25 位之间)被插入了 **`FFFE`**。 3. **第 7 位反转:** 第一个字节的第 7 个比特位被反转(通常从 0 变为 1)。 4. **唯一性:** 生成的接口 ID 与网络前缀结合,形成一个在全球范围内(理论上)唯一的 IPv6 地址。 --- #### 4. 实例演示 假设某路由器的接口 MAC 地址为:`00:0C:29:0C:47:D5` 1. **拆分并插入 FFFE:** `000C:29` + `FFFE` + `0C47D5` $\rightarrow$ `000C:29FF:FE0C:47D5` 2. **转换第一个字节并反转第 7 位:** * 第一个字节是 `00` $\rightarrow$ 二进制 `00000000` * 反转第 7 位 $\rightarrow$ 二进制 `00000010` $\rightarrow$ 十六进制 `02` 3. **最终 EUI-64 接口 ID:** `020C:29FF:FE0C:47D5` 4. **结合前缀(假设为 2001:DB8:ACAD:1::/64):** 最终 IPv6 地址为:`2001:DB8:ACAD:1:020C:29FF:FE0C:47D5` --- ### 网络工程师考点提示 在 CCNA 考试中,如果遇到此题,请牢记以下口诀: > **“中间插 FFFE,左起第七位取反”** * 如果选项提到插入 `FFFF`,那是**错误**的。 * 如果选项提到反转第 8 位,那是**错误**的。 * 如果选项提到地址变成了 64 位,那是**正确**的。