linux无法pppoe上网,fedora15用联通pppoe无法拨号上网?求助??

fedora15用联通pppoe无法拨号上网?求助??

发布时间:2011-09-10 15:44:13来源:红联作者:tangkunyin

我的笔记本网卡配置如下:

[root@tangkunyin ~]# ifconfig -a

eth0 Link encap:Ethernet HWaddr 70:71:BC:95:9B:15

inet6 addr: fe80::7271:bcff:fe95:9b15/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:5 errors:0 dropped:5 overruns:0 frame:0

TX packets:8 errors:0 dropped:0 overruns:0 carrier:1

collisions:0 txqueuelen:1000

RX bytes:300 (300.0 b) TX bytes:648 (648.0 b)

Interrupt:45

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:208 errors:0 dropped:0 overruns:0 frame:0

TX packets:208 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:16168 (15.7 KiB) TX bytes:16168 (15.7 KiB)

virbr0 Link encap:Ethernet HWaddr 52:43:C8:60:96:E0

inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:11 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 b) TX bytes:3855 (3.7 KiB)

wlan0 Link encap:Ethernet HWaddr D8:5D:4C:CB:BD:7F

BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

在windows7下用pppoe就能拨号上网,但是linux下就不行了:

[root@tangkunyin ~]# cd /sbin

[root@tangkunyin sbin]# adls-setup

bash: adls-setup: command not found...

[root@tangkunyin sbin]# pppoe-setup

Welcome to the PPPoE 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): 02901105261

INTERFACE

Enter the Ethernet interface connected to the PPPoE 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): eth0

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): no

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: server

PASSWORD

Please enter your Password:

Please re-enter your Password:

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow

normal user to start or stop DSL connection (default yes): 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

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: eth0

User name: 02901105261

Activate-on-demand: No

DNS addresses: Supplied by ISP's server

Firewalling: MASQUERADE

User Control: yes

Accept these settings and adjust configuration files (y/n)? y

Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0

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)

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/pppoe-status /etc/sysconfig/network-scripts/ifcfg-ppp0'

to see the link status.

[root@tangkunyin sbin]# pppoe-connect

/etc/ppp/firewall-masq: line 64: /proc/sys/net/ipv4/conf/ppp0/rp_filter: No such file or directory

RTNETLINK answers: No such process

RTNETLINK answers: No such process

Using interface ppp0

Connect: ppp0 /dev/pts/1

CHAP authentication failed: CHAP authentication failure, unit 6493

CHAP authentication failed

Modem hangup

Connection terminated.

RTNETLINK answers: No such process

Using interface ppp0

Connect: ppp0 /dev/pts/1

CHAP authentication failed: CHAP authentication failure, unit 6491

CHAP authentication failed

Connection terminated.

tcflush failed: Input/output error

RTNETLINK answers: No such process

Using interface ppp0

Connect: ppp0 /dev/pts/1

CHAP authentication failed: CHAP authentication failure, unit 6489

CHAP authentication failed

Modem hangup

Connection terminated.

RTNETLINK answers: No such process

Using interface ppp0

Connect: ppp0 /dev/pts/1

CHAP authentication failed: CHAP authentication failure, unit 6487

CHAP authentication failed

Modem hangup

Connection terminated.

RTNETLINK answers: No such process

^C

[root@tangkunyin sbin]# ifup ppp0

/usr/sbin/adsl-start: line 217: 27278 Terminated $CONNECT "$@" > /dev/null 2>&1

RTNETLINK answers: No such process

总是出现上面的代码!!!!!!??我是linux新手,请大家帮帮忙?看看这是怎么解决的??

小弟感激不尽!!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Linux中,PPPoE拨号是一种常见的上网方式。你可以通过使用NetworkManager-tui(网络管理器的文本用户界面)来设置PPPoE连接。 首先,你需要安装NetworkManager-tui工具。在Fedora中,你可以使用以下命令进行安装: ``` sudo dnf install NetworkManager-tui ``` 或者在旧版本的Fedora中,你可以使用以下命令: ``` sudo yum install NetworkManager-tui ``` 安装完成后,你可以使用以下命令来打开NetworkManager-tui界面: ``` nmtui ``` 在NetworkManager-tui界面中,选择"Edit a connection"(编辑连接),然后选择"Add"(添加)来创建一个新的连接。在选择连接类型时,选择"DSL"(数字用户线路)连接,这是PPPoE连接的类型。按照提示输入你的PPPoE账户信息,包括用户名和密码。完成后,你可以选择"Activate"(激活)连接。 这样,你就可以使用PPPoE拨号连接互联网了。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [【Linux】如何简单地进行PPPOE拨号连接/如何快速联网-nmtui](https://blog.csdn.net/weixin_42376016/article/details/126093974)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值