# Ip6BmcLanConfig

| Field       | Value                           |
|-------------|---------------------------------|
| Index       | 259                             |
| Module      | Ip6BmcLanConfig                 |
| File        | Ip6BmcLanConfig.efi             |
| PE format   | PE32+                           |
| Size (hex)  | 2A24h                           |
| Size (bytes)| 10,788                          |
| Subsystem   | EFI Boot Service (000Bh)        |
| Sections    | 5 (.text, .rdata, .data, section_3, .xdata) |
| Phase       | DXE                             |
| Source      | AmiModulePkg                    |
| Build       | HR6N0XMLK, DEBUG_VS2015, X64    |

## Overview

This DXE driver configures BMC LAN1 and LAN2 interfaces with static IPv6 addresses and router addresses via the IPMI transport protocol at boot time. It locates the IPMI Transport Protocol, reads the "ServerSetup" UEFI NV variable for BMC IPv6 configuration, enumerates available LAN channels, and programs static IPv6 addresses and gateway addresses for each configured channel.

## Key Functions

- ReadUnaligned64 -- reads unaligned 64-bit values from memory
- InternalCopyMem -- memory copy with overlap handling
- Ip6BmcLanConfigEntry -- driver entry point; locates protocols, enumerates LAN channels
- LAN channel configuration (IP source, static address, router/gateway programming)
- Setup data write-back to "ServerSetup" NV variable

## Dependencies

- IPMI Transport Protocol
- UEFI Runtime Variable Services (ServerSetup NV variable)
- UEFI Boot Services
- Debug Protocol
- PCD Protocol

## Platform

Intel/AMD64 UEFI, Lenovo HR650X BIOS