We know that if the Raspberry pi installed the official Raspbian system , the default is to set the wired network port to DHCP mode, that is, can automatically obtain IP, if the network directly connected to the home wireless router, the Raspberry Pi can be normal internet. However, if you do not have a router in your home, only wired broadband, and through the operator's account and password to the Internet, then your Internet access is the PPPoE dial-up internet access. At this point, if you want the Raspberry Pi to surf the internet, the Raspberry Pi will need to do some necessary configuration. Follow the steps below to make it easy for your Raspberry Pi to dial up the internet with PPPoE.
1. Installing PPPoE, pppoeconf, and Pppstatus
sudo install PPPoE pppoeconf Pppstatus
2. Configure PPPoE
Pppoeconf
Run the pppoeconf command, then, click "Yes" all the way, and of course you will be prompted to enter your PPPoE Internet account number and password.
3. See if there is a build ppp0
Ifconfig
Running the ifconfig command will get something like this:
Eth0 Link encap:ethernet HWaddrxx: 0f:1f:cd:2array:ae inet6 addr:fe80::20f:1fff:fecd:2arrayae/ -scope:link up broadcast RUNNING multicast MTU: theMetric:1RX Packets:7024Errors0Dropped0Overruns:0Frame0TX Packets:1330Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:274243array (2.6MiB) TX Bytes:20651array (201.6KiB) Interrupt: Oneeth0:avah Link encap:ethernet HWaddrxx: 0f:1f:cd:2array:ae inet addr:16array.254.6.1array1 Bcast:16array.254.255.255Mask:255.255.0.0Up broadcast RUNNING multicast MTU: theMetric:1Interrupt: Onelo Link encap:local Loopback inet addr:127.0.0.1Mask:255.0.0.0Inet6 Addr: ::1/ -scope:host up LOOPBACK RUNNING MTU:16436Metric:1RX Packets:1382Errors0Dropped0Overruns:0Frame0TX Packets:1382Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen:0RX Bytes:104872(102.4KiB) TX Bytes:104872(102.4KiB) ppp0 Link encap:point-to-Point Protocol inet addr:218.85.21.75P-t-p:202.101. Arrayarray.13array Mask:255.255.255.255Up pointopoint RUNNING noarp multicast mtu:14array2 Metric:1RX Packets:1108Errors0Dropped0Overruns:0Frame0TX Packets:1188Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen:3RX Bytes:815436(7array6.3KiB) TX Bytes:1581array8 (154.4KiB)
As you can see, the ppp0 has been produced, congratulations, your Raspberry Pi has been able to surf the internet normally.
Raspberry Pi realizes PPPoE dial-up Internet