Jump to content

No Internet Sharing with Static IP


arclights

Recommended Posts

Hi guys,

I have a little problem that had me scratching my head for a while now.

I am connecting to the pineapple through the eth0 interface of my PC using the wp5.sh script to setup the internet sharing.

When I use the standard settings (PC IP 172.16.42.42) everything is fine. But when I try to change the PC IP to the static IP 172.16.42.2 I loose the internet sharing. I know 172.16.42.2 is outside the dhcp ip allocation range, so maybe this is linked to the problem.

Has anyone an idea why I loose internet sharing with the PC IP 172.16.42.2 and how I can solve that ?

Thankx in advance

Cheers

Link to comment
Share on other sites

If you ssh to your Mk5 and check the route table (`route -n`) you will see that by default it's got a gateway route for 172.16.42.42. If you want to change the IP of your PC's IP and have the Internet continue to work for your Mk5 you will need to update the route table to point to the new gateway address.

# route del default gw 172.16.42.42

# route add default gw 172.16.42.2

Also make sure that /etc/resolv.conf points to some actual DNS servers (or to your PC) so you can resolve domain names.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...