📄 adsl组网说明.txt
字号:
然后按着提示上的做就行了,这部分在本版精华已经讲得颇为详细了,本不想多说,但是总是有些人以自己“不懂英文“为名在下面JJYY,所以也在这里顺带提提。
[code:1:5ef37b98d0][root@Cloud root]# adsl-setup
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
LOGIN NAME
Enter your Login Name (default root):
输入你的ISP给你的帐号名
INTERFACE
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 ethX, where 'X' is a number.
(default eth0): eth1
输入你的连接ADSL modem的网卡的设备名,我的是eth1。
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
Enter the demand value (default no):
通常来说用default no就可以了,一直在线,如果填yes,那么在你设置的闲置时间内没有网络数据传输,那么rp-pppoe会自动把连接断掉。国内大部分都是包月,所以这个功能应该用不上。
DNS
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
Enter the DNS information here: 202.98.198.168
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 202.98.192.68
填入你的ISP的静态DNS server,nic.txt中应该保存了,如果你的ISP提供的是动态DNS地址,就填入server(小写)。
PASSWORD
Please enter your Password:
Please re-enter your Password:
输入密码
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes):
是否允许普通用户打开,关闭adsl连接。默认yes
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
Choose a type of firewall (0-2): 2
选择防火墙,我选的2
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):
是否在启动的时候就拨号连接,默认no
** Summary of what you entered **
Ethernet Interface: eth1
User name: *****
Activate-on-demand: No
Primary DNS: 202.98.198.168
Secondary DNS: 202.98.192.68
Firewalling: MASQUERADE
User Control: yes
Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/resolv.conf
(But first backing it up to /etc/resolv.conf.bak)
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)
这是你输入信息的一个摘要,如果要修改的话可以对adjusting字段后面的那些文件做修改,或者
Congratulations, it should be all set up!
Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
to bring it down.
Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.
ifup ppp0 打开连接,ifdown ppp0关闭连接,adsl-status,查阅相关信息。
[/code:1:5ef37b98d0]
通常来说我们常用的是adsl-start,adsl-status,adsl-stop。
如果你的adsl不能连接上,请参看rp-pppoe解包后的根目录下的doc/HOW-TO-CONNECT,另外rp-pppoe的安装请看其根目录下的README
[size=18:5ef37b98d0]5 adsl连接共享设置[/size:5ef37b98d0]
这一步,弄得我很头晕,因为自己的网络知识实在是有限得很,在网上搜的资料,一部分说要添加静态路由,一部分用squid,看了半天不明所以,后来在cu的一篇文章中找到了可用的方法,不保证其他的机器上能行。
原文[url]http://bbs.chinaunix.net/forum/viewtopic.php?t=164907&highlight=linux[/url]
我输入的命令是:
[code:1:5ef37b98d0]echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -F
/sbin/iptables -t nat -A POSTROUTING -s 210.31.34.0/28 -j MASQUERADE
/sbin/iptables -A FORWARD -s 210.31.34.0/28 -j ACCEPT[/code:1:5ef37b98d0]
然后在客户机上不管是linux还是windows就可以访问internet了。
上面的设置重启后会失效,将它写成脚本,自启动即可,具体作法大家自己搜下cu好了,我实在写得很累,改天补完,如果有什么疏漏,错误请各位斧正。
特价Dimension E520强大性能轻松得!超值价¥4999!
免费1G内存和DVD/RW升级!Inspiron 640m双核笔记本仅¥6699!
【频道首页】【对本文感兴趣】【大 中 小】【发MAIL给好友】【收藏】【打印】【回到顶部】家庭网络解决方案导航:家庭网络解决方案新报 | 家庭网络解决方案图片 | 家庭网络解决方案排行榜 | 论坛 | 产品库 | 订阅
更多相关:
我要评评 买笔记本,台式机 拨打800-858-2399,为您量身打造!
每
日
热
点 ·降价硝烟再起 四成酷睿2笔记本价格火拼
·AM2闪龙集体跳水 1GB内存疯跌232元
·AM2双核速龙掀降价潮 热门AMD CPU排行
·限期狂促 金邦白金1GB/800特价518元
·奔腾D915夺魁 人气最旺英特尔CPU全搜罗
·双核速龙4600+破千元 内存全面降价
·数万网友评选 五款nForce550主板人气PK
·买一送一 超胜"黄金条"内存全国促销
·惠普V3240夺冠 热门6000元内笔记本排行
·惠普华硕旗鼓相当 3月超人气笔记本搜罗
相关文章
·续写七年辉煌—腾讯网启用全新品牌标识 [2006年01月04日]
·趋势科技回顾--2005年恶意程序的六大创新与突破 [2006年01月04日]
·关于腾迅QQ换标致的官方声明 [2006年01月04日]
·三星携手联通推出无线上网套餐项目 [2006年01月04日]
·西部数据2倍扩充Raptor(猛禽)容量至150GB [2006年01月04日]
·QQ带你玩转数字音乐魔方 [2006年01月04日]
·QQ将音乐植入互联网生活 [2006年01月04日]
·NETGEAR智能交换机产品线一骑绝尘 [2006年01月04日]
攒机 GPS 漫步者 惠普 联想
笔记本 显示器 游戏 手机 dc
美图 手机图 搞笑 卡通 偷拍
动漫 壁纸 漫画 表情 vagaa
MP4 诺基亚 劲舞团 瑞星 神泣
讯雷 金山 nba 小说 网吧 bt
张钰 宫 游戏 动画 笑话
跑跑 周杰伦 刘亦菲 死神 解决方案 文章关注排行1Eicon Networks携手拓..2祝贺神州数码网络荣获..3奥维通设备获选北海道..4“分道扬镳”之年,中..5亿赛通科技领先世界推..6QQ助阵《无极》 公映首..7HP工作站助阿姆斯特朗..8关于腾迅QQ换标致的官..9西部数据年终畅谈硬盘..10华硕:加修渠道,暗战.. 产品一键通
手机 MP3 数码相机 笔记本 PC 摄像机 主板 显卡 摄像头 CPU 硬盘 U盘 内存 机箱 音箱 LCD CRT 散热器 打印机 鼠标 DVD刻录 一体机 投影机 键鼠套装 服务器 交换机 更多..
ZOL简介 | 用户注册 | 广告服务 | 招聘 | ZOL记事 | 站点地图 | 联系方式 | 欢迎投稿 | 图库 | RSS订阅
北京海淀区知春路113号银网中心A座9F 010-62550505 反馈留言板 传真:010-62529275
Copyright ?1999 - 2007 ZOL. All rights reserved. 中关村在线 版权所有. 京ICP证010391号
CI@BDDIBACF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -