LoginSignup
0
1

More than 5 years have passed since last update.

無線LANで固定IPアドレスを設定する

Last updated at Posted at 2017-01-29

この記事は、無線LANを使用した場合に、決まったIPアドレスの割り当てを行う方法について、記載したものです。

今回は、Ubuntu desktop 16.10 のノートPC に IPアドレス 192.168.179.2 を割り振る場合についての方法を記載します。

・始めに試して、ダメだったもの:
/etc/network/interfaces に 以下の記載を追加して、ifdown、コマンドを行ったが、うまくいきませんでした。
allow-hotplug wlp1s0
iface wlp1s0 inet
address 192.168.179.2
netmask 255.255.255.0
network 192.168.179.1
geteway 192.168.179.1

ターミナルより、ifdown のコマンドを入力すると、以下のエラーとなり、設定できません。
~# ifdown wlp1s0
unknown or method and no inherits keyword specified

・いろいろ調べたところ、以下のコマンドを入力することで、設定できました。
~# ifconfig wlpls0 down
~# ifconfig wlpls0 192.168.179.2 netmask 255.255.255.0 up

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1