PPP (modem) networking in Fedora

20 Mar, 2011  |  Written by  |  under Uncategorized

Well, I’ve recently switched from a cable modem (in bridge mode) to an ADSL modem (also in bridge mode).

Placing the modem in bridge mode gives me lots of advantages because my Linux router computer becomes the computer that has the external IP address. That allows me to easily create servers (http, opendns, vpn) on my router and view all network traffic into and out from my internet connection.

It adds some headaches too – mostly having to set firewall rules (I use the excellent FireHol).

The cable modem was great because it gave me a DHCP server that I connected to, the IP it gave me was the world-viewable IP and any traffic I sent out that interface went to the Internet.

The ADSL modem is a little different. I need to set and keep a PPPoE connection alive and ppp0 is where all traffic is sent.

Not a big deal, except with Fedora 14, I couldn’t get the ppp0 network to startup on boot. I installed rp-pppoe (yum install rp-pppoe) and set it up with pppoe-setup. Nice and simple. However on a reboot the network didn’t come up. It started when I issued pppoe-start, but I didn’t want to do it manually. Searching the logs I saw:

NetworkManager[2171]: ifcfg-rh: error: Unknown connection type 'xDSL'

Looks like Network Manager doesn’t like the older-style ifcfg-ppp0 file created by pppoe-setup, so ignores the file.

The simplest method to fix this seems to be disabling Fedora’s Network Manager. That will also give me an advantage in stopping the box from reloading it’s network settings whenever I change the ifcfg- files (which usually ends up making the box un-accessible remotely to me as I have a habit of saving while part way through editing).

To remove Network Manager and instead use the older Network service to start the network:

yum remove NetworkManager
service network start
chkconfig network on

After a reboot to test, ppp0 (and the other interfaces) came up fine. Beauty!

One Response so far | Have Your Say!

  1. Brian Smith  |  November 7th, 2012 at 6:36 am #

    don’t know why I didn’t think of removing the GUI NetworkManager … network has always worked for me before … thanks for the advice … I followed it and my server is working well again

    wish linux would quit following windows into gui wasteland

    Brian Smith - Gravatar

Leave a Feedback

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>