Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ip6address not detected correctly on FreeBSD #1835

Open
feld opened this issue Sep 2, 2024 · 3 comments · May be fixed by #1838
Open

ip6address not detected correctly on FreeBSD #1835

feld opened this issue Sep 2, 2024 · 3 comments · May be fixed by #1838
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.

Comments

@feld
Copy link
Contributor

feld commented Sep 2, 2024

Running Chef on FreeBSD and the node['ip6address'] is always ::1

@feld feld added Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected. labels Sep 2, 2024
@feld feld linked a pull request Sep 11, 2024 that will close this issue
@jaymzh
Copy link
Collaborator

jaymzh commented Oct 22, 2024

Hey - so we're gonna merge your other PR, but for this one, I think there's a different fix - the ip address sorting in the OS-agnostic network.rb SHOULD be picking the right thing for ip6address (in fact, that's what chooses it).

We're gonna dig into this a bit more. @ramereth is gonna get us some output, but @feld can you get us the output of ifconfig -a on your system so we can try to repro this?

@ramereth
Copy link
Contributor

vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
	options=4c079b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
	ether fa:16:3e:ad:ed:0b
	inet 140.211.10.102 netmask 0xffffffc0 broadcast 140.211.10.127
	inet6 fe80::f816:3eff:fead:ed0b%vtnet0 prefixlen 64 scopeid 0x1
	inet6 2605:bc80:3010:506:f816:3eff:fead:ed0b prefixlen 64 autoconf pltime 604800 vltime 2592000
	media: Ethernet autoselect (10Gbase-T <full-duplex>)
	status: active
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet 127.0.0.1 netmask 0xff000000
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

@ramereth
Copy link
Contributor

vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
	options=4c079b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
	ether fa:16:3e:ad:ed:0b
	inet 140.211.10.102 netmask 0xffffffc0 broadcast 140.211.10.127
	inet6 fe80::f816:3eff:fead:ed0b%vtnet0 prefixlen 64 scopeid 0x1
	inet6 2605:bc80:3010:506:f816:3eff:fead:ed0b prefixlen 64 autoconf pltime 604800 vltime 2592000
	media: Ethernet autoselect (10Gbase-T <full-duplex>)
	status: active
	nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet 127.0.0.1 netmask 0xff000000
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo1: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 fe80::1%lo1 prefixlen 64 scopeid 0x3
	inet6 ::1 prefixlen 64
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged. Type: Bug Does not work as expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants