Cubieboard 有線網絡 固定IP、固定MAC地址 上網

我這裏路由器做了硬件地址綁定,需要固定ip和mac地址,記一下,下次重裝直接拷貝就完了。

root@cubieboard:~# cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
    address 192.168.1.98
    netmask 255.255.0.0
    gateway 192.168.1.1
    hwaddress ether 02:C9:06:C2:98:AB
root@cubieboard:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 219.146.1.66
nameserver 219.147.1.66


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章