零速下载:热门手机app,电脑软件下载中心!
首页 新闻资讯 安装教程 RedHat中上网rp-pppoe的安装方法

RedHat中上网rp-pppoe的安装方法

时间: 来源:网络 编辑:零速下载

ADSL(rp-pppoe 工具)安装、使用方法(本文基于 linuxCN 的原创文章修改而成,原文参见:http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=218&highlight=ADSL)《配置网卡》首先运行 netconfig 并选择 DHCP,保存、退出。《安装 rp-pppoe》然后下载最新的 rp-pppoe 源码文件(Google 里搜索一下)并在 root 下安装,Magic linux 里默认已经安装了。例如:进入linux,解压 rp-pppoe-3.5.tar.gz :#tar -zxf rp-pppoe-3.5.tar.gz进入生成的目录:#cd rp-pppoe-3.5在所在目录内运行脚本 go:#./go将自动进行编译和安装。《配置拨号》调用 /usr/sbin/adsl-setup 进行配置#adsl-setup当出现>>> Enter your PPPoE user name :输入ADSL帐号的用户名当出现>>> Enter the Ethernet interface connected to the ADSL modemFor Solaris, this is likely to be something like /dev/hme0.For Linux, it will be ethn, where 'n' is a number.(default eth0):输入 eth0 ,这是ADSL相连的网卡的名字当出现>>> Enter the demand values (default no):输入 no当出现>>> Enter the DNS inFORMation here:输入相应的 DNS 服务器 IP 地址(一般有2个),在 magic linux 下通常需要输入 server,即让系统自动分配 ip 地址当出现>>> Please enter your PPPoE password:输入你的 ADSL 帐号的密码当出现>>> Choose a type of firewall (0-2):输入 0 或 1当出现>>> Accept these settings and adjust configuration files (y/n)?如果输入的信息正确,输入 y ,完成配置,否则,输入 n 重新输入。《拨号上网》完成后使用命令:adsl-start 启动 PPPOE 客户端软件,进行连接,如果成功,将出现Connected;adsl-stop 断开和ISP的连接adsl-status 查看当前连接的状态《技巧提示》如果想在Linux系统启动时自动启动ADSL连接,输入以下命令#chkconfig --add adsl将在当前的运行级下加入ADSL的自启动脚本不想自动运行,则每次上网前选在终端下运行adsl-start即可!如果不知道相应DNS服务器的IP地址,可在 windows 里拨号后,在 MS-DOS 窗口里运行 ipconfig/all 查看 DNS Server 的 IP 地址(一般有两个)。如果本机上没有Windows,那么在本地域的其他装有 Windows 的机子上操作也可。例如:I:>ipconfig /allWindows 2000 IP ConfigurationHost Name . . . . . . . . . . . . : starPrimary DNS Suffix . . . . . . . :Node Type . . . . . . . . . . . . : BroadcastIP Routing Enabled. . . . . . . . : NoWINS Proxy Enabled. . . . . . . . : NoEthernet adapter 本地连接:Connection-specific DNS Suffix . :Descrīption . . . . . . . . . . . : Realtek RTL8139(A) PCI Fast EtherneAdapterPhysical Address. . . . . . . . . : 00-D0-F8-3D-CA-D8DHCP Enabled. . . . . . . . . . . : YesAutoconfiguration Enabled . . . . : YesAutoconfiguration IP Address. . . : 169.222.23.123Subnet Mask . . . . . . . . . . . : 255.255.0.0Default Gateway . . . . . . . . . :DNS Servers . . . . . . . . . . . :PPP adapter 连接设备 Realtek RTL8139(A) PCI Fast Ethernet Adapter:Connection-specific DNS Suffix . :Descrīption . . . . . . . . . . . : WAN (PPP/SLIP) InterfacePhysical Address. . . . . . . . . : 00-53-45-00-00-00DHCP Enabled. . . . . . . . . . . : NoIP Address. . . . . . . . . . . . : 221.206.209.250Subnet Mask . . . . . . . . . . . : 255.255.255.255Default Gateway . . . . . . . . . : 221.206.209.250DNS Servers . . . . . . . . . . . : 202.106.100.213202.106.87.65NetBIOS over Tcpip. . . . . . . . : Disabled可以看出:DNS Servers . . . . . . . . . . . : 202.106.100.213202.106.87.65'