我的笔记本网卡配置如下:
[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新手,请大家帮帮忙?看看这是怎么解决的??
小弟感激不尽!!!!
tangkunyin 于 2011-09-13 22:42:25发表:
[i=s] 本帖最后由 tangkunyin 于 2011-9-13 22:44 编辑 [/i]
对了,那个好像是要绑定网卡??
在windows下如图所示:
luodeke 于 2011-09-12 12:10:47发表:
如果对于NetworkManager不熟悉最好关了。不然很麻烦,首先我看你的命令里面没有启动:pppoe-start
然后,如果启动成功。但是还是不能上网,需要编辑:/etc/resolv.conf 把你那里的DNS服务器写上去。
lythonmao 于 2011-09-11 17:07:03发表:
对了,,字母一定都要用小写~~~
lythonmao 于 2011-09-11 17:06:22发表:
** 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
以上应该是你的配置,,我提出一些不同的地方,,,你试试看
** Summary of what you entered **
Ethernet Interface: eth0
User name: 02901105261
Activate-on-demand: no
DNS addresses: server
Firewalling: 0
User Control: yes
tangkunyin 于 2011-09-11 16:05:29发表:
具体一点啊??
怎么弄啊??
有截图吗?发一个!!
im叶飞 于 2011-09-11 15:56:21发表:
我也是 联通用的 拨号名令 是
防火墙不要开
直接 用pppoe-connet
看的获取ip 后
手动改dns 在 /etc/resolv.conf 中
我是山东的
dns是
nameserver 202.102.134.68
nameserver 202.102.128.68
tangkunyin 于 2011-09-11 15:55:35发表:
嗯 ,好的!
alick 于 2011-09-11 15:43:29发表:
传图片请使用高级回复的上传附件功能,以避免有些网站(如QQ空间、baidu hi)不允许图片外链的问题。
tangkunyin 于 2011-09-11 14:10:32发表:
我是陕西西安的联通用户,windows下用pppoe就可以的
在fedora15下用图形界面配置多了一个服务,如下:
这是在终端下
这该怎么办呢????
alick 于 2011-09-11 13:25:01发表:
1.楼主哪个省份的联通用户?各省的情况不一样。
不需要专门的客户端是么?2.
如果需客户端,那么用户名可能需要转换。
3.沙发中的图片无法显示。使用命令行pppoe和图形界面NetworkManager 的配置本质一样。
tangkunyin 于 2011-09-11 11:53:05发表:
[i=s] 本帖最后由 tangkunyin 于 2011-9-11 15:54 编辑 [/i]
这个最后经高人指点:
(1)、终端下输入:nm-connection-editor;
(2)、选择DSL就可以在图形界面下配置了;
可是随之而来的多了一个服务???
那个服务该怎么填呢??