Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Σύνδεση dial-up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Greek
View previous topic :: View next topic  
Author Message
ntzim1
n00b
n00b


Joined: 26 Nov 2004
Posts: 40
Location: Greece

PostPosted: Wed Dec 08, 2004 7:44 pm    Post subject: Σύνδεση dial-up Reply with quote

Ένας σχετικά εύκολος τρόπος για να κάνεις dial-up on demand, με αυτόματο κλείσιμο της γραμμής, όταν δεν μεταφέρονται πακέτα είναι με χρήση σκέτου του pppd.

Κάνεις καταρχήν

Code:
emerge ppp

και στην συνέχεια συμπληρώνεις το αρχείο /etc/conf.d/net.ppp0

Το δοκιμάζεις με:

Code:
/etc/init.d/net.ppp0 start


και αν όλα έχουν πάει καλά κάνεις

Code:
rc-update add net.ppp0 default


Ο έλεγχος του modem φαίνεται πολύ αξιόπιστος αν και ακόμα το ελέγχω. :)
Back to top
View user's profile Send private message
paul555
l33t
l33t


Joined: 22 Nov 2004
Posts: 612
Location: Greece

PostPosted: Thu Dec 09, 2004 4:11 am    Post subject: Reply with quote

Συγγνωμη για την καπως ασχετη ερωτηση αλλα τι εννοεις
Quote:
και στην συνέχεια συμπληρώνεις το αρχείο /etc/conf.d/net.ppp0
Back to top
View user's profile Send private message
ntzim1
n00b
n00b


Joined: 26 Nov 2004
Posts: 40
Location: Greece

PostPosted: Thu Dec 09, 2004 2:58 pm    Post subject: Reply with quote

Συμπληρώνεις τον αριθμό κλήσης του ISP σου, το κωδικό χρήστη, τον χρόνο αναμονής για πακέτα μέχρι να κλείσει η γραμμή κλπ.
π.χ. το δικό μου είναι έτσι:

Code:

# /etc/conf.d/net.ppp0:
# $Header: /home/cvsroot/gentoo-x86/net-dialup/ppp/files/confd.ppp0,v 1.1 2003/05/23 04:45:18 killian Exp $

# Config file for /etc/init.d/net.ppp0


PEER="TEE"                      # Define peer (aka ISP)
DEBUG="yes"                     # Turn on debugging
PERSIST="yes"                   # Redial after being dropped
ONDEMAND="yes"                  # Only bring the interface up on demand?
MODEMPORT="/dev/ttyS1"          # TTY device modem is connected to
LINESPEED="115200"              # Speed pppd should try to connect at
INITSTRING=""                   # Extra init string for the modem
DEFROUTE="yes"                  # Must pppd set the default route?
HARDFLOWCTL="yes"               # Use hardware flow control?
ESCAPECHARS="yes"               # Use escape caracters ?
PPPOPTIONS="usepeerdns usehostname"                   # Extra options for pppd
USERNAME="το login name σου"                # The PAP/CHAP username
PASSWORD="το password σου"               # Your password/secret.  Ugly I know, but i
                                # will work on something more secure later
                                # on.  700 permission on /etc/init.d/net.ppp0
                                # should be enouth for now.
NUMBER="8962511000"             # The telephone number of your ISP
REMIP=""                        # The ip of the remote box if it should be set
NETMASK=""                      # Netmask
IPADDR=""                       # Our IP if we have a static one
MRU="768"                       # Sets the MRU
MTU="768"                       # Sets the MTU
RETRYTIMEOUT="60"               # Retry timeout for when ONDEMAND="yes" or
                                # PERSIST="yes"
IDLETIMEOUT="89"           # Idle timeout for when ONDEMAND="yes"
PEERDNS="no"                    # Should pppd set the peer dns?

# This does not currently work due to a bug in pppd (I think)
# FWSCRIPT="/etc/init.d/firewall" # Optional FW script that pppd should start
                                # and stop when the link comes up or drop.
                                # It should be a script that takes one
                                # argument, namely the action that should
                                # be taken (start|stop).  The name of the
                                # external interface on which the firewall
                                # should be activated, should be hardcoded
                                # into the script (you will tipically have
                                # fw.ppp0, fw.ppp1, etc if you have more than
                                # one ppp interface).
                                #
                                # called: ${FWSCRIPT} [start|stop]

AUTOCFGFILES="yes"              # By default this scripts will generate
                                # /etc/ppp/chat-isp, /etc/ppp/chap-secrets,
                                # /etc/ppp/pap-secrets and /etc/ppp/peers/isp
                                # automagically.  Set to "no" if you experience
                                # problems, or need specialized scripts.  You
                                # will have to create these files by hand then.
                                # Also, the FWSCRIPT feature will not work.


# Directory where the templates is stored
TEMPLATEDIR=/etc/ppp
Back to top
View user's profile Send private message
paul555
l33t
l33t


Joined: 22 Nov 2004
Posts: 612
Location: Greece

PostPosted: Thu Dec 09, 2004 9:54 pm    Post subject: Reply with quote

Ok thanks gia thn dieykrinhsh
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Greek All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum