Find the answer to your Linux question:
Results 1 to 4 of 4
Hello @coopstah13 you are smart guy, so I hope you can help me with similar issue. I have Ubuntu LTS 10 configured on hyperv static configuration from provider: PHP Code: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2012
    Posts
    3

    Networking issues in Ubuntu


    Hello @coopstah13 you are smart guy, so I hope you can help me with similar issue.

    I have Ubuntu LTS 10 configured on hyperv

    static configuration from provider:
    PHP Code:
    address178.32.201.254
    netmask
    255.255.255.0
    gateway
    46.105.118.254
    dns
    213.186.33.99 
    When I enter address and netmask in (/etc/network/interfaces)
    PHP Code:
    address178.32.201.254
    netmask
    255.255.255.0 
    and run /etc/init.d/networking restart command works fine, but if I add the gateway
    PHP Code:
    address178.32.201.254
    netmask
    255.255.255.0
    gateway
    46.105.118.254 
    and run /etc/init.d/networking restart I got the error
    PHP Code:
    Reconfiguring network interfaces...SIOCDELRTNo such process
    SIOCADDRT
    No such process
    Failed to bring up eth0

    This configuration works fine under windows although it displays warning which may by the clue why this is not working on the Ubuntu.
    PHP Code:
    Warning The default gateway is not on the same network
    segment 
    (subnetthat is defined by the IP address 
    and subnet mask

  2. #2
    Linux User
    Join Date
    Dec 2009
    Posts
    264
    Code:
    address: 178.32.201.254
    netmask: 255.255.255.0
    gateway: 46.105.118.254
    Sry this can't be right.

    Your Network is: 178.32.201.0
    All devices in your network will start with the same 3 digits.
    The Gateway needs to be in that range too.

  3. #3
    Just Joined!
    Join Date
    Apr 2012
    Posts
    3
    Quote Originally Posted by zombykillah View Post
    Code:
    address: 178.32.201.254
    netmask: 255.255.255.0
    gateway: 46.105.118.254
    Sry this can't be right.

    Your Network is: 178.32.201.0
    All devices in your network will start with the same 3 digits.
    The Gateway needs to be in that range too.
    I was also sceptical about this configuration, that's why I have installed windows on virtual machine and verified it's working fine. Although this may seem incorrect it works on windows so it means there must be a way to make it work on Ubuntu.

  4. #4
    Just Joined!
    Join Date
    Apr 2012
    Posts
    3
    Possible

    solution from Ubuntu forum (unfortunately I cannot post the link):

    Firstly, gateway is not in the same subnet or totally different from the subnet of the IP address is possible. I tried to research for help in different places and 30% of people who answered with "It's impossible", and this recognition of network is incorrect.

    After a lot of researching, Bab1 provide me a "hack" which is a SysV init style script originally from here. Unfortunately it is not applicable with Lucid. I read the script and used the command manually to add the gateway address as a host address and then make this address as a gateway. "What the user did was add a route from his computer to the default gateway router and then declared it the default gateway." quoted from bab1.


    PHP Code:
    route add -host x.x.x.x dev eth0
    route add 
    default dev eth0 gw x.x.x.
    * x.x.x.x is the gateway address

    This works until restart, but it's good start

Posting Permissions

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