andrei@localhost ~ $ su
Password:
localhost andrei # adsl-start
.. Connected!
localhost andrei # ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:77:16:24
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.0.0
inet6 addr: fe80::2e0:4cff:fe77:1624/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5956 (5.8 Kb) TX bytes:1098 (1.0 Kb)
Interrupt:5 Base address:0xde00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.129.124 P-t-P:217.107.225.9 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:30 (30.0 b) TX bytes:30 (30.0 b)
localhost andrei # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
217.107.225.9 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.0.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.1.1 0.0.0.0 UG 0 0 0 eth0
localhost andrei #
#####################################################################
/etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.1.2 broadcast 192.168.1.255 netmask 255.255.0.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
gateway="eth0/192.168.1.1"
по последнему порту "192.168.1.1" захожу в интерфэс модема (D-Link DSL-500T) Срасибо !!
ppp0 Link encap:Point-to-Point Protocol
inet addr:82.208.105.239 P-t-P:213.177.127.52 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:7 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:756 (756.0 b) TX bytes:54 (54.0 b)
7. Смотрю router
Цитата:
localhost ldm # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
cs2-ats52.mts-n * 255.255.255.255 UH 0 0 0 ppp0
10.29.0.0 * 255.255.0.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default 10.29.0.1 0.0.0.0 UG 0 0 0 eth0
8. Смотрю как ядро сконфигурировано:
Цитата:
<*> PPP (point-to-point protocol) support
<> PPP multilink support (EXPERIMENTAL)
<*> PPP filtering
<*> PPP support for async serial ports
<*> PPP support for sync tty ports
<*> PPP Deflate compression
<*> PPP BSD-Compress compression
<*> PPP over Ethernet (EXPERIMENTAL)
9. Вроде все правильно. Помогите!!! Не знаю, что теперь делать. Без инета жизнь не мила.
Не совсем понял
Не совсем понял проблемму. Но если дело в конфига, то я на днях настраивал у себя ADSL и сделал это вот так:
Всё. Замечательно работает (ну ещё в /etc/resolv.conf DNS пропиши)
andrei@localhost ~ $
andrei@localhost ~ $ su
Password:
localhost andrei # adsl-start
.. Connected!
localhost andrei # ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:77:16:24
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.0.0
inet6 addr: fe80::2e0:4cff:fe77:1624/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5956 (5.8 Kb) TX bytes:1098 (1.0 Kb)
Interrupt:5 Base address:0xde00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:300 (300.0 b) TX bytes:300 (300.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.129.124 P-t-P:217.107.225.9 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:30 (30.0 b) TX bytes:30 (30.0 b)
localhost andrei # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
217.107.225.9 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.0.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.1.1 0.0.0.0 UG 0 0 0 eth0
localhost andrei #
#####################################################################
/etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
# Global config file for net.* rc-scripts
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.1.2 broadcast 192.168.1.255 netmask 255.255.0.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
# NB: The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly. Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
# For setting the default gateway
#
gateway="eth0/192.168.1.1"
по последнему порту "192.168.1.1" захожу в интерфэс модема (D-Link DSL-500T) Срасибо !!
А что за
А что за команда adsl-start?
я всё запускаю через /etc/init.d/net.eth0 start
я установил
я установил пакет rp-pppoe эта каманда от туда , а твою команду у меня выполняет rc-скипт при загрузки init
Таже проблема
Не могу отпинговать интернет:
1. Установил ppp, rd-pppoe, dhcp
2. Настроил сетевую карту:
3. Настроил соединение c помощью adsl-setup
4. запускаю хозяйство adsl-start. Коннект есть!
5. Пингую:
не пингуется!!!
6. смотрю, что имеем в ifconfig
7. Смотрю router
8. Смотрю как ядро сконфигурировано:
9. Вроде все правильно. Помогите!!! Не знаю, что теперь делать. Без инета жизнь не мила.
Исправить пункт 7
Надо было перенаправить пакеты на шлюз.
вот это надо было воткнут в таблицу маршрутизации:
default cs2-ats52.mts-n 0.0.0.0 UG 0 0 0 ppp0
а это убрать:
default 10.29.0.1 0.0.0.0 UG 0 0 0 eth0
А кто-нибудь
А кто-нибудь придумал, как лучше сделать, чтобы adsl-start запускался при загрузке?
пока вопрос так
пока вопрос так не стоит, конект есть а браузер не грузит страници
если кто может кинти свои копии команд ifconfig и route -n
moose@localhost ~ $
moose@localhost ~ $ /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:4C:B7:C2:59 inet addr:192.168.1.10 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:43164 errors:0 dropped:0 overruns:0 frame:0 TX packets:45514 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:30642993 (29.2 Mb) TX bytes:6156972 (5.8 Mb) Interrupt:11 Base address:0xe400 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:798 errors:0 dropped:0 overruns:0 frame:0 TX packets:798 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:39900 (38.9 Kb) TX bytes:39900 (38.9 Kb)