有局域网linux怎么拨号,Linux操作系统下如何PPPOE拨号共享上网?

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。

全部

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值