Linux 版 (精华区)

发信人: netiscpu (说不如做), 信区: Unix
标  题: [M]怎样快速设置PPP服务器
发信站: 紫 丁 香 (Tue May 12 22:22:25 1998), 转信

[注]本文摘自Linux-net Mailling-list

[问题]
Hello friends;
        
        I need help on setting up ppp server. I looked at serial and
ppp-howto and fine that I have to take time to study them all. And also I
am not so sure if I could go through them all. 

        So, What is the easiest way to do this? what config files, what
software?

        I have 1 modem I just wanted to use one serial port and 1 phone
number to let my collegue to access them tomorrow. Please help me on
setting this.

Here is my basic PPP Server:
        -- P166 with 32M RAM
        -- 2 Ether cards (Local and Internet)
        -- 2 Serial port (cau1 cau2)
        -- Slackware 3.4 
        -- Linux kernel 2.0.33

        Thanks in advance for any help.


                                        -- Chaiya

[回答1]

You need to edit three scripts.

1. /usr/sbin/ppp-on.

Where put your username, password, remote phone number and port you are
using ttyS0 or ttyS1. 

2. /etc/ppp/ppp-on-dialer

Check the chat sequence with your provider. If needed modify it.

2. /etc/rc.d/rc.inet1

Comment out the following lines.

if [ "$GATEWAY" = "" }; then
        /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1B
fi

As the ppp link will be your default gateway.

Regards,

Sumon Ahmed Sabir

[回答2]

Thanks for your quick answer, But
        What I wanted to do is to setup my server as a PPP Server to let
people dial in to my server an surf the PPP. (Sorry for my English that
make you misunderstand).

[回答3]

You want to make your machine as ppp server so people can dial in to it.


For this look at the file

/etc/ppp/options

edit the file put your DNS address and tune the other parameters though
not necessary, default is good enough. 

create a file options.ttyS0 if your are using Com1 port.
put your local and remote address in the format
-----------------------
#options.ttyS0
local_ip:remote_ip
----------------------
where local_ip is your machine(server) IP Address and the remote_ip is the
ip address you want to assign the to machine dialing to your server.

now change your clients shell to /usr/sbin/pppd. 

If they are using bash or csh shell then you will need to type
/usr/sbin/pppd at the shell prompt to start the ppp session.

Check /var/log/messages for logs.


To allow dial in you must enable a getty to accept a call.

you can use uugetty which comes with slackware or you can install mgetty.

to configure uugetty you can check /usr/doc/getty_ps/Examples


Regards,

Sumon Ahmed Sabir

[回答4]

If I understand you correctly, you are wanting to setup a machine for
different people to dial in, or just one person?  I could lead you the
right way, but each is different.

[回答5]

Please visit:

http://www.falconweb.com/~linuxrx/HOWTO/sunsite-sources/PPP-HOWTO.html

Near the bottom of the page, search for 26. Setting up a PPP server section,
it's all detailed out there.

Regards,

Andy
<cramer@falconweb.com>
The Linux Resource Exchange
<http://www.falconweb.com/~linuxrx/>
Falcon Communications Group
<http://www.falconweb.com>

[完]


--

                              Enjoy Linux!
                          -----It's FREE!-----

※ 修改:.netiscpu 于 May 12 22:25:13 修改本文.[FROM: mtlab.hit.edu.cn]
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: mtlab.hit.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:4.348毫秒