ubuntu 雙網卡及路由配置


auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 211.x.x.x
        netmask 255.255.255.x
        gateway 211.x.x.x
        dns-nameservers 114.114.114.114 119.29.29.29

auto eth1
iface eth1 inet static
        address 10.16.16.15
        netmask 255.255.255.0
        up route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.16.16.254 eth1


免責聲明!

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



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