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

Address Origin "Static" populated for IPv6 addresses when DHCPv6 disabled #61

Open
raviteja-b opened this issue Feb 10, 2023 · 4 comments

Comments

@raviteja-b
Copy link
Contributor

raviteja-b commented Feb 10, 2023

Enabled DHCPv6 and noticed DHCPv6 address assignment works fine and after disabling
DHCPv6 noticed that there is a dynamic IPv6 address(SLAAC) and networkd marks this address origin as "Static"

 eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 08:94:yy:xx:ff:xx brd ff:ff:ff:ff:ff:ff
    inet 10.5.x.y/24 brd 10.x.y.255 scope global dynamic eth1
       valid_lft 469sec preferred_lft 469sec
    inet6 2001:501:ffff:101:a94:efff:fe81:ff85/64 scope global dynamic noprefixroute flags 100 
       valid_lft 297sec preferred_lft 197sec
    inet6 fe80::a94:efff:fe81:ff85/64 scope link 
       valid_lft forever preferred_lft forever

busctl get-property xyz.openbmc_project.Network /xyz/openbmc_project/network/eth1/ipv6/55d37675 xyz.openbmc_project.Network.IP Origin
s "xyz.openbmc_project.Network.IP.AddressOrigin.Static"

@raviteja-b
Copy link
Contributor Author

raviteja-b commented Feb 10, 2023

@wak-google @ratagupt can you please check this issue?

@raviteja-b
Copy link
Contributor Author

raviteja-b commented Feb 10, 2023

I think we need to change this logic of assigning IP address Origin
https://github.com/openbmc/phosphor-networkd/blob/master/src/ethernet_interface.cpp#L169

@wak-google
Copy link
Contributor

Yes, we need to better handle the origin and this is something on my wishlist

@sunharis
Copy link
Contributor

https://gerrit.openbmc.org/c/openbmc/phosphor-networkd/+/61997 fixes this. @wak-google @ratagupt Can you please check this commit?

eddiejames pushed a commit to eddiejames/phosphor-networkd that referenced this issue Mar 1, 2024
This commit adds support for ipv6 addresses on the hypervisor
ethernet interfaces. It includes the following changes:
[1] https://gerrit.openbmc.org/c/openbmc/phosphor-networkd/+/54393
[2] ibm-openbmc#46

Tested By:

[1] PATCH -d '{"DHCPv4": {"DHCPEnabled":false}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth1
[2] PATCH -d '{"DHCPv4": {"DHCPEnabled":true}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth1
[3] PATCH -d '{"DHCPv6": {"OperatingMode":"Enabled"}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth1
[4] PATCH -d '{"DHCPv6": {"OperatingMode":"Disabled"}}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth1
[5] PATCH -d '{"IPv4StaticAddresses": [{"Address": "<>","SubnetMask": "<>","Gateway":"<>"}]}' https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth1

Signed-off-by: Asmitha Karunanithi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants