<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Any if-pre-up rule?<br>
    <br>
    #<br>
    <br>
    On 02/14/2011 12:32 PM, Hetz Ben Hamo wrote:
    <blockquote
      cite="mid:AANLkTimkDRZ1COneYfnhe979tLqrLeOARj-ohJHkLQKc@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I'm getting some really weird error, even though the
          network on the machine works well.</div>
        <div>When I'm doing: "service network restart" or "ifup eth0",
          I'm getting a message: RTNETLINK answers: Network is
          unreachable.</div>
        <div><br>
        </div>
        <div>It is reachable. route's output is perfectly ok, the
          machine can access the net and I can access it from outside.
          DNS works, ping works etc..</div>
        <div><br>
        </div>
        <div>Looking at /var/log/messages, all I see is:</div>
        <div><br>
        </div>
        <div>
          <div>Feb 14 13:23:00 testing23 kernel: eth0: intr type 2, mode
            0, 1 vectors allocated</div>
          <div>Feb 14 13:23:00 testing23  kernel: eth0: NIC Link is Up
            10000 Mbps</div>
          <div><br>
          </div>
          <div>Here is my ifcfg-eth0 (it's a virtual machine, so the
            check_link stuff is what vmware added)</div>
          <div><br>
          </div>
          <div>DEVICE=eth0</div>
          <div>ONBOOT=yes</div>
          <div>USERCTL=no</div>
          <div>BOOTPROTO=none</div>
          <div>NETMASK=255.255.255.224</div>
          <div>IPADDR=82.XXX.XXX.203</div>
          <div>PEERDNS=no</div>
          <div><br>
          </div>
          <div>check_link_down() {</div>
          <div>return 1;</div>
          <div>}</div>
          <div>HWADDR=00:50:56:a3:00:18</div>
          <div>GATEWAY=82.XXX.XXX.193</div>
          <div>TYPE=Ethernet</div>
          <div><br>
          </div>
          <div>Any suggestions?</div>
          <div><br>
          </div>
          <div>Thanks,</div>
          <div>Hetz</div>
          <div><br>
          </div>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Linux-il mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a>
<a class="moz-txt-link-freetext" href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a>
</pre>
    </blockquote>
  </body>
</html>