Question #24
Which action must be taken to assign a global unicast IPv6 address on an interface that is derived from the MAC address of that interface?
A
explicitly assign a link-local address.
B
disable the EUI-64 bit process.
C
enable SLAAC on an interface.
D
configure a stateful DHCPv6 server on the network.
English
This question tests your understanding of IPv6 address assignment methods, specifically how global unicast addresses can be automatically configured and how they can be derived from an interface's MAC address.
Let's break down each option:
### **Understanding Key Terms**
* **IPv6 Global Unicast Address:** This is a globally unique and routable IPv6 address, similar to a public IPv4 address. It allows a device to communicate with other devices anywhere on the internet.
* **MAC Address (Media Access Control Address):** A unique hardware identifier assigned to network interfaces (like an Ethernet card). It's a 48-bit address.
* **EUI-64 (Extended Unique Identifier-64):** A method used in IPv6 to automatically generate a 64-bit Interface ID (the host portion of an IPv6 address) from a 48-bit MAC address. It involves inserting the hexadecimal value `FFFE` in the middle of the MAC address and flipping the 7th bit (the Universal/Local bit). This is the standard way to "derive from the MAC address."
* **Interface ID:** The last 64 bits of an IPv6 address, which uniquely identifies a host on a specific subnet.
* **Prefix:** The first 64 bits of an IPv6 global unicast address, which identifies the network subnet.
---
### **Analysis of Options**
#### **1. explicitly assign a link-local address.**
* **What it means:** A link-local address is an IPv6 address that is only valid on the local network segment (link). It starts with `FE80::/10`. Devices automatically generate a link-local address (often using EUI-64 from their MAC address) when IPv6 is enabled on an interface, even without any manual configuration. Explicitly assigning one means manually configuring `ipv6 address FE80::X:X:X:X link-local` on the interface.
* **Why it's incorrect:**
* The question asks for a **global unicast IPv6 address**, not a link-local address. These are different types of addresses with different scopes.
* While link-local addresses are often derived from the MAC address using EUI-64, explicitly assigning a link-local address does not automatically assign a *global unicast* address derived from the MAC address.
#### **2. disable the EUI-64 bit process.**
* **What it means:** EUI-64 is the mechanism that takes a 48-bit MAC address and expands it into a 64-bit Interface ID for an IPv6 address. This process is crucial for deriving the IPv6 address from the MAC address.
* **Why it's incorrect:** The question specifically asks for an address "derived from the MAC address." Disabling EUI-64 would prevent this derivation process from occurring, directly contradicting the requirement of the question.
#### **3. enable SLAAC on an interface.**
* **What it means:** **SLAAC (Stateless Address Autoconfiguration)** is an IPv6 feature that allows a device to automatically configure its own global unicast IPv6 address without needing a DHCPv6 server.
* **How it works:**
1. An IPv6-enabled host sends a **Router Solicitation (RS)** message to find a router.
2. An IPv6 router on the segment responds with a **Router Advertisement (RA)** message.
3. The RA message contains network information, most importantly the **prefix** (the first 64 bits of the global unicast address).
4. The host then takes this 64-bit prefix and combines it with a 64-bit **Interface ID** to form its complete 128-bit global unicast IPv6 address.
5. By default, when SLAAC is used, the device generates its Interface ID using the **EUI-64 process**, which *derives it directly from the interface's MAC address*. (Alternatively, IPv6 Privacy Extensions can be used to generate random interface IDs, but EUI-64 is the default derivation from MAC).
* **Why it's correct:** Enabling SLAAC on an interface allows a device to automatically configure a global unicast IPv6 address. By default, the interface ID part of this address is generated using the EUI-64 process from the interface's MAC address, perfectly matching both conditions in the question: "assign a global unicast IPv6 address" and "derived from the MAC address."
#### **4. configure a stateful DHCPv6 server on the network.**
* **What it means:** **DHCPv6 (Dynamic Host Configuration Protocol for IPv6)** is a protocol used to assign IPv6 addresses and other network configuration information to hosts.
* **Stateful DHCPv6:** In this mode, the DHCPv6 server maintains a database ("state") of all assigned addresses and assigns *both* the prefix *and* the interface ID to the client. The client gets a complete IPv6 address directly from the server.
* **Stateless DHCPv6 (DHCPv6 Lite):** This mode is used in conjunction with SLAAC. SLAAC handles the address assignment (prefix + EUI-64 derived interface ID), while stateless DHCPv6 provides *additional* information like DNS server addresses or domain names.
* **Why it's incorrect:**
* While stateful DHCPv6 assigns global unicast IPv6 addresses, the addresses it assigns are typically *not* derived from the client's MAC address using EUI-64. The server assigns the entire address based on its own address pool.
* The question specifically requires the address to be *derived from the MAC address*, which is a characteristic of SLAAC using EUI-64, not stateful DHCPv6.
---
### **Conclusion**
To assign a global unicast IPv6 address derived from the MAC address of an interface, **SLAAC (Stateless Address Autoconfiguration)** is the mechanism that achieves this. By default, SLAAC uses the EUI-64 process to generate the interface ID from the MAC address, combining it with a prefix received from a router to form the full global unicast address.
The final answer is **enable SLAAC on an interface.**
日本語
CCNA試験対策として、この問題の核心となる**EUI-64**プロセスと、それに関連する設定コマンドについて詳しく解説します。
---
# 試験問題解析:IPv6 EUI-64 アドレス生成
### 問題の要約
インターフェースのMACアドレスから派生したインターフェースIDを使用して、IPv6グローバルユニキャストアドレス(GUA)を割り当てるために必要なアクションは何か。
### 正解(Cisco IOSコマンド)
インターフェースコンフィギュレーションモードで以下のコマンドを実行します。
**`ipv6 address [prefix]/64 eui-64`**
---
## 詳細解説
IPv6では、ホスト(またはルータのインターフェース)のインターフェースID(後半64ビット)を、デバイス固有の**MACアドレス**から自動的に生成する仕組みがあります。これを **EUI-64 (Extended Unique Identifier 64-bit)** と呼びます。
### 1. EUI-64の仕組み(変換プロセス)
MACアドレスは48ビットですが、IPv6のインターフェースIDは64ビット必要です。以下の3つのステップで変換が行われます。
1. **MACアドレスの分割**: 48ビットのMACアドレスを、前半24ビット(OUI)と後半24ビット(NIC固有番号)の間に分けます。
2. **FFFEの挿入**: 分割した真ん中に、16ビットの固定値 **`FFFE`** を挿入します。
3. **U/Lビットの反転**: 先頭から7ビット目(Universal/Localビット)を反転させます。
* 通常、MACアドレスの7ビット目が「0」(Universal)であれば「1」に変更します。
**具体例:**
* MACアドレス: `0011.2233.4455`
* 挿入後: `0011:22**FF:FE**33:4455`
* 7ビット目反転後: `**02**11:22FF:FE33:4455` (インターフェースID)
### 2. コマンドの構成要素
`ipv6 address 2001:db8:1:1::/64 eui-64` というコマンドを例に取ると、各パーツの意味は以下の通りです。
* **`2001:db8:1:1::`**: 管理者が指定するネットワークプレフィックス(前半64ビット)。
* **`/64`**: プレフィックス長。EUI-64を使用する場合、必ず `/64` である必要があります。
* **`eui-64`**: 「後半64ビットはMACアドレスから自動生成せよ」という指示。
### 3. なぜこのアクションが必要なのか
通常、IPv6アドレスを手動で設定する場合、128ビットすべてを入力する必要がありますが、EUI-64を使用することで以下のメリットが得られます。
* **管理の簡略化**: 前半のネットワーク部を指定するだけで、各デバイスに一意のアドレスを割り当てられる。
* **タイピングミスの削減**: 長いIPv6アドレスの後半部分を入力しなくて済む。
* **SLAAC(ステートレスアドレス自動設定)との親和性**: クライアントPCなどが自身でアドレスを生成する際と同じロジックをルータ側でも適用できる。
---
## 試験対策のポイント
* **キーワード**: 「MACアドレスから派生(derived from the MAC address)」というフレーズが出たら、即座に **EUI-64** を連想してください。
* **プレフィックス長**: EUI-64を使用する際は必ず **`/64`** でなければなりません。試験の選択肢に `/48` や `/128` が混じっている場合は除外できます。
* **7ビット目の反転**: 計算問題として出題されることもあるため、`00` が `02` になる仕組みを覚えておきましょう。
## 設定例
```cisco
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ipv6 address 2001:DB8:ACAD:1::/64 eui-64
Router(config-if)# no shutdown
```
この設定により、インターフェースには `2001:DB8:ACAD:1:[EUI-64で生成されたID]` というアドレスが割り当てられます。
---
**ネットワークエンジニアの視点から:**
実務では、サーバーなどの固定IPが必要な機器には手動設定(Static)を行いますが、多くのインターフェースを効率的に管理する場合や、IPv6の検証環境を迅速に構築する際には、このEUI-64は非常に便利な機能です。CCNA試験でも頻出の基礎知識と言えます。
繁體中文
這是一題經典的 CCNA 認證考題,重點在於測驗考生對於 IPv6 位址生成機制,特別是 **EUI-64(Extended Unique Identifier)** 運算過程與指令配置的理解。
以下是針對此考題的專業解析:
---
### 考題解析:如何根據 MAC 位址產生 IPv6 全域單播位址(GUA)
#### 1. 正確答案與核心動作
要在介面上分配一個基於 MAC 位址生成的 IPv6 全域單播位址(Global Unicast Address),必須在設定 IPv6 位址的指令結尾加上 **`eui-64`** 關鍵字。
* **完整指令範例:**
```bash
Router(config-if)# ipv6 address 2001:db8:1:1::/64 eui-64
```
---
#### 2. 技術原理:什麼是 EUI-64?
在 IPv6 中,一個標準的位址長度為 128 bits,通常分為兩個部分:
* **前綴 (Prefix):** 前 64 bits,由管理員手動指定或透過路由器通告(RA)獲得。
* **介面識別碼 (Interface ID):** 後 64 bits,相當於 IPv4 的主機部分。
當我們使用 `eui-64` 參數時,設備會自動抓取該介面的 **48 bits MAC 位址**,並透過以下三個步驟將其轉換為 **64 bits 的 Interface ID**:
1. **拆分:** 將 48 bits 的 MAC 位址從中間拆成兩半(各 24 bits)。
2. **插入:** 在中間插入固定的 16 bits 十六進位數值 **`FFFE`**。
3. **轉換 (U/L Bit):** 將 MAC 位址第一個位元組(Byte)的第 7 個位元(Universal/Local bit)進行反轉(若為 0 則變 1,若為 1 則變 0)。
---
#### 3. 運算實例演示
假設介面的 MAC 位址為:`0011:2233:4455`
1. **插入 FFFE:** `0011:22FF:FE33:4455`
2. **處理第 7 位元:**
* 第一個位元組是 `00`(二進位為 `0000 0000`)。
* 將第 7 位元反轉後變成 `0000 0010`(十六進位為 `02`)。
3. **最終 Interface ID:** `0211:22FF:FE33:4455`
4. **完整位址:** 若前綴為 `2001:db8:1:1::/64`,則最終位址為 `2001:db8:1:1:0211:22ff:fe33:4455`。
---
#### 4. 為什麼要使用這種方法?
* **自動化與唯一性:** 由於 MAC 位址在全球是唯一的,使用 EUI-64 可以確保介面自動生成一個唯一的 IPv6 位址,減少手動配置出錯的機率。
* **無狀態位址自動配置 (SLAAC):** 這是 IPv6 實現「插即用」功能的核心技術之一。
---
#### 5. 考試重點提醒 (Exam Tips)
* **關鍵字識別:** 在選項中尋找 **`eui-64`**。
* **位址類型:** 題目提到的是「Global Unicast Address」,但 EUI-64 同樣常用於生成「Link-Local Address」(fe80::/10)。
* **MAC 轉換邏輯:** 考試可能會考「FFFE 插入在哪裡?」或「第幾個 bit 需要反轉?」。請記住:**中間插入 FFFE,第 7 位元反轉**。
### 總結
要達成題目要求,網路工程師必須在介面模式下輸入 `ipv6 address /64 eui-64`。這會命令路由器自動抓取硬體 MAC 位址並按照 EUI-64 規範填充後 64 位元的主機位址部分。
简体中文
你好!我是 Cisco 认证技术专家。针对这道关于 IPv6 地址配置的经典 CCNA 考题,我为你整理了详细的专业解析。
---
### 🟢 题目解析
**题目:** Which action must be taken to assign a global unicast IPv6 address on an interface that is derived from the MAC address of that interface?
**(译文:** 若要在接口上分配一个基于该接口 MAC 地址生成的全局单播 IPv6 地址,必须采取哪项操作?**)**
#### 核心答案:
在配置 IPv6 地址的命令末尾使用 **`eui-64`** 关键字。
具体的配置命令格式为:
`Router(config-if)# ipv6 address /64 eui-64`
---
### 📘 深度技术原理:EUI-64 机制
在 IPv6 中,一个典型的全局单播地址(GUA)长度为 128 位,结构如下:
* **前 64 位:** 网络前缀(Network Prefix),通常由 ISP 分配。
* **后 64 位:** 接口标识符(Interface ID),用于标识链路上的特定接口。
当使用 `eui-64` 关键字时,路由器会自动根据接口的 **48 位 MAC 地址** 计算出这 **64 位的接口标识符**。
#### EUI-64 的转换步骤(面试与考试常考):
假设接口的 MAC 地址为:`0011.2233.4455`
1. **中间插入填充值:** 在 MAC 地址的中间(第 24 位和第 25 位之间)插入固定的 16 位十六进制数 **`FFFE`**。
* 结果:`0011.22FF.FE33.4455`
2. **反转第七位(U/L bit):** 将第一个字节的第 7 位(从左往右数)进行取反(0 变 1,1 变 0)。这一位代表“全球/本地(Universal/Local)”管理。
* 第一个字节 `00` 的二进制是 `0000 0000`。
* 第 7 位取反后变为 `0000 0010`,即十六进制的 `02`。
3. **最终生成接口 ID:** `0211:22FF:FE33:4455`
---
### 💻 配置示例
假设你的 ISP 分配给你的全局前缀是 `2001:DB8:ACAD:1::/64`,你希望接口自动生成 ID:
```ios
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ipv6 address 2001:DB8:ACAD:1::/64 eui-64
Router(config-if)# no shutdown
```
**验证命令:**
使用 `show ipv6 interface GigabitEthernet0/0`,你会看到类似如下的输出:
`IPv6 is enabled, link-local address is FE80::211:22FF:FE33:4455`
`Global unicast address(es): 2001:DB8:ACAD:1:211:22FF:FE33:4455, subnet is 2001:DB8:ACAD:1::/64 [EUI]`
---
### ⚠️ 专家提醒(考点总结)
1. **前缀长度限制:** 使用 `eui-64` 时,网络前缀长度必须是 **/64**。如果定义为其他长度(如 /60 或 /96),则无法直接使用标准 EUI-64 生成接口 ID。
2. **链路本地地址(Link-Local):** 即使你不配置全局单播地址,只要在接口启用 IPv6(`ipv6 enable`),Cisco 设备也会默认使用 EUI-64 自动生成以 `FE80::/10` 开头的链路本地地址。
3. **隐私考虑:** 在现代操作系统(如 Windows/Linux 终端)中,为了安全,通常会使用“临时地址(Privacy Extensions)”而不是 EUI-64,因为 EUI-64 会暴露设备的硬件 MAC 地址,但在网络基础设施(路由器接口)配置中,EUI-64 依然非常常用。
希望这份解析能帮助你深入理解 IPv6 的地址分配机制!如有其他疑问,欢迎继续提问。