EVE-NG配置靜態固定地址


 

#vim   /etc/network/interfaces 

修改以下內容: 

# The loopback network interface
auto lo
iface lo inet loopback 
# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet static #修改成static
    bridge_ports eth0
    bridge_stp off
    address 192.168.0.219        #配置IP地址和DNS netmask 255.255.255.0 gateway 192.168.0.1 dns-nameserver 114.114.114.114 

  

然后重啟網卡生效 

#/etc/init.d/networking  restart

 


免責聲明!

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



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