Я живу в общаге. У нас местный провайдер провел сеть и дает доступ через PPPoE.
Так вот поставил себе sabayon
Как же без инета?
Код:
# pppo-setup:
- username ****
Enter the Ethernet interface connected to the DSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
- eth0
Do you want the link to come up on demand, or stay up continuously?
- no
DNS
- server
PASSWORD:
- *******
- *******
FIREWOLLING:
- 1
$ pppoe-start
.. Connected!
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
80.80.111.92 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.128.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.0.5 0.0.0.0 UG 0 0 0 eth0
#tail /var/log/messages
Oct 14 15:01:17 sfinx pppd[22693]: Connect: ppp0 <--> /dev/pts/2
Oct 14 15:01:17 sfinx /etc/init.d/net.ppp0: net.ppp0 is not allowed to be hotplugged
Oct 14 15:01:17 sfinx pppoe[22698]: PADS: Service-Name: ''
Oct 14 15:01:17 sfinx pppoe[22698]: PPP session is 11175 (0x2ba7)
Oct 14 15:01:19 sfinx pppd[22693]: PAP authentication succeeded
Oct 14 15:01:19 sfinx pppd[22693]: not replacing existing default route to eth0 [192.168.0.5]
Oct 14 15:01:19 sfinx pppd[22693]: local IP address 212.193.220.58
Oct 14 15:01:19 sfinx pppd[22693]: remote IP address 80.80.111.92
Oct 14 15:01:19 sfinx pppd[22693]: primary DNS address 80.80.111.254
Oct 14 15:01:19 sfinx pppd[22693]: secondary DNS address 80.80.111.244
#ping ya.ru
ping: unknown host ya.ru
# route add default ppp0
# ping ya.ru
PING ya.ru (213.180.204.8) 56(84) bytes of data.
64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=50.4 ms
64 bytes from ya.ru (213.180.204.8): icmp_seq=2 ttl=55 time=26.0 ms
64 bytes from ya.ru (213.180.204.8): icmp_seq=3 ttl=55 time=25.4 msТолько через браузер не могу выйти (FF, Opera)
Так же делал по статьям
http://tldp.org/HOWTO/PPP-HOWTO/
http://ru.gentoo-wiki.com/Заглавная_страница
Только все-равно не заработало. Облазил форум и на официальном сайте тоже обыскался.
Помогите нерадивому найти решение.
OS: Sabayon 3.3
Сетевая встроенная
ip внутри сети выдается автоматом
ip для выхода в инет выдается провайдером
dns тоже
да кстати теперешние конфиги:
Код:
# cat /etc/ppp/pppoe.conf
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe. Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the pppoe-start, pppoe-stop, pppoe-connect and
# pppoe-status shell scripts. It is *not* used in any way by the
# "pppoe" executable.
#
# Copyright © 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.11 2005/08/09 02:49:12 dfs Exp $
#***********************************************************************
# When you configure a variable, DO NOT leave spaces around the "=" sign.
# Ethernet card connected to DSL modem
#
# NB: Gentoo overrides ETH when pppoe-start is called from the
# networking scripts. This setting has no effect in that case.
ETH='eth0'
# PPPoE user name. You may have to supply "@provider.com" Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@magma.ca
USER='epn_kolandr_ll58'
# Bring link up on demand? Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300
# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SERVER
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=yes
DNS1=
DNS2=server
# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes
### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT
# How long pppoe-start waits for a new PPP interface to appear before
# concluding something went wrong. If you use 0, then pppoe-start
# exits immediately with a successful status and does not wait for the
# link to come up. Time is in seconds.
#
# WARNING WARNING WARNING:
#
# 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
# 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
#
# NB: Gentoo overrides PIDFILE when pppoe-start is run from the
# networking scripts. This setting has no effect in that case.
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
#CLAMPMSS=no
# 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=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
# cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
# modules=( "dhclient" )
plug_timeout="6"
dhcp_eth0="nosendhost"
dhcp_eth1="nosendhost"
dhcp_eth2="nosendhost"
dhcp_wlan0="nosendhost"
dhcp_ath0="nosendhost"
dhcp_ra0="nosendhost"
config_eth0=( "dhcp" )
dhcp_eth0="nosendhost"
dns_domain_eth0="localdomain"
nis_domain_eth0="localdomain"
#config_eth0=( "null" )
config_ppp0=( "ppp" )
link_ppp0="eth0"
plugins_ppp0=( "pppoe" )
username_ppp0='epn_kolandr_ll58'
password_ppp0='firewolf'
pppd_ppp0=(
"noauth"
"defaultroute"
"usepeerdns"
"default-asyncmap"
"ipcp-accept-remote"
"ipcp-accept-local"
"lcp-echo-interval 15"
"lcp-echo-failure 3"
"mru 1492"
"mtu 1492"
"debug"
)
# cat /etc/ppp/options
lock
noauth
noipdefault
usepeerdns
defaultroute
plugin rp-pppoe.so[code]
В /etc/ppp/pap-secrets и /etc/ppp/chap-secrets все прописал pppoe-setup
Пытался сделать как по ссылке выше
[code] # /etc/init.d/net.ppp0 start
* Service net.ppp0 starting
* Starting ppp0
* Loading networking modules for ppp0
* modules: adsl apipa arping br2684ctl tuntap bridge ccwgroup clip macchanger
* macnet rename ifplugd wpa_supplicant essidnet iptunnel iproute2 dhcpcd ip6to4
* pppd system
* ifplugd provides plug
* wpa_supplicant provides wireless
* iproute2 provides interface
* dhcpcd provides dhcp
* pppd provides ppp
* ifplugd only works on interfaces with a valid MAC address
* wpa_supplicant only works on wireless interfaces unless the -D wired option is
* specified
* Bringing up ppp0
* ppp
* Running pppd ...
* Backgrounding ...
* WARNING: net.ppp0 has started but is inactive