Post by huyanhle on Jul 26, 2024 9:09:11 GMT
Hello,
I've observed that with one network interface I can use two IP addresses at the same time, one provided by DHCP and one for static IP, and both are alive.
Found on DSP2046_2018.2.pdf at "EthernetInterface 1.4.1" section with "Example Response" the multiple IPs is set as with Static IP and DHCP.
Wonder that on system using OpenBmc, behavior to have multiple IP addresses on an interface is correct or not?
Any technical documentation indicating this would be helpful to me?
Redfish response on my system if I set a Static IP and DHCP before, as below:
-- Regards,
HuyLe
I've observed that with one network interface I can use two IP addresses at the same time, one provided by DHCP and one for static IP, and both are alive.
Found on DSP2046_2018.2.pdf at "EthernetInterface 1.4.1" section with "Example Response" the multiple IPs is set as with Static IP and DHCP.
Wonder that on system using OpenBmc, behavior to have multiple IP addresses on an interface is correct or not?
Any technical documentation indicating this would be helpful to me?
Redfish response on my system if I set a Static IP and DHCP before, as below:
$ curl -X GET --user root:0penBmc --insecure -H "Content-Type: \
application/json" -H "If-Match: *" \
https://10.38.163.75/redfish/v1/Managers/bmc/EthernetInterfaces/eth0
{
"@odata.id": "/redfish/v1/Managers/bmc/EthernetInterfaces/eth0",
"@odata.type": "#EthernetInterface.v1_9_0.EthernetInterface",
"DHCPv4": {
"DHCPEnabled": true,
"UseDNSServers": true,
"UseDomainName": true,
"UseNTPServers": true
},
"DHCPv6": {
"OperatingMode": "Enabled",
"UseDNSServers": true,
"UseDomainName": true,
"UseNTPServers": true
},
"Description": "Management Network Interface",
"EthernetInterfaceType": "Physical",
"FQDN": "zask-dcscm",
"HostName": "zask-dcscm",
"IPv4Addresses": [
{
"Address": "10.38.163.75",
"AddressOrigin": "DHCP",
"Gateway": "10.38.163.1",
"SubnetMask": "255.255.255.0"
},
{
"Address": "10.38.163.82",
"AddressOrigin": "Static",
"Gateway": "10.38.163.1",
"SubnetMask": "255.255.255.0"
}
],
"IPv4StaticAddresses": [
{
"Address": "10.38.163.82",
"AddressOrigin": "Static",
"Gateway": "10.38.163.1",
"SubnetMask": "255.255.255.0"
}
],
"IPv6AddressPolicyTable": [],
"IPv6Addresses": [
{
"Address": "fe80::9ec2:c4f1:fe54:400a",
"AddressOrigin": "LinkLocal",
"PrefixLength": 64
}
],
"IPv6DefaultGateway": "fe80::82e0:1d1f:fe73:2cfc",
"IPv6StaticAddresses": [],
"IPv6StaticDefaultGateways": [],
"Id": "eth0",
"InterfaceEnabled": true,
"LinkStatus": "LinkUp",
"MACAddress": "1c:a2:c4:54:40:0a",
"MTUSize": 1500,
"Name": "Manager Ethernet Interface",
"NameServers": [
"10.68.19.90",
"10.68.19.91"
],
"SpeedMbps": 1000,
"StatelessAddressAutoConfig": {
"IPv6AutoConfigEnabled": true
},
"StaticNameServers": [],
"Status": {
"State": "Enabled"
}
}
-- Regards,
HuyLe