偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

pppoe server的設(shè)定

網(wǎng)絡(luò) 網(wǎng)絡(luò)管理
文章摘要:對(duì)于pppoe server的內(nèi)容,我們這次主要講解的就是在routerOS上架設(shè)pppoe server的過(guò)程。那么具體內(nèi)容如下。

對(duì)于PPPoE的配置,我們可以在很多平臺(tái)和設(shè)備上完成。那么今天我們講解的就是routerOS上架設(shè)pppoe server,archlinux當(dāng)pppoe client,archlinux上有一塊網(wǎng)卡eth0。那么現(xiàn)在我們就來(lái)看看具體的操作步驟吧。

目的:

archlinux pppoe撥號(hào)到pppoe server

pppoe server 配置
   service name   :   pppoe-service
   local address   :   192.168.88.210
   remote address   :   192.168.88.211-192.168.88.220
   secret name   :   test
   secret password   :   123456
   caller id   : 
ip-->dns-->settings
   primary dns   :   192.168.88.89
   seconday dns   :   202.100.64.68

步驟如下:

Quotation

注意:

/etc/rc.conf 里注意的兩點(diǎn)

pppoe和eth0原來(lái)的ip配置沒(méi)有關(guān)系的,但是pppoe和routes 配置有關(guān)系,如果想使用pppoe獲得的網(wǎng)關(guān)那么就修改為 ROUTES=(!gateway)

1、安裝好這兩個(gè)包,可以先 pacman -Q | grep ppp 命令查看下是否安裝
[root@myhost ~]# pacman -S ppp rp-pppoe

2、未配置pppoe前先查看下/etc/resolv.conf,建議先備份一下文件
[root@vkill ~]# ls -l /etc/resolv.conf
lrw-r--r-- 1 root root 20 Aug   9 10:09 /etc/resolv.conf

3、配置pppoe
[root@myhost ~]# pppoe-setup
>>>enter your pppoe user name   :test
>>>enter eth ethernet interface connected to the DSL modem (default eth0)   :eth0
>>>enter the demand value (default no)   :no
>>>enter the DNS information here   :server
>>>please enter your pppoe password   :123456
>>>please re-enter your pppoe password   :123456
>>>choose a type of firewall   :2
>>>accept these settings and adjust configuration files (y/n)   :y

4、修改pppoe client配置
[root@myhost ~]# vi /etc/ppp/pppoe.conf
#幾個(gè)需要注意的地方
defaultroute=yes
#servicename如果局域網(wǎng)內(nèi)有多個(gè)pppoe server時(shí)這個(gè)就有用了,如果時(shí)連接電信adsl就留空
#具體參見(jiàn)http://blog.vkill.net/read.php?75
servicename=pppoe-service 

5、開(kāi)啟連接pppoe,連接成功
[root@myhost ~]# pppoe-start
. Connected!

6、再次查看下/etc/resolv.conf,可以看到已經(jīng)變?yōu)榉?hào)連接了,所以在使用pppoe前還是備份下/etc/resolv.conf比較好
[root@vkill ~]# ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 20 Aug   9 10:09 /etc/resolv.conf -> /etc/ppp/resolv.conf
[root@vkill ~]# ls -l /etc/ppp/resolv.conf
-rw-r--r-- 1 root root 50 Aug   9 10:10 /etc/ppp/resolv.conf

注意:
默認(rèn)pppoe-start成功后/etc/resolv.conf權(quán)限是777,/etc/ppp/resolv.conf權(quán)限是644
如果發(fā)現(xiàn)普通用戶無(wú)法使用dns時(shí)有可能就是/etc/resolv.conf權(quán)限的問(wèn)題,手動(dòng)修改下權(quán)限即可
[root@myhost ~]# chmod 777 /etc/resolv.conf
[root@myhost ~]# chmod 644 /etc/ppp/resolv.conf

7、ifconfig查看,可以看到多了一個(gè)ppp0連接
[root@vkill ~]# ifconfig
......
ppp0       Link encap:Point-to-Point Protocol
           inet addr:192.168.88.219   P-t-P:192.168.88.210   Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST   MTU:1488   Metric:1
           RX packets:10 errors:0 dropped:0 overruns:0 frame:0
           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:3
           RX bytes:308 (308.0 b)   TX bytes:227 (227.0 b)

8、查看當(dāng)前路由
[root@myhost ~]# route
destination   gateway   geenmask   flags   metric   ref   use   iface
......
default     *   0.0.0.0     U   0   0   0   ppp0
如未看到default ... ppp0這條,需要手動(dòng)創(chuàng)建,命令如下
[root@myhost ~]# route add default dev ppp0

9、查看dns,可以看到都獲取到了
[root@myhost ~]# cat /etc/resolv.conf
nameserver 192.168.88.89
nameserver 202.100.64.68

10、設(shè)置開(kāi)機(jī)自動(dòng)撥號(hào)
[root@myhost ~]# vi /etc/rc.conf
#添加adsl到DAEMONS就可以了,@是后臺(tái)
DAEMONS=(syslog-ng network netfs crond sshd @adsl)

11、如果pppoe server綁定了mac地址,怎么連接?
試驗(yàn)時(shí)pppoe server 修改一配置
   secret name   :   test
   secret password   :   123456
   caller id   :   00:01:23:45:67:89
首先修改/etc/rc.conf
[root@vkill ~]# vi /etc/rc.conf
......
#修改為如下設(shè)置,照個(gè)人情況
eth0="eth0 hw ether 00:01:23:45:67:89"
eth1="eth0 192.168.88.100"
INTERFACES=(eth0 eth1)
修改完成后重啟網(wǎng)絡(luò)后連接就可以了
[root@vkill ~]# /etc/rc.d/network restart
[root@vkill ~]# /etc/rc.d/adsl restart

后記:
pppoe-start 命令等價(jià)于 /etc/rc.d/adsl restart
pppoe-stop 命令等價(jià)于 /etc/rc.d/adsl stop
pppoe的密碼保存在 CHAP密碼文件 /etc/ppp/chap-secrets 中,要是pppoe密碼變根了可以直接去這個(gè)文件修改

責(zé)任編輯:佟健 來(lái)源: hi.baidu.com
相關(guān)推薦

2010-09-07 16:08:21

PPPoE Serve

2010-09-16 12:40:04

PPPOE SERVE

2010-09-16 10:14:17

PPPoE Serve

2010-09-09 17:34:19

PPPoE Serve

2010-09-16 09:52:46

2010-09-16 10:21:47

PPPoE Serve

2010-09-07 13:57:09

PPPoE Serve

2010-09-07 13:51:07

PPPoE Serve

2011-08-08 15:23:06

PPPOE

2010-09-14 15:46:23

DI-504路由器設(shè)定PPPoE上網(wǎng)

2010-09-06 15:56:12

PPPOE Serve

2010-09-07 11:51:02

ACS SERVER認(rèn)PPPOE配置

2011-08-08 14:44:11

2010-07-06 17:05:22

PPPOE協(xié)議

2010-05-26 08:47:00

索引SQL Server

2010-09-07 15:34:14

2010-04-27 09:48:09

2010-07-08 17:28:02

2010-09-07 15:56:37

PPPoE會(huì)話

2010-09-09 17:05:37

PPPoE協(xié)議
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)