[arch-general] netcfg pppoe 'error sending pppoe packet: Network is down'
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Thu Dec 8 03:19:22 EST 2011
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 at PartedMagic:/media/sda9# cat etc/network.d/pppoe
CONNECTION='ppp'
INTERFACE=eth0
PEER='provider'
PPP_TIMEOUT=10
root at 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 at 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 at 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 at PartedMagic:/media/sda9# cat etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
"[snip]" * "[snip]"
root at 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
More information about the arch-general
mailing list