/etc/network/interfaces 主要是用來對網路介面做設定
例如 :
iface eth0 inet static // 設定固定 ip
iface eth0 inet dhcp // ip 由 dhcp 方式取得
下面這樣寫法 , 不會執行 up 後面的指令 , 還不清楚為什麼
把
iface eth1 inet6 static
address 2001:b021:34:007f::1
netmask 64
放到 up command 後面
這樣就 up 後面的指令就會被執行
更多詳細可參考 man interfaces
待續
看完文章請按 讚 or 推 , 感謝啦 ~