Skip to content

Instantly share code, notes, and snippets.

@routerman
routerman / file0.txt
Created August 11, 2016 20:40
Linuxで固定IP設定(設定ファイル・コマンド) ref: http://qiita.com/routerman/items/4d19b3084fa58723830c
$ ip a #"address"は短縮可
$ ip address show dev eth0 #NIC指定表示
$ ifconfig #起動中のNICを表示
$ ifconfig -a #DOWN中のNICも表示
$ ifconfig eth0 #NIC指定表示
$ ping 192.168.11.1 #ゲートウェイにパケットが届くことを確認
$ ping 8.8.8.8 #外部ネットワークのDNSサーバにパケットが届くことを確認
$ ping google.com #名前解決されることを確認