Help us understand the problem. What is going on with this article?

NetworkManagerでDHCPサーバーからIPを取得できない時

More than 5 years have passed since last update.

Fedora 21 Serverをインストール後、DHCPからIPv4を拾えなかったので調べてみた。

https://wiki.archlinux.org/index.php/NetworkManager_%28%E6%97%A5%E6%9C%AC%E8%AA%9E%29#dhclient_.E3.81.A8_DHCP_.E3.81.AB.E9.96.A2.E3.81.99.E3.82.8B.E5.95.8F.E9.A1.8C

問答無用でまずこれを試せ、って感じで書いてあるところをみると、よくある問題なのだろう。確かにnmcli c show ethdevすると、この設定は空になっている。MACアドレスの前に01を付けたものをIDに設定する:

nmcli c modify ethdev ipv4.dhcp-client-id 01:00:ab:cd:ef:12:34

反映には再起動が必要らしいので、そのあと:

nmcli c down ethdev
nmcli c up ethdev

ステータスは:

nmcli c show ethdev

で確認できる。ip addressでIPを確認するなど。自分の場合は再起動しなくてもIP取ってくれた(ような気がする)。

ついでにnmcliの使い方も勉強できて一石二鳥だった。ifconfigなんてないし、vi /etc/sysconfig/network-scripts/ifcfg-ethdevは今時いじるものではないのでちゅういだ。あとnetstatss。これはテストにでる。

makisyu
Give me a cup of coffee or tea, not beer. Mainly Ph.D student learning bioinformatics, sometimes infrastructure and cloud engineer
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした