From: "Tony Lee (李文富)" <Tony.Lee@quantatw.com>
To: "openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org>
Subject: RE: Switching to static network address issues
Date: Thu, 16 May 2019 06:22:21 +0000 [thread overview]
Message-ID: <1948c6f25ec94cb28fbb7927a42989f7@quantatw.com> (raw)
In-Reply-To: <988b05f0-4d72-cf00-b717-82759a6eb8ac@linux.vnet.ibm.com>
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/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.
> >>
next prev parent reply other threads:[~2019-05-16 6:22 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 (李文富) [this message]
2019-05-16 11:41 ` Troy Lee
2019-05-17 2:59 ` Tony Lee (李文富)
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=1948c6f25ec94cb28fbb7927a42989f7@quantatw.com \
--to=tony.lee@quantatw.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.