User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Internet doesn't working after changing dhcpcd.conf

Mon Feb 13, 2017 8:03 pm

If you want to bridge the WiFi to the real ethernet you really need to your Raspberry Pi to run with DHCP. It will then get an address assigned from the DHCP server at 192.168.1.1 and that will be the gateway address.

Once you've got that working look at the network and you should be able to determine how to set up a static address and routing to your gateway router.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Internet doesn't working after changing dhcpcd.conf

Mon Feb 13, 2017 8:03 pm

goktugk97 wrote: I am using "the IP" address what i was using at home.
But now I changed place and It started to not working.I post the error here.People suggested me to use a static ip.So I used "the IP".In windows the ethernet network has IPv4 192.168.137.1 . After I've started to using a static ip The problem occured.
To the other end of the cable my laptop is pluged.
The router is my laptop I think.I opened the "share the internet"
I don't have any DCHP server.
I'am using made in china power adaptor.
Now we are getting to the real problem and I can not really help you because this is something I have never done. One thing that I do not understand is how your laptop connects to the internet, are you using WiFi and what is the IP-address ? You need somebody who can help with a direct ethernet cable connection to a windows laptop with internet sharing.
The road to insanity is paved with static ip addresses

goktugk97
Posts: 16
Joined: Thu Feb 09, 2017 9:20 pm

Re: Internet doesn't working after changing dhcpcd.conf

Mon Feb 13, 2017 8:09 pm

DougieLawson wrote:If you want to bridge the WiFi to the real ethernet you really need to your Raspberry Pi to run with DHCP. It will then get an address assigned from the DHCP server at 192.168.1.1 and that will be the gateway address.

Once you've got that working look at the network and you should be able to determine how to set up a static address and routing to your gateway router.
I was using internet with no problem with "shared internet" over ethernet when I was at home.But changing the internet of laptop broke it.Can't I restore it without changing dhcpcd.conf.

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Internet doesn't working after changing dhcpcd.conf

Mon Feb 13, 2017 8:10 pm

The road to insanity is paved with static ip addresses

Ernst
Posts: 1334
Joined: Sat Feb 04, 2017 9:39 am
Location: Germany

Re: Internet doesn't working after changing dhcpcd.conf

Mon Feb 13, 2017 10:15 pm

I installed ICS on my notebook running Windows 7 professional sharing the Wifi interface with the notebook ethernet interface as the private network for sharing. The ethernet interface was assigned the IP-address 192.168.137.1. Connected a Pi configured for dhcp with a direct cable to my notebook. The Pi was assigned an IP-address 192.168.137.58, router was configured with 192.168.137.1, /etc/resolv.conf was updated with name server 192.168.137.1.

Ping to 8.8.8.8 was successful, internet access failed with name server 192.168.137.1, after changing /etc/resolv.conf to use name server 8.8.8.8 access to internet was successful.

Reboot of notebook because of the dns problem (first reboot after ICS configuration), /etc/resolv.conf was reset to use 192.168.137.1 (as expected), ping to 8.8.8.8 successful, access to internet successful.

As DougieLawson said: configure the Pi to DHCP, do not use static addresses. What I add is that it may be worthwhile to reboot your laptop if the WiFi connection was changed.
The road to insanity is paved with static ip addresses

goktugk97
Posts: 16
Joined: Thu Feb 09, 2017 9:20 pm

Re: Internet doesn't working after changing dhcpcd.conf

Tue Feb 14, 2017 7:48 pm

I changed everything to default.Pluged the ethernet cable.Used arp -a on my windows laptop.Find the ip of raspberry and connected to it.For now it seems it is working.

Return to “Troubleshooting”