V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yxqcyl
V2EX  ›  问与答

ubuntu 10.04 配置网卡文件 /etc/network/interfaces

  •  
  •   yxqcyl · 2013-10-04 19:00:54 +08:00 · 2235 次点击
    这是一个创建于 3866 天前的主题,其中的信息可能已经有所发展或是发生改变。
    auto lo
    iface lo inet loopback

    auto eth0
    iface eth0 inet static
    address 192.168.1.44
    netmask 255.225.225.0
    gateway 192.168.1.1


    然后192.168.1.1可以ping通,8.8.8.8不可以,提示network i sunreachable


    听人说手动加网关 route add default gw 192.168.1.1
    然后就可以ping通8.8.8.8了


    求解这是为什么
    1 条回复    1970-01-01 08:00:00 +08:00
    yxqcyl
        1
    yxqcyl  
    OP
       2013-10-04 19:17:24 +08:00
    擦 掩码配错了。。。。。。。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2445 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:35 · PVG 19:35 · LAX 04:35 · JFK 07:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.