linux查看pppoe拨号账户

linux查看pppoe拨号账户,第1张

1、搜寻PPPoE相关软件,比如rp-pppoe

yum search pppoe

1

1

2、使用yum安装rp-pppoe

yum install rp-pppoe -y

1

1

3、开始配置PPPoE连接

pppoe-setup

1

1

4、输入ISP提供的账户(宽带账户)

5、输入以太网卡代号,默认是eth0(CentOS 6为eth0,CentOS 7为ens33)

6、配置:若长时间连线,连线会被自动中断(选no)

7、配置主DNS服务器(114.114.114.114)

8、配置次DNS服务器(8.8.8.8)

9、两次输入账户密码以确认(宽带密码,输入没有不显示“*”,如果输错,会提示是否重新输入,选择y)

10、配置普通账户是否有网络连接权限(y或者n)

11、配置防火墙(没有特殊需求选0不配置)

12、配置是否开机自动拨号连接(yes或no)

13、确认刚填写的配置信息(y或n)

pppoe拨号相关命令

连接网络:/sbin/ifup ppp0

断开连接:/sbin/ifdown ppp0

查看网络状态:/sbin/pppoe-status

在kaliLinux下配置pppoe,一般有以下步骤:1.安装pppoe软件。ape-getinstallpppoe即可。2.设置拨号属性:到了这一步,如果没有问题的话,应该就可以正常连上pppoe服务器了。

不是用现成的rp-pppoe-3.10-8.el6.x86_64.rpm吗,下面是我以前在RHEL6里面的 *** 作步骤:

1) Download rp-pppoe-3.10-8.el6.x86_64.rpm

You can search it on http://rpm.pbone.net/, choose the one for RedHat EL 6.

2) Install rp-pppoe-3.10-8.el6.x86_64.rpm

[root]# rpm -Uvh rp-pppoe-3.10-8.el6.x86_64.rpm

warning: rp-pppoe-3.10-8.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY

Preparing...########################################### [100%]

1:rp-pppoe ########################################### [100%]

3) Setpup PPPoE

[root]# 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...

The following DSL config was found on your system:

Device: Name:

ppp0 DSLppp0

Please enter the device if you want to configure the present DSL config

(default ppp0) or enter 'n' if you want to create a new one: #Press Enter to accept the default value

LOGIN NAME

Enter your Login Name: 075588888888@163.gd #Input your ADSL account provided by ISP and press Enter

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): #Press Enter to accept the default value

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): #Press Enter to accept the default value

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 #Input 'server' and press Enter

PASSWORD

Please enter your Password: 123456 #Input your ADSL password provided by ISP

Please re-enter your Password: 123456 #Input your ADSL password provided by ISP

USERCTRL

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

normal user to start or stop DSL connection (default yes): #Press Enter to accept the default value

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 setuphowever, 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 #Input '0' and press Enter

Start this connection at boot time

Do you want to start this connection at boot time?

Please enter no or yes (default no):yes #Input 'yes' and press Enter

** Summary of what you entered **

Ethernet Interface: eth0

User name: 075588888888@163.gd

Activate-on-demand: No

DNS addresses: Supplied by ISP's server

Firewalling:NONE

User Control: yes

Accept these settings and adjust configuration files (y/n)? y #Input 'y' and press Enter

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]# ifconfig

eth0 Link encap:Ethernet HWaddr 00:21:CC:C6:10:54

inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0

UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1

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

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

collisions:0 txqueuelen:1000

RX bytes:7355622 (7.0 MiB) TX bytes:1311797 (1.2 MiB)

Interrupt:20 Memory:f3900000-f3920000

loLink encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:16436 Metric:1

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

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

collisions:0 txqueuelen:0

RX bytes:628 (628.0 b) TX bytes:628 (628.0 b)

ppp0 Link encap:Point-to-Point Protocol #The interface ppp0 created successfully

inet addr:119.137.75.6 P-t-P:119.137.72.1 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1

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

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

collisions:0 txqueuelen:3

RX bytes:404 (404.0 b) TX bytes:54 (54.0 b)

[root]# pppoe-status

ppppoe-status: Link is down -- could not find interface corresponding to

pppd pid 27651

[root]# ifup ppp0

[root]# pppoe-status

pppoe-status: Link is up and running on interface ppp0

332: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP>mtu 1492 qdisc pfifo_fast state UNKNOWN qlen 3

link/ppp

inet 119.137.75.6 peer 119.137.72.1/32 scope global ppp0

[root]# ping www.baidu.com

PING www.a.shifen.com (220.181.111.148) 56(84) bytes of data.

64 bytes from 220.181.111.148: icmp_seq=1 ttl=55 time=73.7 ms

64 bytes from 220.181.111.148: icmp_seq=2 ttl=55 time=74.0 ms

^C

--- www.a.shifen.com ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1902ms

rtt min/avg/max/mdev = 73.794/73.940/74.086/0.146 ms


欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/yw/6212510.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-03-18
下一篇2023-03-18

发表评论

登录后才能评论

评论列表(0条)

    保存