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

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

  •  
  •   yxqcyl · 2013 年 10 月 4 日 · 2572 次点击
    这是一个创建于 4586 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 月 4 日
    擦 掩码配错了。。。。。。。。。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2709 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 12:38 · PVG 20:38 · LAX 05:38 · JFK 08:38
    ♥ Do have faith in what you're doing.