Results 1 to 9 of 9

Thread: [SOLVED] Internet Connection Sharing - Client No IP

  1. #1
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    [SOLVED] Internet Connection Sharing - Client No IP

    I have set up internet connection sharing, but the client cannot get an IP address. The network manage shows it connected but there is no IP address. I have tried manually setting it up and using dhcp. Any ideas? I am running Ibex on both machines. Thanks.
    |

  2. #2
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Internet Connection Sharing - Client No IP

    Quote Originally Posted by spikoley View Post
    I have set up internet connection sharing, but the client cannot get an IP address. The network manage shows it connected but there is no IP address. I have tried manually setting it up and using dhcp. Any ideas? I am running Ibex on both machines. Thanks.
    Have you tried manually assigning the computers ip address. Click on networks, properties, from the drop down static ip. Make the the 2 ip addresses are unique.

  3. #3
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Internet Connection Sharing - Client No IP

    Quote Originally Posted by drubin View Post
    Have you tried manually assigning the computers ip address. Click on networks, properties, from the drop down static ip. Make the the 2 ip addresses are unique.
    Yes I have. Do I need a crossover cable if I am hooking up ethernet to ethernet?
    |

  4. #4
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Internet Connection Sharing - Client No IP

    Quote Originally Posted by spikoley View Post
    Yes I have. Do I need a crossover cable if I am hooking up ethernet to ethernet?
    Cross over is only from computer to computer or hub to hub, but now days the hubs are clever enough to switch them around so you only need normal cables.

  5. #5
    Join Date
    Jul 2008
    Beans
    224

    Re: Internet Connection Sharing - Client No IP

    are you using a router or hub to connect the pc's,
    When you click on: Places-network. What does it show?

  6. #6
    Join Date
    Feb 2008
    Location
    Cape Town, South Africa
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Internet Connection Sharing - Client No IP

    Ok best idea I can think about is to do post the output of these commands

    Code:
    sudo ifconfig -a
    Code:
    sudo cat /etc/resolv.conf

  7. #7
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Internet Connection Sharing - Client No IP

    Quote Originally Posted by drubin View Post
    Cross over is only from computer to computer or hub to hub, but now days the hubs are clever enough to switch them around so you only need normal cables.
    I am connecting two computers directly. It sounds like this is the issue. Hopefully tomorrow I will have the time to pick up a crossover cable. Thanks for your help.
    |

  8. #8
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Internet Connection Sharing - Client No IP

    It was the cable. I got a cross over cable and now both machines can communicate with each other. But, when they are connected neither of them can reach the internet. When I unplug the connection, the computer connected to the internet can surf. I connect the 2 computers together and both of them cannot reach the internet. This sounds like a route issue. Any ideas on how to solve it? Thanks.
    |

  9. #9
    Join Date
    Apr 2008
    Beans
    490
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Internet Connection Sharing - Client No IP

    Got it working. I had to run these commands again.

    Code:
    iptables -t nat -F
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    BTW, eth0 = the interface connected to the internet. This post resolved it.
    |

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
  •