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

posted @ 2018-09-10 14:43  温迪军  阅读(3643)  评论(0编辑  收藏  举报