nixp.ru v3.0

19 апреля 2024,
пятница,
23:09:00 MSK

anonymous написал 5 июля 2005 года в 21:18 (698 просмотров) Ведет себя неопределенно; открыл 1814 темы в форуме, оставил 5575 комментариев на сайте.

Установил Sarge. Настроил через pppoeconf. Ничего не пингуется. Связи с интернетом и локалкой (она тоже через пппое) нет. Причем на Knoppix всё работает без проблем. Сравнил конфиги из Кнопы и Саржа — один к одному. Попробывал поставить Suse 9.3 — всё работает, но Суся мне не нравится. В инете нифига такого нет ни на английском ни на русском (типа у всех работает) Помогите, пожалуйста, настроить PPPoE:

На борту:

- гигабитка встроенная(бездействует) eth0

- лана навесная RealTek RTL8139 (вот она и нужна для инета) eth1

- модем обыкновенный Genius

Debian 3.1r0 Sarge 2.4.XX ядро

логи команд:

debian:/home/user# pon dsl-provider

Plugin rp-pppoe.so loaded.

debian:/home/user# plog

Jul 4 18:36:02 debian pppd[18110]: Couldn’t increase MTU to 1500

Jul 4 18:36:02 debian pppd[18110]: Couldn’t increase MRU to 1500

Jul 4 18:36:02 debian pppd[18110]: CHAP authentication succeeded: Access granted

Jul 4 18:36:02 debian pppd[18110]: peer from calling number 00:02:B3:A3:4E:2D authorized

Jul 4 18:36:02 debian pppd[18110]: not replacing default route to eth1 [10.199.75.1]

Jul 4 18:36:02 debian pppd[18110]: Cannot determine ethernet address for proxy ARP

Jul 4 18:36:02 debian pppd[18110]: local IP address 10.199.75.72

Jul 4 18:36:02 debian pppd[18110]: remote IP address 10.192.1.3

Jul 4 18:36:02 debian pppd[18110]: primary DNS address 10.192.1.1

Jul 4 18:36:02 debian pppd[18110]: secondary DNS address 10.192.1.100

debian:/home/user# ifconfig ppp0

ppp0 Link encap:Point-to-Point Protocol

inet addr:10.199.75.72 P-t-P:10.192.1.3 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1

RX packets:3 errors:0 dropped:0 overruns:0 frame:0

TX packets:3 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:3

RX bytes:114 (114.0 b) TX bytes:54 (54.0 b)

debian:/home/user# ifconfig

eth0 Link encap:Ethernet HWaddr 00:11:2F:12:26:C1

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Interrupt:22 Memory:feafc000-0

eth1 Link encap:Ethernet HWaddr 00:40:F4:B2:43:BB

inet addr:10.199.75.72 Bcast:10.199.75.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:224 errors:0 dropped:0 overruns:0 frame:0

TX packets:370 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:20462 (19.9 KiB) TX bytes:22200 (21.6 KiB)

Interrupt:21 Base address:0xd400

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:278 errors:0 dropped:0 overruns:0 frame:0

TX packets:278 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:19808 (19.3 KiB) TX bytes:19808 (19.3 KiB)

ppp0 Link encap:Point-to-Point Protocol

inet addr:10.199.75.72 P-t-P:10.192.1.3 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1

RX packets:3 errors:0 dropped:0 overruns:0 frame:0

TX packets:3 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:3

RX bytes:114 (114.0 b) TX bytes:54 (54.0 b)

debian:/home/user# route -n

Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

10.192.1.3 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0

10.199.75.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

0.0.0.0 10.199.75.1 0.0.0.0 UG 0 0 0 eth1

debian:/home/user# ping -c 3 10.199.75.1

PING 10.199.75.1 (10.199.75.1) 56(84) bytes of data.

From 10.199.75.72 icmp_seq=1 Destination Host Unreachable

From 10.199.75.72 icmp_seq=2 Destination Host Unreachable

From 10.199.75.72 icmp_seq=3 Destination Host Unreachable— 10.199.75.1 ping statistics —

3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2016ms

, pipe 3

debian:/home/user# ping -c 3 google.com

ping: unknown host google.com

debian:/home/user# poff

debian:/home/user#

файл /etc/ppp/peers/provider :

# example configuration for a dialup connection authenticated with PAP or CHAP

#

# This is the default configuration used by pon(1) and poff(1).

# See the manual page pppd(8) for information on all the options.

# MUST CHANGE: replace myusername@realm with the PPP login name given to

# your by your provider.

# There should be a matching entry with the password in /etc/ppp/pap-secrets

# and/or /etc/ppp/chap-secrets.

user «myusername@realm»

# MUST CHANGE: replace ****** with the phone number of your provider.

# The /etc/chatscripts/pap chat script may be modified to change the

# modem initialization string.

connect «/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********»

# Serial device to which the modem is connected.

/dev/modem

# Speed of the serial line.

115200

# Assumes that your IP address is allocated dynamically by the ISP.

noipdefault

# Try to get the name server addresses from the ISP.

usepeerdns

# Use this connection as the default route.

defaultroute

# Makes pppd «dial again» when the connection is lost.

persist

# Do not ask the remote to authenticate.

noauth

файл /etc/ppp/peers/dsl-provider :

Configuration file for PPP, using PPP over Ethernet

# to connect to a DSL provider.

#

# See the manual page pppd(8) for information on all the options.

##

# Section 1

#

# Stuff to configure…

# MUST CHANGE: Uncomment the following line, replacing the user@provider.net

# by the DSL user name given to your by your DSL provider.

# (There should be a matching entry in /etc/ppp/pap-secrets with the password.)

#user myusername@myprovider.net

# Use the pppoe program to send the ppp packets over the Ethernet link

# This line should work fine if this computer is the only one accessing

# the Internet through this DSL connection. This is the right line to use

# for most people.

#pty «/usr/sbin/pppoe -I eth0 -T 80 -m 1452»

# An even more conservative version of the previous line, if things

# don’t work using -m 1452…

#pty «/usr/sbin/pppoe -I eth0 -T 80 -m 1412»

# If the computer connected to the Internet using pppoe is not being used

# by other computers as a gateway to the Internet, you can try the following

# line instead, for a small gain in speed:

#pty «/usr/sbin/pppoe -I eth0 -T 80»

# The following two options should work fine for most DSL users.

# Assumes that your IP address is allocated dynamically

# by your DSL provider…

noipdefault

# Try to get the name server addresses from the ISP.

usepeerdns

# Use this connection as the default route.

# Comment out if you already have the correct default route installed.

defaultroute

##

# Section 2

#

# Uncomment if your DSL provider charges by minute connected

# and you want to use demand-dialing.

#

# Disconnect after 300 seconds (5 minutes) of idle time.

#demand

#idle 300

##

# Section 3

#

# You shouldn’t need to change these options…

hide-password

lcp-echo-interval 20

lcp-echo-failure 3

# Override any connect script that may have been set in /etc/ppp/options.

connect /bin/true

noauth

persist

mtu 1492

# RFC 2516, paragraph 7 mandates that the following options MUST NOT be

# requested and MUST be rejected if requested by the peer:

# Address-and-Control-Field-Compression (ACFC)

noaccomp

# Asynchronous-Control-Character-Map (ACCM)

default-asyncmap

plugin rp-pppoe.so eth1

user «тут мой логин»

ПОМОГИТЕ, ЛЮДИ!!!

Genie

гы-гы.

мне сильно нравится:

eth1 Link encap:Ethernet HWaddr 00:40:F4:B2:43:BB

inet addr:10.199.75.72 Bcast:10.199.75.255 Mask:255.255.255.0

и следом:

ppp0 Link encap:Point-to-Point Protocol

inet addr:10.199.75.72 P-t-P:10.192.1.3 Mask:255.255.255.255

а 10.192.1.3 наверное думает, что выдал тебе адрес из 10.192.1.0-255… ;)

ну и, как видишь, у тебя

Jul 4 18:36:02 debian pppd[18110]: not replacing default route to eth1 [10.199.75.1]

так что у тебя в файле /etc/ppp/peers/dsl-provider (ведь используется он, по команде pon dsl-provider) не хватает одной опции «noipdefault» это как минимум.

anonymous

Гы-гы! Если присмотреться, то можно найти эту опцию. Еслиб всё было так просто — я б не спрашивал.

Need help as yet!

Genie

хитро же ты его сныкал… может, конечно, я утром был ещё соонный.. ;)

однако, тем не менее, удалённая сторона тебе не выдаёт адрес из своего диапазона. см. адреса у ppp0 и у eth1.

кроме того, маршрут у тебя не меняется.это тоже не есть хорошо.

ну и потом. меня, к примеру, сильно смущает фраза:

Связи с интернетом и локалкой (она тоже через пппое) нет.

в общем, debug kdebug 15 в опции pppd и смотреть логи повторно.

Последние комментарии

ecobeingecobeing.ru
Экология и вегетарианство на благо всем живым существам Планеты.