實驗室網(wǎng)絡(luò)認證需綁定MAC地址,但K3C的官改未能提供可視化入口,嘗試從SSH修改/etc/config/network 文件,但重啟后會恢復(fù)原狀。
最近研究出來一個辦法,選擇高級設(shè)置,在啟動任務(wù)項目當中添加以下代碼,保存后重啟
假如是通過eth1進行認證,就對eth1進行修改:
ifconfig eth1 down # 關(guān)閉網(wǎng)卡
ifconfig eth1 hw ether xx:xx:xx:xx:xx:xx # 修改MAC地址,xx:xx:xx:xx:xx:xx為認證系統(tǒng)綁定的mac地址
ifconfig eth1 up # 開啟網(wǎng)卡