Уважаемые знатоки freebsd. помогите пожалуйста новичку!
1. не могу выйти в интернет через pppoe
2. как узнать, работает ли инет вообще на машине?
3. провайдер привязывается к mac-адресу сетевухи и сейчас привязан к другому компу? будет ли в этом случае пинг инета?
/etc/rc.conf:
# -- sysinstall generated deltas -- # Sun Mar 1 15:52:58 2009
# Created: Sun Mar 1 15:52:58 2009
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
keymap="ru.koi8-r"
moused_enable="YES"
moused_port="/dev/psm0"
network_interfaces="lo0 vr0"
ifconfig_lo0="inet 127.0.0.1"
# -- sysinstall generated deltas -- # Sun Mar 1 16:06:13 2009
linux_enable="YES"
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="NO"
ppp_profile="dom"
sshd_enable="YES"
gateway_enable="YES"
defaultrouter="0.0.0.0"
# -- sysinstall generated deltas -- # Tue Mar 3 20:32:04 2009
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
sshd_enable="YES"
gateway_enable="YES"
defaultrouter="0.0.0.0"
# -- sysinstall generated deltas -- # Tue Mar 3 20:32:04 2009
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
hostname="server.workgroup"
# -- sysinstall generated deltas -- # Fri Mar 6 19:51:15 2009
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
hostname="server.workgroup"
# -- sysinstall generated deltas -- # Fri Mar 6 19:52:19 2009
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
hostname="server.workgroup"
# -- sysinstall generated deltas -- # Fri Mar 6 19:51:15 2009
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
hostname="server.workgroup"
# -- sysinstall generated deltas -- # Fri Mar 6 19:52:19 2009
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
hostname="server.workgroup"
# -- sysinstall generated deltas -- # Fri Mar 6 21:26:51 2009
ifconfig_vr0="inet 192.168.1.3 netmask 255.255.255.0"
font8x8="NO"
font8x14="NO"
font8x16="NO"
scrnmap="koi8-r2cp866"
hostname="server.workgroup"
# -- sysinstall generated deltas -- # Fri Mar 13 19:46:16 2009
router_flags="-q"
router="/sbin/routed"
router_enable="YES"
/etc/ppp/ppp.conf:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)
# Ensure that "device" references the correct serial port
# for your modem. (cuad0 = COM1, cuad1 = COM2)
#
eltel-ppoe:
set device PPPoE:vr0
# set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
#papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#
dom:
set authname *******
set authkey ********
set login
add default HISADDR
set ifaddr 0 0 255.255.255.255 0.0.0.0
add default HISADDR # Add a (sticky) default route
/var/log/ppp.log:
Mar 13 23:17:54 server ppp[309]: tun0: Phase: deflink: Connected!
Mar 13 23:17:54 server ppp[309]: tun0: Phase: deflink: opening -> dial
Mar 13 23:17:54 server ppp[309]: tun0: Chat: Send: AT^M
Mar 13 23:17:54 server ppp[309]: tun0: Warning: chat_Write: Network is unreachable
Mar 13 23:17:54 server ppp[309]: tun0: Phase: deflink: Disconnected!
Mar 13 23:17:54 server ppp[309]: tun0: Phase: deflink: dial -> logout
Mar 13 23:17:55 server ppp[309]: tun0: Phase: deflink: logout -> hangup
Mar 13 23:17:55 server ppp[309]: tun0: Phase: deflink: Disconnected!
Mar 13 23:17:55 server ppp[309]: tun0: Phase: deflink: Connect time: 1 secs: 0 octets in, 0 octets out
Mar 13 23:17:55 server ppp[309]: tun0: Phase: deflink: 0 packets in, 0 packets out
Mar 13 23:17:55 server ppp[309]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Fri Mar 13 23:17:54 2009
Mar 13 23:17:55 server ppp[309]: tun0: Phase: deflink: hangup -> opening
Mar 13 23:17:55 server ppp[309]: tun0: Phase: deflink: Enter pause (30) for redialing.
Провайдер предоставил руководство по установке соединения:
Настройка PPPoE-соединения для FreeBSD
» Настройка сети для подключения к Интернет через PPPoE соединение OC FreeBSD
Добавьте новое соединение dom.ru в файл /etc/ppp/ppp.conf:
eltel-pppoe:
set device PPPoE: "имя вашего ethernet-интерфейса – dom.ru"
set dial ""
set authname "логин DOM.RU"
set authkey "пароль DOM.RU"
set ifaddr 0 0
add default HISADDR
и используйте ppp для обычного дозвона.