Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@Morihaya

[rancherOS]ネットワークのリスタートの方法

More than 3 years have passed since last update.

rancherOSでいわゆるservice network restartとかsystemctl restart networkを実行する方法です。
※本記事はrancherOS 1.1.0で検証しています

コマンド

sudo ros service restart network

実行例

[rancher@morihaya-rancher ~]$ sudo ros service restart network
ERRO[0000] non-200 http response: 404                   
INFO[0000] Project [os]: Restarting project             
INFO[0000] [0/19] [network]: Restarting                 
INFO[0001] [0/19] [network]: Restarted                  
INFO[0001] Project [os]: Project restarted     

ERRO[0000] non-200 http response: 404 が出てますが特に影響なかったので気にしない。。。

どんなときに必要になるのか

複数のNICを持ったサーバでrancherOSを起動したところ、一部のNICだけDHCPでIPが取れなかった時に「OS再起動するほどじゃないので、ネットワークだけリスタートしたい><」となりました。

0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
oisix
こだわりの有機野菜や無添加の自然食品など「体に良くて美味しい食品」を販売するECサイト「Oisix(おいしっくす)」を開発・運営しています。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?