2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

linux ip コマンドのメモ

Last updated at Posted at 2013-05-17

IP アドレス

  • 追加: ip address add 192.168.0.1/24 broadcast 192.168.0.255 dev eth2
  • 削除: ip address del 192.168.0.1/24 dev eth2
  • broadcast を指定しないと 0.0.0.0 になることに注意

alias address

  • ip address add 172.16.0.1/24 broadcast 172.16.0.255 dev eth2 label eth2:0
  • ip address del 172.16.0.1/24 dev eth2 label eth2:0

経路

  • ip route route add 10.0.0.0/24 via 192.168.0.1 dev eth2
  • ip route route del 10.0.0.0/24 via 192.168.0.1 dev eth2
  • ip route get 173.194.38.120
    -- 173.194.38.120 宛の経路の参照
2
4
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
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?