Switching to static network address issues

Troy Lee leetroy at gmail.com
Thu May 16 21:41:06 AEST 2019


Hi Tony,

Your situation is a bit different.

You'll have 5 seconds window to send all these settings (
ipsrc/ipaddr/defgw ipaddr)  through IPMI at once.
Then the network-manager of OpenBMC will correctly apply you setting
into system.
For example:
  ipmitool -H 10.10.15.206 -U root -P 0penBmc -I lanplus lan set 2 ipsrc static
  ipmitool -H 10.10.15.206 -U root -P 0penBmc -I lanplus lan set 2
ipaddr 10.10.9.3
  ipmitool -H 10.10.15.206 -U root -P 0penBmc -I lanplus lan set 2
netmask 255.255.0.0
  ipmitool -H 10.10.15.206 -U root -P 0penBmc -I lanplus lan set 2
defgw ipaddr 10.10.10.204


Otherwise, it will show the follow error message in journal log, and
it seems not recoverable from in-band IPMI.
  May 16 19:03:59 romulus systemd[1]: Started Network Service.
  May 16 19:03:59 romulus systemd-networkd[1261]: sit0: Could not
acquire IPv4 link-local address: Invalid argument
  May 16 19:04:00 romulus systemd-networkd[1261]: eth0: Could not set
route: Network is unreachable
  May 16 19:04:02 romulus systemd[1]: Starting Hostname Service...
  May 16 19:03:54 romulus ipmid[1169]: Failed to set network data

Hope this helps.

However, we have similar name :)

Thanks,
Troy Lee

--
Yu-Ting Lee (Troy Lee) <LeeTroy at gmail.com>

Tony Lee (李文富) <Tony.Lee at quantatw.com> 於 2019年5月16日 週四 下午2:23寫道:

>
> 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