yxqcyl
V2EX  ›  问与答

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

  •  
  •   yxqcyl · Oct 4, 2013 · 2684 views
    This topic created in 4648 days ago, the information mentioned may be changed or developed.
    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 replies    1970-01-01 08:00:00 +08:00
    yxqcyl
        1
    yxqcyl  
    OP
       Oct 4, 2013
    擦 掩码配错了。。。。。。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1668 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 6b34f497 · 32ms · UTC 16:21 · PVG 00:21 · LAX 09:21 · JFK 12:21
    ♥ Do have faith in what you're doing.