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