bartosz.tarnowski
Posts: 10
Joined: Thu Jun 18, 2015 8:16 pm

Internet over ETH/PPPoE

Sat Jun 20, 2015 2:01 pm

Hi everyone
I don't want to use access point but only my eth cable.
Internet provider has the list of MAC's and I changed my MAC in the PI with the following command:

Code: Select all

 sudo ifconfig eth0 down hw ether XX:XX:XX:XX:XX:XX 
And I changed the interface file

Code: Select all

 iface etho inet dhcp
                      hwaddress ether XX:XX:XX:XX:XX:XX

It works often but not always after reboot in the command line mode (not in the desktop mode).
Then I see my IP address and the ping command works.

But the following command doesn't works correctly. It builds the dependency tree with the success and also downloads few files
but next returns the "Failed to fetch" message because of some reasons. ( Size mismatch, No address associated with hostname)

Code: Select all

sudo apt-get install motion
When I start the desktop mode and turn on the WebBrowser the MAC address is changed. The previous MAC I seen in the command line before started the desktop mode in the ifconfig. After that the ping mode doesn't works.

I have PPPoE internet whit the login and password.
How can I use it on my PI with eth cable with my own changed MAC address.
How can i Iog in and make use of PPPoE internet connection on the PI?

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Internet over ETH/PPPoE

Sat Jun 20, 2015 4:24 pm

Greetings.
bartosz.tarnowski wrote:How can I use it on my PI with eth cable with my own changed MAC address.
First of all, please uninstall ifplugd with "sudo apt-get purge ifplugd". This evil program would keep messing up your network config with unknown reason. Well, might be I am a dumb who couldn't handle its reason. I spent MUCH time to deal with an inconstent IP problem.
Then I would suggest that eth0 should work in "manual" mode, not "dhcp". When you use PPPoE, your IP would be on a newly created PPP interface, for example, named ppp0. The eth0 would remain no IP. However, if you enable DHCP on eth0, it would keep sending DHCP requests out, which is not necessary. PPP would give you an IP, you don't need DHCP.
So I would write a /etc/network/interfaces like this:

Code: Select all

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual
I didn't tried to set another MAC. Man pages says manual mode takes no options. So if you tried "hwaddress" on "manual", I suggest you could try "static" mode and just fake some IP there either.
After you got this, let's go for PPPoE.

bartosz.tarnowski wrote:How can i Iog in and make use of PPPoE internet connection on the PI?
You need to "sudo apt-get install pppoeconf". It's a program for setting up PPPoE.
However there is an "egg and chicken" problem here: how could you do "apt-get" when you don't have a working Internet connection yet?
I don't know your situation, I suggest you could use another machine to do PPPoE temporarily, until you set up your Pi.
When you done with install process, just execute it with "sudo pppoeconf". Input your account info and keep everything default, there you go.

Return to “General discussion”