Страница 1 из 1

РРРоЕ соединение

Добавлено: 2012-10-29 16:29:37
Talay
Здравствуйте,

помогите советами по настройке РРРоЕ соединение
с утра мучаюсь, никак не настроил ((
что делать уже незнаю... пойти обстенку ударится)))



# ee /etc/ppp/ppp.conf

Код: Выделить всё

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)
# set log Phase tun command
# set ifaddr 10.0.0.1/0 10.0.0.2/0
 # Ensure that "device" references the correct serial port
 # for your modem. (cuad0 = COM1, cuad1 = COM2)
 #
 #set device /dev/cuad1

 set mru 1492
 set mtu 1492
 disable ipv6cp # отключить поддержу IPv6
 enable lqr     # Link Quality Reporting - по умолчанию выключено

# set device PPPoE:bge1
# 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.
 #

ktnet:
# set phone PHONE_NUM
 set device PPPoE:bge1
 set authname LOGIN
 set authkey PASS
 set ifaddr 0 0

 set dial
 set login
# set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR                    # Add a (sticky) default route


# ee /etc/rc.conf

Код: Выделить всё

saver="daemon"
sshd_enable="YES"

#network_interfaces="bge1 tun0"
ifconfig_bge1="DHCP"
ifconfig_bge0="inet 192.168.0.8  netmask 255.255.255.0"

#defaultrouter="DHCP"

hostname="mywork"

ppp_user="root"
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="ktnet"
ppp_nat="YES"
в ядро включил:

ee /usr/src/sys/i386/conf/PROXY

Код: Выделить всё

options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_SOCKET
options NETGRAPH_TEE

#Queuing support (requied by PF)
options         ALTQ
options         ALTQ_CBQ
options         ALTQ_RED
options         ALTQ_RIO
options         ALTQ_HFSC
#options        ALTQ_CDNR
options         ALTQ_PRIQ
options         ALTQ_NOPCC
#options        ALTQ_DEBUG

надеюсь с Вашей помощью покдлючу

Re: РРРоЕ соединение

Добавлено: 2012-10-29 16:39:54
Talay
# ee /etc/ppp/ppp.conf

Код: Выделить всё

# set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0

коммент убираю, вот так:

# /etc/netstart restart

Код: Выделить всё

devd already running? (pid=495).
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on bge1 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:13:72:3d:3c:8a
        inet 192.168.0.8 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
bge1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:10:18:18:20:26
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
Starting PPP profile: ktnetLoading /lib/libalias_cuseeme.so
Loading /lib/libalias_ftp.so
Loading /lib/libalias_irc.so
Loading /lib/libalias_nbt.so
Loading /lib/libalias_pptp.so
Loading /lib/libalias_skinny.so
Loading /lib/libalias_smedia.so
.
Additional routing options:.
# tail /var/log/ppp.log

Код: Выделить всё

Oct 29 19:39:57 ns1 ppp[2067]: tun2: Phase: Received NGM_PPPOE_ACNAME (hook "ME-60")
Oct 29 19:40:01 ns1 ppp[2067]: tun2: Phase: deflink: Disconnected!
Oct 29 19:40:01 ns1 ppp[2067]: tun2: Phase: deflink: carrier -> hangup
Oct 29 19:40:01 ns1 ppp[2067]: tun2: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Oct 29 19:40:01 ns1 ppp[2067]: tun2: Phase: deflink: 65 packets in, 90 packets out
Oct 29 19:40:01 ns1 ppp[2067]: tun2: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Mon Oct 29 19:39:56 2012
Oct 29 19:40:01 ns1 ppp[2067]: tun2: Phase: deflink: hangup -> opening
Oct 29 19:40:01 ns1 ppp[2067]: tun2: Phase: deflink: Enter pause (30) for redialing.
Oct 29 19:40:07 ns1 ppp[390]: tun0: LCP: deflink: RecvEchoRequest(8) state = Opened
Oct 29 19:40:07 ns1 ppp[390]: tun0: LCP: deflink: SendEchoReply(8) state = Opened

Re: РРРоЕ соединение

Добавлено: 2012-10-30 8:34:51
Talay
никто не ответит?!

Re: РРРоЕ соединение

Добавлено: 2012-10-31 6:49:17
Talay
Решил проблему с заменой сетевой карты, была 3сом ская карточка, наверное особенность карточки