ubuntu 双网卡配置

柔情只为你懂 2022-08-13 15:57 326阅读 0赞

vim /etc/network/interfaces

  1. auto lo
  2. iface lo inet loopback
  3. # The primary network interface
  4. auto eth0
  5. iface eth0 inet static
  6. address 10.XXX.XXX.XXX
  7. netmask 255.0.0.0
  8. network 10.0.0.0
  9. broadcast 10.255.255.255
  10. gateway 10.0.0.2
  11. # dns-* options are implemented by the resolvconf package, if installed
  12. dns-nameservers XXX.XXX.XXX.XXX
  13. auto eth1
  14. iface eth1 inet static
  15. address 172.XXX.XXX.XXX
  16. netmask 255.255.252.0

发表评论

表情:
评论列表 (有 0 条评论,326人围观)

还没有评论,来说两句吧...

相关阅读

    相关 ubuntu网卡准备配置

    [ubuntu双网卡准备配置][ubuntu] 近日有个需求,交换机有两台,做了堆叠,服务器双网卡,每个分别连到一台交换机上。这样就需要将服务器的网卡做成主备模式,以增加安全