Cannot setup status IPv6 address for the specific network during installation

Bug #2018443 reported by shangsong
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

  Try to install Ubuntu server 20.04/22.04 and setup static IPv4/IPv6 address via kernel parameters for the specific network MAC address, below solution can work for IPv4, but IPv6 will be failed with the message “ipconfig: can’t parse IP address ‘ens3f1,[2002”, please help to check if is the usage for IPv6 incorrect or provide the solution about IPv6.

Kernel parameters for IPv4(Pass): ksdevice=bootif BOOTIF=68:05:ca:44:03:87 ip=10.10.10.120::10.10.10.1:255.255.255.0::::10.10.10.1 ds=nocloud-net;s=http://XX.XX.XX.XX/

Kernel parameters for IPv6(Fail): ksdevice=bootif BOOTIF=68:05:ca:44:03:87 ip=[2002:97b:c2bb:830:10:240:210:31]:::64::eno1:none
---
ProblemType: Bug
AlsaDevices:
 total 0
 crw-rw----+ 1 root audio 116, 1 May 5 15:55 seq
 crw-rw----+ 1 root audio 116, 33 May 5 15:55 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
CasperMD5json:
 {
   "result": "skip"
 }
CasperVersion: 1.470.2
DistroRelease: Ubuntu 22.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
LiveMediaBuild: Ubuntu-Server 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230217.1)
MachineType: Lenovo ThinkAgile VX7330-N Appliance
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
ProcFB: 0 mgag200drmfb
ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz fsck.mode=skip ksdevice=bootif BOOTIF=BC:97:E1:1F:62:3C ip=[2002:97b:c2bb:830:10:240:210:31]:::64:::none ---
ProcVersionSignature: Ubuntu 5.15.0-60.66-generic 5.15.78
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-60-generic N/A
 linux-backports-modules-5.15.0-60-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.10
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
Tags: jammy uec-images
Uname: Linux 5.15.0-60-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 03/30/2023
dmi.bios.release: 1.51
dmi.bios.vendor: Lenovo
dmi.bios.version: AFE122I-1.51
dmi.board.asset.tag: none
dmi.board.name: 7Z62CTO3WW
dmi.board.vendor: Lenovo
dmi.board.version: 05
dmi.chassis.asset.tag: none
dmi.chassis.type: 23
dmi.chassis.vendor: Lenovo
dmi.chassis.version: none
dmi.ec.firmware.release: 2.20
dmi.modalias: dmi:bvnLenovo:bvrAFE122I-1.51:bd03/30/2023:br1.51:efr2.20:svnLenovo:pnThinkAgileVX7330-NAppliance:pvr05:rvnLenovo:rn7Z62CTO3WW:rvr05:cvnLenovo:ct23:cvrnone:sku7Z62CTO3WW:
dmi.product.family: ThinkSystem
dmi.product.name: ThinkAgile VX7330-N Appliance
dmi.product.sku: 7Z62CTO3WW
dmi.product.version: 05
dmi.sys.vendor: Lenovo

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2018443

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
shangsong (shangsong2) wrote : CurrentDmesg.txt

apport information

tags: added: apport-collected jammy uec-images
description: updated
Revision history for this message
shangsong (shangsong2) wrote : HookError_ubuntu.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : Lspci.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : Lspci-vt.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : Lsusb.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : Lsusb-t.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : Lsusb-v.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : ProcInterrupts.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : ProcModules.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : UdevDb.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : WifiSyslog.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote : acpidump.txt

apport information

Revision history for this message
shangsong (shangsong2) wrote :

ipconfig: can't parse IP address '[2002'
ipconfig: can't parse IP address '[2002'
ipconfig: can't parse IP address '[2002'
ipconfig: can't parse IP address '[2002'

Jeff Lane  (bladernr)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jeff Lane  (bladernr) wrote :

For reference:

https://manpages.ubuntu.com/manpages/focal/man7/dracut.cmdline.7.html
https://manpages.ubuntu.com/manpages/focal/en/man7/casper.7.html

   ip=<client-IP>:[<peer>]:<gateway-IP>:<netmask>:<client_hostname>:<interface>:{none|off|dhcp|on|any|dhcp6|auto6|ibft}[:[<mtu>][:<macaddr>]]
           explicit network configuration. If you want do define a IPv6 address, put it in
           brackets (e.g. [2001:DB8::1]). This parameter can be specified multiple times. <peer>
           is optional and is the address of the remote endpoint for pointopoint interfaces and
           it may be followed by a slash and a decimal number, encoding the network prefix
           length.

           <macaddr>
               optionally set <macaddr> on the <interface>. This cannot be used in conjunction
               with the ifname argument for the same <interface>.

(dracut is a universe package).

All I can find online seems to point that Fedora carries patches that support ipv6 addresses from the kernel command line. The only docs in the kernel itself relate to ipv4 as part of nfsroot.

Documentation/admin-guide/kernel-parameters.txt
Documentation/admin-guide/nfs/nfsroot.rst

Revision history for this message
shangsong (shangsong2) wrote :

Hi Jeff,
  Now only RHEL/Fedora can support ipv6 address via kernel parameter "ip=", SUSE use another boot parameter("hostip=") to set ipv6 address.
  My request is looking for a method to set static ipv6 address for the specified mac address during boot, like set static ipv4 address. Is it possible on Ubuntu OS? If yes, please provide the boot options on Ubuntu OSes, thanks.

Revision history for this message
Jeff Lane  (bladernr) wrote :

There are no plans to support this at this time. As you notied (and we discussed before in a previous call) this is from a set of Red Hat specific patches that are not upstream and available outside those kernels.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.