您尚未登录。

#1 2013-08-23 11:27:26

zjn
会员
注册时间: 2013-08-21
帖子: 30

关于安装前的网络连接问题?

我打进pppoe-setup都还正常,可是用pppoe-connect就是不通,显示No such device.

离线

#2 2013-08-23 12:12:12

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: 关于安装前的网络连接问题?

试试这个?:

# systemctl start adsl

离线

#3 2013-08-23 12:40:51

zjn
会员
注册时间: 2013-08-21
帖子: 30

Re: 关于安装前的网络连接问题?

nopriler 说:

试试这个?:

# systemctl start adsl

还是不行。前面的那个no such device是怎么回事?

最近编辑记录 zjn (2013-08-23 12:41:24)

离线

#4 2013-08-23 13:17:22

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: 关于安装前的网络连接问题?

zjn 说:

还是不行。前面的那个no such device是怎么回事?

不清楚。
在 pppoe-setup 之后, pppoe-connect 之前执行

# pppoe-start

试试?

离线

#5 2013-08-23 13:19:08

zjn
会员
注册时间: 2013-08-21
帖子: 30

Re: 关于安装前的网络连接问题?

nopriler 说:
zjn 说:

还是不行。前面的那个no such device是怎么回事?

不清楚。
在 pppoe-setup 之后, pppoe-connect 之前执行

# pppoe-start

试试?

显示“time out”

离线

#6 2013-08-23 14:17:09

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: 关于安装前的网络连接问题?

# ip link

输出?

附:
# pppoe-setup
Welcome to the Roaring Penguin PPPoE client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default bxxxnxnx@sympatico.ca): <用户名>

INTERFACE

>>> Enter the Ethernet interface connected to the DSL 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): <使用 ip link 查看>

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 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 PPPoE password: <密码>   
>>> Please re-enter your PPPoE password: <密码>

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

** Summary of what you entered **

Ethernet Interface: <接口>
User name:          <用户名>
Activate-on-demand: No
DNS:                Supplied by ISP's server
Firewalling:        NONE

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

最近编辑记录 nopriler (2013-08-23 14:17:44)

离线

#7 2013-08-23 14:45:40

zjn
会员
注册时间: 2013-08-21
帖子: 30

Re: 关于安装前的网络连接问题?

nopriler 说:
# ip link

输出?

附:
# pppoe-setup
Welcome to the Roaring Penguin PPPoE client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default bxxxnxnx@sympatico.ca): <用户名>

INTERFACE

>>> Enter the Ethernet interface connected to the DSL 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): <使用 ip link 查看>

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 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 PPPoE password: <密码>   
>>> Please re-enter your PPPoE password: <密码>

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

** Summary of what you entered **

Ethernet Interface: <接口>
User name:          <用户名>
Activate-on-demand: No
DNS:                Supplied by ISP's server
Firewalling:        NONE

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

成功了,谢谢!

离线

#8 2013-08-24 09:42:50

zjn
会员
注册时间: 2013-08-21
帖子: 30

Re: 关于安装前的网络连接问题?

nopriler 说:
# ip link

输出?

附:
# pppoe-setup
Welcome to the Roaring Penguin PPPoE client setup.  First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good!  Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default bxxxnxnx@sympatico.ca): <用户名>

INTERFACE

>>> Enter the Ethernet interface connected to the DSL 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): <使用 ip link 查看>

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 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 PPPoE password: <密码>   
>>> Please re-enter your PPPoE password: <密码>

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

** Summary of what you entered **

Ethernet Interface: <接口>
User name:          <用户名>
Activate-on-demand: No
DNS:                Supplied by ISP's server
Firewalling:        NONE

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

为什么pppoe都显示了connected!但是还是ping www.baidu.com 不通(unkonwn hostname),但是有的时候ping 8.8.8.8可以通。

离线

#9 2013-08-24 10:27:16

nopriler
会员
注册时间: 2012-01-03
帖子: 393

Re: 关于安装前的网络连接问题?

zjn 说:

为什么pppoe都显示了connected!但是还是ping www.baidu.com 不通(unkonwn hostname),但是有的时候ping 8.8.8.8可以通。

没有重复发帖的必要。

离线

#10 2013-08-24 10:29:29

zjn
会员
注册时间: 2013-08-21
帖子: 30

Re: 关于安装前的网络连接问题?

nopriler 说:
zjn 说:

为什么pppoe都显示了connected!但是还是ping www.baidu.com 不通(unkonwn hostname),但是有的时候ping 8.8.8.8可以通。

没有重复发帖的必要。

哦。

离线

#11 2013-08-24 10:37:15

phoenixlzx
晩ご飯だよー
注册时间: 2011-08-19
帖子: 1,789
个人网站

Re: 关于安装前的网络连接问题?

ping 8.8.8.8 可以通那么就把8.8.8.8这个DNS写进去啊。

/etc/resolv.conf 里写

nameserver 8.8.8.8
nameserver 8.8.4.4

离线

#12 2013-08-24 10:39:33

zjn
会员
注册时间: 2013-08-21
帖子: 30

Re: 关于安装前的网络连接问题?

phoenixlzx 说:

ping 8.8.8.8 可以通那么就把8.8.8.8这个DNS写进去啊。

/etc/resolv.conf 里写

nameserver 8.8.8.8
nameserver 8.8.4.4

但那里面已经有了。

离线

页脚