その1の続きです
# /sbin/ifconfig
-bash: /sbin/ifconfig: そのようなファイルやディレクトリはありません
・・・まじか
# ip a
だそうな。あ、インストールオプションによってはifconfigも使える場合があります
いままで | CentOS7 |
---|---|
ifconfig -a | ip a |
ifconfig eth0 | ip a show dev eth0 |
ifconfig eth0 up ifconfig eth0 down |
ip l set eth0 up ip l set eth0 down |
route -n | ip r |
arp -n | ip n |
firewalld関連
指定IPのみ許可する
# firewall-cmd –permanent –add-source=192.168.0.0/24 –zone=public
# firewall-cmd –reload
Leave a Reply