armbian靜態ip設置


cp /etc/network/interfaces /etc/network/interfaces.backup
sudo nano /etc/network/interfaces
# Ethernet adapter 0
auto eth0
allow-hotplug eth0
#no-auto-down eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
#dns-nameservers 1.1.1.1 1.0.0.1
reboot
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
hwaddress ether 9A:1F:2B:A5:0C:62 
pre-up ifconfig eth0 hw ether 9A:1F:2B:A5:0C:62
#靜態mac網絡參數備份

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM