ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: alexei@taf.ru
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] pppoe + mysql
Date: Thu, 13 Jun 2013 19:53:23 +0900 (IRKT)
Message-ID: <1777409687.34437.1371120803355.JavaMail.root@ilimnet.ru> (raw)
In-Reply-To: <51B9A11B.80704@altlinux.ru>



----- Исходное сообщение -----
> От: "Anton Gorlov" <stalker@altlinux.ru>
> Кому: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
> Отправленные: Четверг, 13 Июнь 2013 г 19:38:19
> Тема: Re: [Sysadmins] pppoe + mysql
> 
> 13.06.2013 05:13, alexei@taf.ru пишет:
> > Запустить в ядерном режиме клиент pppoe можно
> > штатными средствами.
> Гм. а какими не подскажете? ppp настроен через etcnet... и работает судя
> по тому что в lsmod нету pppoe в юзерспейсе..

/usr/sbin/pppd nolog updetach unit 0 plugin rp-pppoe.so ether0 file /etc/net/ifaces/ppp0/pppoptions

/etc/net/ifaces/ppp0/pppoptions:
noipdefault
noauth
default-asyncmap
defaultroute
hide-password
mtu 1492
mru 1492
noaccomp
noccp
nobsdcomp
nodeflate
nopcomp
novj
novjccomp
user _USER_
password _PASSWORD_
lcp-echo-interval 20
lcp-echo-failure 3
maxfail 0
persist

Еще как вариант, приложить вот такой патч:

--- create-ppp.old      2011-10-28 04:09:39.000000000 +0900
+++ create-ppp  2012-03-22 22:20:45.000000000 +0900
@@ -61,15 +61,16 @@
                PTYOPTION="$PPTP --nolaunchpppd $PPTP_SERVER $PPTP_EXTRA_OPTIONS"
        ;;
        pppoe)
-               [ -x "${PPPOE:=$DEFAULT_PPPOE}" ] || {
-                       print_error "$PPPOE does not exist or is not executable. Try installing rp-pppoe-base RPM."
-                       exit 1
-               }
-               [ -n "$HOST" ] || {
-                       print_error "WARNING: HOST is not set for interface $NAME with PPPTYPE $PPPTYPE"
-                       exit 1
-               }
-               PTYOPTION="$PPPOE -I $HOST -U $PPPOE_EXTRA_OPTIONS"
+#              [ -x "${PPPOE:=$DEFAULT_PPPOE}" ] || {
+#                      print_error "$PPPOE does not exist or is not executable. Try installing rp-pppoe-base RPM."
+#                      exit 1
+#              }
+#              [ -n "$HOST" ] || {
+#                      print_error "WARNING: HOST is not set for interface $NAME with PPPTYPE $PPPTYPE"
+#                      exit 1
+#              }
+#              PTYOPTION="$PPPOE -I $HOST -U $PPPOE_EXTRA_OPTIONS"
+               PTYOPTION="plugin rp-pppoe.so $HOST"
        ;;
        dialup)
                BASIC_PPPOPTIONS="$BASIC_PPPOPTIONS modem"
@@ -86,7 +87,8 @@
 fi
 
 # Let the show start...
-$PPPD $BASIC_PPPOPTIONS $PPPOPTIONS ${PTYOPTION:+local pty "$PTYOPTION"} \
+#$PPPD $BASIC_PPPOPTIONS $PPPOPTIONS ${PTYOPTION:+local pty "$PTYOPTION"} \
+$PPPD $BASIC_PPPOPTIONS $PPPOPTIONS ${PTYOPTION:+ $PTYOPTION} \
 ${PROF_PPPOPTIONSFILE:+ file $PROF_PPPOPTIONSFILE} \
 ${PROF_PPPINITCHAT:+ init "$CHAT_CMD $PROF_PPPINITCHAT"} \
 ${PROF_PPPCONNECTCHAT:+ connect "$CHAT_CMD $PROF_PPPCONNECTCHAT"} \


после него ядерный режим будет запускаться сразу по ifup pppX


  reply	other threads:[~2013-06-13 10:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-11  7:51 ` Dank Bagryantsev
2013-06-11  8:08   ` Viacheslav Dubrovskyi
2013-06-11 11:48     ` Dank Bagryantsev
2013-06-11 12:17 ` Mikhail Efremov
2013-06-11 15:46   ` Anton Gorlov
2013-06-12  1:11     ` alexei
2013-06-12  9:14       ` Anton Gorlov
2013-06-13  1:13         ` alexei
2013-06-13 10:38           ` Anton Gorlov
2013-06-13 10:53             ` alexei [this message]
2013-06-13 10:57               ` Anton Gorlov
2013-06-13 10:59                 ` alexei
2013-06-13 11:06                   ` Anton Gorlov
2013-06-13 12:07               ` Sergey V Turchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1777409687.34437.1371120803355.JavaMail.root@ilimnet.ru \
    --to=alexei@taf.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git