pppoe on ubuntu

ubuntu16.04 amd64
(ok under i7pc, fail under i7tp

1
2
3
4
5
6
7
8
9
10
11
12
sudo -s
apt-get install pppoeconf traceroute curl wget
pppoeconf # xxxxxxxx@hient.net aaaaaaaa (fixed ip in hinet: xxxxxxxx@ip.hinet.net
poff # poff -a (if encounter any error
pon dsl-provider
plog
ifconfig
#traceroute ptt.cc
#nano /etc/network/interfaces
route add default dev ppp0 # set as default routing.
curl ipinfo.io # confirm the default routing works
ifconfig ppp0 && poff && pon dsl-provider && ifconfig ppp0 # force renewing pppoe ip