Switching to static network address issues

Tony Lee (李文富) Tony.Lee at quantatw.com
Thu May 16 16:22:21 AEST 2019


Hi there,
I also met an similar issue about switching network address from DHCP to static.
Here is my configuration steps:

1. ipmitool -H 10.10.15.206 -U root -P 0penBmc -I lanplus lan print 2
Set in Progress         : Set Complete
Auth Type Support       : MD5 
Auth Type Enable        : Callback : MD5 
                        : User     : MD5 
                        : Operator : MD5 
                        : Admin    : MD5 
                        : OEM      : MD5 
IP Address Source       : DHCP Address
IP Address              : 10.10.15.206
Subnet Mask             : 255.255.0.0
MAC Address             : 00:00:f7:a0:7f:f2
Default Gateway IP      : 10.10.10.204
802.1q VLAN ID          : Disabled
RMCP+ Cipher Suites     : 3,17
Cipher Suite Priv Max   : Not Available
Bad Password Threshold  : Not Available

2. ipmitool -H 10.10.15.206 -U root -P 0penBmc -I lanplus lan set 2 ipsrc static

3. root at gsj:~# cat /etc/systemd/network/00-bmc-eth1.network
[Match]
Name=eth1
[Network]
LinkLocalAddressing=no
IPv6AcceptRA=false
DHCP=false
Address=fe80::200:f7ff:fea0:7ff2/64
Gateway=10.10.10.204
[DHCP]
ClientIdentifier=mac
UseDNS=true
UseNTP=true
UseHostname=true
SendHostname=true

4. Set static ip
root at gsj:~# ipmitool lan set 2 ipaddr 10.10.9.3 
Setting LAN IP Address to 10.10.9.3

5. root at gsj:~# cat /etc/systemd/network/00-bmc-eth1.network
[Match]
Name=eth1
[Network]
LinkLocalAddressing=no
IPv6AcceptRA=false
DHCP=false
Address=fe80::200:f7ff:fea0:7ff2/64
Gateway=10.10.10.204
[DHCP]
ClientIdentifier=mac
UseDNS=true
UseNTP=true
UseHostname=true
SendHostname=true

But static IP doesn't work.
Is my step wrong?

> -----Original Message-----
> From: openbmc
> [mailto:openbmc-bounces+tony.lee=quantatw.com at lists.ozlabs.org] On
> Behalf Of Gunnar Mills
> Sent: Thursday, April 11, 2019 5:14 AM
> To: Ratan Gupta <ratagupt at linux.vnet.ibm.com>; openbmc at lists.ozlabs.org
> Subject: Re: Switching to static network address issues
> 
> On 4/10/2019 7:55 AM, Ratan Gupta wrote:
> 
> >
> > Can you take a look at what are the rest url which is being executed
> > underneath?
> >
> When the DHCP setting changes on the GUI (e.g. "OBTAIN AN IP ADDRESS
> AUTOMATICALLY USING DHCP" to "ASSIGN A STATIC IP ADDRESS"), the
> /xyz/openbmc_project/network/<interface>/attr/DHCPEnabled interface is
> called on "Save settings".
> 
> https://github.com/openbmc/phosphor-webui/blob/2f481e4cb83f0c72a9f3aa
> d11431e4abcf5d632c/app/common/services/api-utils.js#L428
> 
> Hope this helps.
> 
> >
> > On 10/04/19 3:39 PM, Troy Lee wrote:
> >> Hi William,
> >>
> >> This issue could be reproduce with WebUI or REST interface.
> >> 1. Starts up romulus-bmc qemu as normal, so the IP address is
> >> acquired from DHCP by default, let's say "10.1.1.2".
> >> 2. Open the browser and login to https://10.1.1.2/, 3. Switch to
> >> [Server Configuration] tab.
> >>      Then you will see the current setting is "OBTAIN AN IP ADDRESS
> >> AUTOMATICALLY USING DHCP".
> >> 4. Click on checkbox "ASSIGN A STATIC IP ADDRESS, and DO NOT CHANGE
> >> the IP address, leave it the same as DHCP IP address "10.1.1.2".
> >> 5. Click on "Save settings" button.
> >>



More information about the openbmc mailing list