Setting iBMC IPv6 Address (ipaddr6)
Function
The ipaddr6 command is used to set the IPv6 address, prefix length, and gateway address of the iBMC.
Format
ipmcset -d ipaddr6 -v <ipaddr6/prefixlen> [gateway6]
Parameters
Parameter |
Description |
Value |
---|---|---|
ipaddr6 |
Indicates the IPv6 address to be set for the iBMC. |
An IP address that is 128 bits in length consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. However, most IPv6 addresses do not occupy all 128 bits and can be abbreviated. In addition, the two-colon (::) notation can be used to represent contiguous 16-bit fields of zeros, and leading zeroes in a field can be omitted. For example, the IPv6 address fc00::0db8:3c4d:0015:0000:0000:1a2f:1a2b can be abbreviated as fc00::db8:3c4d:15::1a2f:1a2b. |
prefixlen |
Indicates the prefix length to be set for the iBMC. |
0 to 128 |
gateway6 |
Indicates the IPv6 gateway address to be set for the iBMC. |
An IP address that is 128 bits in length consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx. However, most IPv6 addresses do not occupy all 128 bits and can be abbreviated. In addition, the two-colon (::) notation can be used to represent contiguous 16-bit fields of zeros, and leading zeroes in a field can be omitted. For example, the IPv6 address fc00::0db8:3c4d:0015:0000:0000:1a2f:1a20 can be abbreviated as fc00::db8:3c4d:15::1a2f:1a20. |
Usage Guidelines
- After an IPv6 address is changed, the new IP address takes effect immediately.
- In addition to the IPv6 address, Link-Local Address can be used to access the iBMC. You can run the ipmcget command to obtain Link-Local Address.
Example
# Set the IPv6 address of the iBMC to fc00::6516, prefix length to 64, and IPv6 gateway to fc00::1.
iBMC:/->ipmcset -d ipaddr6 -v fc00::6516/64 fc00::1 Set IPV6 address successfully. Set IPV6 prefix successfully. Set IPv6 GATEWAY6 successfully.
# Query the changed IP address of the iBMC management network interface.
iBMC:/->ipmcget -d ipinfo EthGroup ID : 1 Net Mode : Manual Net Type : Dedicated IPv4 Information : IP Mode : static IP Address : 192.168.0.25 Subnet Mask : 255.255.0.0 Default Gateway : 192.168.0.1 Backup IP Address : 192.168.0.144 (Activated) Backup Subnet Mask : 255.255.255.0 (Activated) MAC Address : IPv6 Information : IPv6 Mode : static IPv6 Address : fc00::6516 Default Gateway IPv6 : fc00::1 Link-Local Address : fe80::218:e1ff:fec5:d866/64 VLAN Information : VLAN State : disabled VLAN ID : 1