[arch-general] netcfg pppoe 'error sending pppoe packet: Network is down'
Hi :) if I run (as root, there anyway still is no user) 'netcfg pppoe' I get 'error sending/receiving pppoe packet: Network is down'. I never set up a wired pppoe connection manually before. Cheers! Ralf PS: I've seen that there are 2 entries to edit and one might or might not be a typo. Perhaps I'm missing much more ;). # # /etc/rc.conf - Main Configuration for Arch Linux # # ----------------------------------------------------------------------- # LOCALIZATION # ----------------------------------------------------------------------- # # [snip] LOCALE="en_US.UTF-8" DAEMON_LOCALE="no" HARDWARECLOCK="localtime" TIMEZONE="Europe/Berlin" KEYMAP="de-latin1" CONSOLEFONT= CONSOLEMAP= USECOLOR="yes" # ----------------------------------------------------------------------- # HARDWARE # ----------------------------------------------------------------------- # # [snip] MODULES=() # Udev settle timeout (default to 30) UDEV_TIMEOUT=30 # Scan for FakeRAID (dmraid) Volumes at startup USEDMRAID="no" # Scan for BTRFS volumes at startup USEBTRFS="no" # Scan for LVM volume groups at startup, required if you use LVM USELVM="no" # ----------------------------------------------------------------------- # NETWORKING # ----------------------------------------------------------------------- # # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts # HOSTNAME="archlinux" # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces. # # [snip] #eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" #eth0="dhcp" #INTERFACES=(eth0) # Setting this to "yes" will skip network shutdown. # This is required if your root device is on NFS. NETWORK_PERSIST="no" # Enable these netcfg profiles at boot-up. [snip] NETWORKS=pppoe # ----------------------------------------------------------------------- # DAEMONS # ----------------------------------------------------------------------- # [snip] DAEMONS=(hwclock syslog-ng !network !netfs crond) root@PartedMagic:/media/sda9# cat etc/network.d/pppoe CONNECTION='ppp' INTERFACE=eth0 PEER='provider' PPP_TIMEOUT=10 root@PartedMagic:/media/sda9# cat etc/hosts # # /etc/hosts: static lookup table for host names # #<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost archlinux ::1 localhost.localdomain localhost # End of file root@PartedMagic:/media/sda9# cat etc/ppp/peers/alice # /etc/ppp/peers/your_provider plugin rp-pppoe.so # rp_pppoe_ac 'your ac name' # rp_pppoe_service 'your service name' # network interface eth0 # login name name "[snip]" usepeerdns persist # Uncomment this if you want to enable dial on demand #demand #idle 180 defaultroute hide-password noauth root@PartedMagic:/media/sda9# ls etc/ppp/peers -hAl total 4 -rw-r--r-- 1 root root 303 Dec 8 08:01 alice lrwxrwxrwx 1 root root 5 Dec 8 08:11 provider -> alice root@PartedMagic:/media/sda9# cat etc/ppp/pap-secrets # Secrets for authentication using PAP # client server secret IP addresses "[snip]" * "[snip]" root@PartedMagic:/media/sda9# cat etc/ppp/pppoe.conf # [snip] # Ethernet card connected to DSL modem ETH='sth0' ### ??? TYPO #### # PPPoE user name. [snip] USER='[snip]' # Bring link up on demand? [snip] DEMAND=no #DEMAND=300 # [snip] DNSTYPE=SERVER # [snip] PEERDNS=yes DNS1= DNS2= # Make the PPPoE connection your default route. [snip] DEFAULTROUTE=yes ### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT # [snip] # If you are using rp-pppoe on a physically-inaccessible host, set # CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying # to connect forever after pppoe-start is called. Otherwise, it will # give out after CONNECT_TIMEOUT seconds and will not attempt to # connect again, making it impossible to reach. CONNECT_TIMEOUT=30 ### TODO ### # How often in seconds pppoe-start polls to check if link is up CONNECT_POLL=2 # Specific desired AC Name ACNAME= # Specific desired service name SERVICENAME= # Character to echo at each poll. Use PING="" if you don't want # anything echoed PING="." # File where the pppoe-connect script writes its process-ID. # Three files are actually used: # $PIDFILE contains PID of pppoe-connect script # $PIDFILE.pppoe contains PID of pppoe process # $PIDFILE.pppd contains PID of pppd process CF_BASE=`basename $CONFIG` PIDFILE="/var/run/$CF_BASE-pppoe.pid" # Do you want to use synchronous PPP? "yes" or "no". "yes" is much # easier on CPU usage, but may not work for you. It is safer to use # "no", but you may want to experiment with "yes". "yes" is generally # safe on Linux machines with the n_hdlc line discipline; unsafe on others. SYNCHRONOUS=no # Do you want to clamp the MSS? Here's how to decide: # - If you have only a SINGLE computer connected to the DSL modem, choose # "no". # - If you have a computer acting as a gateway for a LAN, choose "1412". # The setting of 1412 is safe for either setup, but uses slightly more # CPU power. CLAMPMSS=1412 ### TODO ### #CLAMPMSS=no ### TODO ### # LCP echo interval and failure count. LCP_INTERVAL=20 LCP_FAILURE=3 # PPPOE_TIMEOUT should be about 4*LCP_INTERVAL PPPOE_TIMEOUT=80 # Firewalling: One of NONE, STANDALONE or MASQUERADE FIREWALL=STANDALONE # Linux kernel-mode plugin for pppd. If you want to try the kernel-mode # plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so LINUX_PLUGIN= # Any extra arguments to pass to pppoe. Normally, use a blank string # like this: PPPOE_EXTRA="" # Rumour has it that "Citizen's Communications" with a 3Com # HomeConnect DSL Modem DualLink requires these extra options: # PPPOE_EXTRA="-f 3c12:3c13 -S ISP" # Any extra arguments to pass to pppd. Normally, use a blank string # like this: PPPD_EXTRA="" ########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING # If you wish to COMPLETELY overrride the pppd invocation: # Example: # OVERRIDE_PPPD_COMMAND="pppd call dsl" # If you want pppoe-connect to exit when connection drops: # RETRY_ON_FAILURE=no
Hi, Am 08.12.2011 09:19, schrieb Ralf Mardorf:
if I run (as root, there anyway still is no user) 'netcfg pppoe' I get 'error sending/receiving pppoe packet: Network is down'
Just to make sure that netcfg is really what you want. Do you plan to install a (rich) desktop environment later on? At least I would recommended using networkmanager instead of netcfg when using Gnome and/or KDE, because there are applets for it, which makes the network configuration quite easy. You can probably use these applets for other windows managers as well. Personally I'm even using networkmanager on boxes which don't have a running X server, because of its dispatching possibilities (such as starting SSH when there is a link established). However for a completely static environment netcfg is probably just fine. Best regards, Karol Babioch
-----Original Message----- From: arch-general-bounces@archlinux.org on behalf of Karol Babioch Sent: Thu 12/8/2011 10:53 Hi, Am 08.12.2011 09:19, schrieb Ralf Mardorf:
if I run (as root, there anyway still is no user) 'netcfg pppoe' I get 'error sending/receiving pppoe packet: Network is down'
Just to make sure that netcfg is really what you want. Do you plan to install a (rich) desktop environment later on? At least I would recommended using networkmanager instead of netcfg when using Gnome and/or KDE, because there are applets for it, which makes the network configuration quite easy. You can probably use these applets for other windows managers as well. Personally I'm even using networkmanager on boxes which don't have a running X server, because of its dispatching possibilities (such as starting SSH when there is a link established). However for a completely static environment netcfg is probably just fine. +++ Hi Karol :) I'll install Xfce and Gnome (hopefully GNOME2 instead of 3, since I switched for earlier installs of other distros from KDE3 to GNOME2, when KDE4 became the successor and Xfce simply should replace GNOME3, while I'll still give GNOME3 a chance). Of cause, I could download the needed stuff using Part Magic, reboot into Arch and then install the packages, but I would like to install the DEs when I'm booted into Arch. Hm? If netcfg should be ok, than perhaps something regarding to PPPoE might be bad?! Currently the 'Ethernet Link/Act' LED of my Siemens ADSL device isn't lit. It was lit when I tested the example's "ethernet-dhcp", but than I got 'DHCP IP lease attempt. [failed]' while the LED is lit. My settings for 'pppoe-setup' must be ok, since I'm using the same for the Parted Magic live CD. *me_confused* :D I don't know what I'm doing, I only have guesses of an idiot, the noob I'm. Any hints are welcome. Cheers! Ralf
Pardon, the M$ web-thingy is a PITA, next time it claims that something went wrong, I'll first check http://mailman.archlinux.org/pipermail/arch-general/2011-December/date.html.
-----Original Message----- From: arch-general-bounces@archlinux.org on behalf of Karol Babioch Sent: Thu 12/8/2011 10:53 Hi, Am 08.12.2011 09:19, schrieb Ralf Mardorf:
if I run (as root, there anyway still is no user) 'netcfg pppoe' I get 'error sending/receiving pppoe packet: Network is down'
Just to make sure that netcfg is really what you want. Do you plan to install a (rich) desktop environment later on? At least I would recommended using networkmanager instead of netcfg when using Gnome and/or KDE, because there are applets for it, which makes the network configuration quite easy. You can probably use these applets for other windows managers as well. Personally I'm even using networkmanager on boxes which don't have a running X server, because of its dispatching possibilities (such as starting SSH when there is a link established). However for a completely static environment netcfg is probably just fine. +++ Hi Karol :) I'll install Xfce and Gnome (hopefully GNOME2 instead of 3, since I switched for earlier installs of other distros from KDE3 to GNOME2, when KDE4 became the successor and Xfce simply should replace GNOME3, while I'll still give GNOME3 a chance). Of cause, I could download the needed stuff using Part Magic, reboot into Arch and then install the packages, but I would like to install the DEs when I'm booted into Arch. Hm? If netcfg should be ok, than perhaps something regarding to PPPoE might be bad?! Currently the 'Ethernet Link/Act' LED of my Siemens ADSL device isn't lit. It was lit when I tested the example's "ethernet-dhcp", but than I got 'DHCP IP lease attempt. [failed]' while the LED is lit. My settings for 'pppoe-setup' must be ok, since I'm using the same for the Parted Magic live CD. *me_confused* :D I don't know what I'm doing, I only have guesses of an idiot, the noob I'm. Any hints are welcome. Cheers! Ralf
PPS:( "Of cause, I could download the needed stuff using Part Magic, reboot into Arch and then install the packages, but I would like to install the DEs when I'm booted into Arch." :S In passing. "I would like to download + install" the packages booted to Arch and so I need an Internet connection. *me_quiet_now*
Am 08.12.2011 09:19, schrieb Ralf Mardorf:
Hi :)
if I run (as root, there anyway still is no user) 'netcfg pppoe' I get 'error sending/receiving pppoe packet: Network is down'. I never set up a wired pppoe connection manually before.
Cheers!
Ralf
PS: I've seen that there are 2 entries to edit and one might or might not be a typo. Perhaps I'm missing much more ;). root@PartedMagic:/media/sda9# cat etc/network.d/pppoe CONNECTION='ppp' INTERFACE=eth0 PEER='provider' PPP_TIMEOUT=10
The problem here is that the 'eth0' interface is not up when pppd is launched. This would be easily solved by running ip link set eth0 up before launching pppd, but netcfg doesn't know that. I always planned to write a 'pppoe' target for netcfg, but never did. I can't think of a good workaround right now, maybe someone else has an idea.
root@PartedMagic:/media/sda9# cat etc/ppp/peers/alice # /etc/ppp/peers/your_provider
plugin rp-pppoe.so # rp_pppoe_ac 'your ac name' # rp_pppoe_service 'your service name'
# network interface eth0 # login name name "[snip]" usepeerdns persist # Uncomment this if you want to enable dial on demand #demand #idle 180 defaultroute hide-password noauth
Seems fine.
root@PartedMagic:/media/sda9# cat etc/ppp/pppoe.conf
You don't need pppoe.conf - you don't even need the rp-pppoe package. You only need the ppp package and the peers/pap-secrets files as shown above. There is some more information in the HOWTO [1] I wrote years ago, but much of it is outdated. [1] https://wiki.archlinux.org/index.php/PPPoE_Setup_with_pppd
-----Original Message----- From: arch-general-bounces@archlinux.org on behalf of Thomas Bächler Sent: Thu 12/8/2011 13:14 Am 08.12.2011 09:19, schrieb Ralf Mardorf:
Hi :)
if I run (as root, there anyway still is no user) 'netcfg pppoe' I get 'error sending/receiving pppoe packet: Network is down'. I never set up a wired pppoe connection manually before.
Cheers!
Ralf
PS: I've seen that there are 2 entries to edit and one might or might not be a typo. Perhaps I'm missing much more ;). root@PartedMagic:/media/sda9# cat etc/network.d/pppoe CONNECTION='ppp' INTERFACE=eth0 PEER='provider' PPP_TIMEOUT=10
The problem here is that the 'eth0' interface is not up when pppd is launched. This would be easily solved by running ip link set eth0 up before launching pppd, but netcfg doesn't know that. I always planned to write a 'pppoe' target for netcfg, but never did. I can't think of a good workaround right now, maybe someone else has an idea.
root@PartedMagic:/media/sda9# cat etc/ppp/peers/alice # /etc/ppp/peers/your_provider
plugin rp-pppoe.so # rp_pppoe_ac 'your ac name' # rp_pppoe_service 'your service name'
# network interface eth0 # login name name "[snip]" usepeerdns persist # Uncomment this if you want to enable dial on demand #demand #idle 180 defaultroute hide-password noauth
Seems fine.
root@PartedMagic:/media/sda9# cat etc/ppp/pppoe.conf
You don't need pppoe.conf - you don't even need the rp-pppoe package. You only need the ppp package and the peers/pap-secrets files as shown above. There is some more information in the HOWTO [1] I wrote years ago, but much of it is outdated. [1] https://wiki.archlinux.org/index.php/PPPoE_Setup_with_pppd +++ Thank you Thomas :) so the easiest way for me seems to install a DE with a GUI network manager. IIUC 'pacman -U' would be the way to install downloaded packages. A 'meta' package like xfce4 wouldn't do the job, regarding to https://wiki.archlinux.de/title/Xfce I need to download several packages and even those packages might need a whole string of dependencies. Any ideas what would be the DE, WM that needs less dependencies? Perhaps something frame based like Ion?! Cheers! Ralf
On Thu, Dec 8, 2011 at 4:05 PM, Ralf Mardorf wrote:
so the easiest way for me seems to install a DE with a GUI network manager.
I'm not sure network-manager is the way to go. When enabled it makes just the configuration a nightmare because standard configuration file are either ignored or replaced. When I'm on a machine with network-manager trying to debug network problems, it is usually the first thing I disable. However I have no better solution to offer as I've never setup pppoe connections. -- Cédric Girard
Am 08.12.2011 16:05, schrieb Ralf Mardorf:
Thank you Thomas :)
so the easiest way for me seems to install a DE with a GUI network manager. IIUC 'pacman -U' would be the way to install downloaded packages.
You could first try this: ip link set eth0 up netcfg pppoe This should work. As Javier pointed out below, you can put the 'ip' command into a PRE_UP statement in your netcfg profile.
-----Original Message----- From: arch-general-bounces@archlinux.org on behalf of Thomas Bächler Sent: Thu 12/8/2011 17:18 You could first try this: ip link set eth0 up netcfg pppoe This should work. As Javier pointed out below, you can put the 'ip' command into a PRE_UP statement in your netcfg profile. +++ Thank you :) today I've got some time for my Arch Linux. Thomas, your hint does the job. Parallel to your reply I found ifconfig eth0 up netcfg pppoe which does job too. Cheers! Ralf
On 12/10/11 at 12:31pm, Ralf Mardorf wrote:
today I've got some time for my Arch Linux. Thomas, your hint does the job. Parallel to your reply I found ifconfig eth0 up netcfg pppoe which does job too.
Just curious: I thought that netcfg raised eth0 itself? M
Am 12.12.2011 15:58, schrieb Manolo Martínez:
On 12/10/11 at 12:31pm, Ralf Mardorf wrote:
today I've got some time for my Arch Linux. Thomas, your hint does the job. Parallel to your reply I found ifconfig eth0 up netcfg pppoe which does job too.
Just curious: I thought that netcfg raised eth0 itself?
M
No, netcfg is unaware that eth0 is needed. However, I wrote a pppoe connection for netcfg the other day: https://github.com/brain0/netcfg/commit/2ca1000cb43de71d95061d78cb2affe01590... It simplifies the configuration a lot and takes care of the little quirks.
On 12/8/11, Thomas Bächler <thomas@archlinux.org> wrote:
Am 08.12.2011 09:19, schrieb Ralf Mardorf:
Hi :)
...
The problem here is that the 'eth0' interface is not up when pppd is launched. This would be easily solved by running ip link set eth0 up before launching pppd, but netcfg doesn't know that. I always planned to write a 'pppoe' target for netcfg, but never did.
I can't think of a good workaround right now, maybe someone else has an idea.
There are different ways of doing things... I've used this (not for the purpose of wireless of course but instead the one stated in here): https://wiki.archlinux.org/index.php/Netcfg#Execute_commands_before.2Fafter_... And it has worked... I've used as well with pppd instead of pppoe, similar to: https://wiki.archlinux.org/index.php/PPPoE_Setup_with_pppd but using netcfg. At this moment I can't share any config though... -- Javier.
participants (6)
-
Cédric Girard
-
Javier Vasquez
-
Karol Babioch
-
Manolo Martínez
-
Ralf Mardorf
-
Thomas Bächler