国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

linux下PPPOE撥號共享上網的設置

2024-08-28 00:06:49
字體:
來源:轉載
供稿:網友
1、 網卡配置。
兩塊網卡,eth0為撥號網卡,IP:192.168.1.1(其他的地址也可);eth1為內網網卡,IP:192.168.0.1。掩碼均為255.255.255.0。 局域網網段為192.168.0.0。
注意:此處兩塊網卡均不能設網關。
2、 PPPoE軟件的升級與安裝
1) 在 http://www.roaringpenguin.com/pppoe/#download 下載
2) 安裝rp-pppoe。以root身份執行
rpm –Uvh rp-pppoe-3.5-1.i386.rpm
3、 修改/etc/ sysctl.conf
將其中的
net.ipv4.ip_forward = 0
改為
net.ipv4.ip_forward = 1
4、 去除ipchains模塊,只選擇iptables方法如下:
1)setup
2)選擇system service
3)去除ipchains
4)選中iptables
5)重啟機器
5、 PPPoE客戶端配置
在rp-pppoe-3.5-1.i386.rpm安裝完畢后,接下來就可進行PPPoE客戶端配置了。過程如下。
#/usr/sbin/adsl-setup
>>> Enter your PPPoE user name: ——此處輸入撥號帳號的用戶名
>>> Enter the Ethernet interface connected to the ADSL modem For Solaris, this is likely to be something like /dev/hme0. For Linux, it will be ethn, where n is a number. (default eth0): ——輸eth0
>>> Enter the demand value (default no): ——輸no
>>> Enter the DNS information here: ——輸210.52.149.2(視當地運營商的DNS服務器IP而定)
>>> Please enter your PPPoE password: ——輸網通用戶口令
>>> Choose a type of firewall (0-2): ——輸0
>>> Accept these settings and adjust configuration files (y/n)? ——輸y
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 视频| 贺州市| 鹰潭市| 祁连县| 兴宁市| 崇阳县| 涞水县| 徐闻县| 开封市| 乐山市| 彰化县| 永登县| 临武县| 社会| 天长市| 紫阳县| 益阳市| 西乌珠穆沁旗| 夏邑县| 恭城| 江门市| 肥乡县| 南雄市| 遵义县| 手机| 景洪市| 宜君县| 嘉义市| 湖口县| 东乡县| 政和县| 临猗县| 西乌| 河源市| 招远市| 老河口市| 左云县| 玛纳斯县| 台州市| 余江县| 噶尔县|