Results 1 to 4 of 4

Thread: why no connection to default gateway

  1. #1
    Join Date
    Feb 2012
    Beans
    1

    Question why no connection to default gateway

    Good afternoon,
    I am working on an HP server using Ubuntu.
    In the file "/etc/network/interfaces" there is the definition of eth0, similar to the following:
    iface eth0 inet static
    address xxx.xxx.xxx.xxx
    netmask 255.255.255.0
    gateway AAA.BBB.CCC.1

    All of this information is correct.

    When I do a "ifconfig -a", all information seems to be correct (and the interface is mentioned as "UP").
    However when I do a "ping AAA.BBB.CCC.1", the result is NOK.

    Does anybody have an idea where I need to look for solving this issue? (are there other files that need to be modified in order to ping a default gateway?)

    Thanks
    Dominique

  2. #2
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    8,761
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: why no connection to default gateway

    Quote Originally Posted by scampsd View Post
    address xxx.xxx.xxx.xxx
    netmask 255.255.255.0
    gateway AAA.BBB.CCC.1
    Is the gateway address in the same subnet as the ethernet adapter? A machine in 10.1.1.0/24 can only reach a default gateway with an address like 10.1.1.1.

    In other words "AAA.BBB.CCC" has to be the same as the first three octets in "xxx.xxx.xxx.xxx" if you have a 255.255.255.0 netmask.

    If you run the command "route -n" what do you get in response? (If you post the response please put it in [code][/code] tags.)
    Last edited by SeijiSensei; February 17th, 2012 at 05:04 PM.

  3. #3
    Join Date
    Aug 2008
    Location
    Washington DC
    Beans
    2,186
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: why no connection to default gateway

    After a ping attempt, See if the default has an entry in the ARP table.

    Code:
    cat /proc/net/arp

  4. #4
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: why no connection to default gateway

    ICMP (ping) could be blocked from the router?
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •