Wednesday, March 5, 2014

How to connect to Internet with PPPoE for Fedora 20

You want to connect network through PPPoE to get fixed IP address provided by ISP. Because Fedora 20 doesn't have a GUI to setup PPPoE setting, you must to manually specify it.

1. Find your network interface name.

ifconfig

You find that p3p1, for example, is your interface name. It is different with eth0 for the old Fedora version for some reasons.

2. Setup PPPOE settings.

pppoe-setup

Please specify your network interface to p3p1. Please remember to specify DNS otherwise Web Browser cannot work. You can refer the page for the details. http://blog.xuite.net/michaelr/linux/69281107

3. Connect PPPOE.

/sbin/ifup ppp0

Or

adsl-start
4. Check if the PPPoE is workable.

/sbin/pppoe-status

5. Disconnect PPPoE.

/sbin/ifdown ppp0

It is danger to use Python shutil.rmtree () to remove a symbolic link directory.

It is danger to use Python shutil.rmtree () to remove a symbolic link directory in Windows because the function recursively remove files under a given directory. We should replace it with.

os.system ("rd \"%s\"" % Dir)