linux *** L2TP客戶端撥號

系統: rhel6.2 x86_64  
node

過程:服務器

1. rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmide

2. vi /etc/yum.repo.d/epel.repo  修改 https爲 httpspa

3. yum install yum install xl2tpddebug

4. 改配置文件日誌

# vi /etc/xl2tpd/xl2tpd.confrem

[lac test***]it

name = xxx(***帳號名)class

lns = xx.xx.xx.xx(***服務器IP)test

pppoptfile = /etc/ppp/peers/test***.l2tpd

ppp debug = yes

# vi /etc/ppp/peers/test***.l2tpd 

remotename test***

user "xxx" (***帳號)

password "xxxx" (***密碼)

unit 0

lock

nodeflate

nobsdcomp

noauth

persist

nopcomp

noaccomp

maxfail 5

debug

5. 啓動xl2tpd

/etc/init.d/xl2tpd start

6. 撥號與中止

echo 'c test***' > /var/run/xl2tpd/l2tp-control

echo 'd test***' > /var/run/xl2tpd/l2tp-control

7. 日誌

tail -f /var/log/message

相關文章
相關標籤/搜索