在 Linux 下指令 /sbin/ifconfig | ifconfig
| 修改的參數 | 設定檔與重要啟動腳本 | 觀察結果的指令 |
| IP相關參數 | /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/init.d/network restart |
ifconfig (IP/Netmask) route -n (gateway) |
| DNS | /etc/resolv.conf | dig www.google.com |
| 主機名稱 | /etc/sysconfig/network /etc/hosts |
hostname (主機名) ping $(hostname) reboot |
參考來源:鳥哥的Linux私房菜

0 留言