mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* How to renew eth0 settings without doing a reset
@ 2017-01-25 14:53 Haris Papadopoulos
  2017-01-25 18:34 ` Ian Abbott
  2017-01-26 20:14 ` Uwe Kleine-König
  0 siblings, 2 replies; 3+ messages in thread
From: Haris Papadopoulos @ 2017-01-25 14:53 UTC (permalink / raw)
  To: barebox

Hi,

I am trying to configure a static ip address for my barebox.

I edit the file /env/network/eth0 and then I do saveenv.

Then I do ifup eth0. There is no ifdown command in barebox.

I noticed that the only way to make the new ip address effective is to
reset the board. However, I will be doing this process with a script
or maybe remotely.

Therefore, I would like to make the new address effective without a
reset. How is that possible?

Thanks
Haris

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to renew eth0 settings without doing a reset
  2017-01-25 14:53 How to renew eth0 settings without doing a reset Haris Papadopoulos
@ 2017-01-25 18:34 ` Ian Abbott
  2017-01-26 20:14 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Abbott @ 2017-01-25 18:34 UTC (permalink / raw)
  To: Haris Papadopoulos, barebox

On 25/01/17 14:53, Haris Papadopoulos wrote:
> Hi,
>
> I am trying to configure a static ip address for my barebox.
>
> I edit the file /env/network/eth0 and then I do saveenv.
>
> Then I do ifup eth0. There is no ifdown command in barebox.
>
> I noticed that the only way to make the new ip address effective is to
> reset the board. However, I will be doing this process with a script
> or maybe remotely.
>
> Therefore, I would like to make the new address effective without a
> reset. How is that possible?

Have you tried the ifup command's -f option to force it to reconfigure 
the interface?

I'm not sure when that option was added to barebox.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to renew eth0 settings without doing a reset
  2017-01-25 14:53 How to renew eth0 settings without doing a reset Haris Papadopoulos
  2017-01-25 18:34 ` Ian Abbott
@ 2017-01-26 20:14 ` Uwe Kleine-König
  1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2017-01-26 20:14 UTC (permalink / raw)
  To: Haris Papadopoulos; +Cc: barebox

On Wed, Jan 25, 2017 at 02:53:54PM +0000, Haris Papadopoulos wrote:
> Hi,
> 
> I am trying to configure a static ip address for my barebox.
> 
> I edit the file /env/network/eth0 and then I do saveenv.
> 
> Then I do ifup eth0. There is no ifdown command in barebox.
> 
> I noticed that the only way to make the new ip address effective is to
> reset the board. However, I will be doing this process with a script
> or maybe remotely.
> 
> Therefore, I would like to make the new address effective without a
> reset. How is that possible?

eth0.ipaddress=1.2.3.4

should work

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-26 20:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-25 14:53 How to renew eth0 settings without doing a reset Haris Papadopoulos
2017-01-25 18:34 ` Ian Abbott
2017-01-26 20:14 ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox