All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tony Lee (李文富)" <Tony.Lee@quantatw.com>
To: Troy Lee <leetroy@gmail.com>
Cc: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: RE: Switching to static network address issues
Date: Fri, 17 May 2019 02:59:48 +0000	[thread overview]
Message-ID: <e60ea53004c44cd5b1442d77a4b7ee40@quantatw.com> (raw)
In-Reply-To: <CAN9Jwz2RjPwQ-0asohxTT8pCy1nbpwdzgB-e-ka4vx=by9c-7w@mail.gmail.com>

Hi Troy,

It's work! Thank you for your help.

Thanks
Tony

> -----Original Message-----
> From: Troy Lee [mailto:leetroy@gmail.com]
> Sent: Thursday, May 16, 2019 7:41 PM
> To: Tony Lee (李文富) <Tony.Lee@quantatw.com>
> Cc: openbmc@lists.ozlabs.org
> Subject: Re: Switching to static network address issues
> 
> 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@gmail.com>
> 
> Tony Lee (李文富) <Tony.Lee@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@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@gsj:~# ipmitool lan set 2 ipaddr 10.10.9.3 Setting LAN IP Address
> > to 10.10.9.3
> >
> > 5. root@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@lists.ozlabs.org] On
> > > Behalf Of Gunnar Mills
> > > Sent: Thursday, April 11, 2019 5:14 AM
> > > To: Ratan Gupta <ratagupt@linux.vnet.ibm.com>;
> > > openbmc@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/2f481e4cb83f0c72a9f3a
> > > a
> > > 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.
> > > >>
> >

      reply	other threads:[~2019-05-17  2:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-10  9:35 Switching to static network address issues Troy Lee
2019-04-10  9:45 ` William Kennington
2019-04-10 10:09   ` Troy Lee
2019-04-10 12:55     ` Ratan Gupta
2019-04-10 21:14       ` Gunnar Mills
2019-05-16  6:22         ` Tony Lee (李文富)
2019-05-16 11:41           ` Troy Lee
2019-05-17  2:59             ` Tony Lee (李文富) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e60ea53004c44cd5b1442d77a4b7ee40@quantatw.com \
    --to=tony.lee@quantatw.com \
    --cc=leetroy@gmail.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.