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