Advertisement

Linux双接口网络配置问题

阅读量:

环境

eth0接口负责与外部网络建立连接,而eth1接口则用于接入内部网络。在实际测试过程中,发现经由eth0接口无法实现对外部网络的连通性检测。

查看网络配置文件内容,执行命令cat /etc/network/interfaces

复制代码
 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

    
  
    
 # The loopback interface
    
 auto lo
    
 iface lo inet loopback
    
  
    
 auto eth0
    
 iface eth0 inet static
    
    address 172.32.11.60
    
    netmask 255.255.255.0
    
    network 172.32.11.1
    
    gateway 172.32.11.1
    
  
    
 auto eth1
    
 iface eth1 inet static
    
    address 192.168.254.241
    
    netmask 255.255.255.240
    
    network 192.168

全部评论 (0)

还没有任何评论哟~