配置通过pppoe包来完成,直接用yum来安装这个rpm包

[root@localhost Packages]# rpm -qa| grep pppoe
rp-pppoe-3.11-5.el7.x86_64

配置前,网卡信息

[root@localhost Packages]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWNlink/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000link/ether 00:1d:60:89:7f:31 brd ff:ff:ff:ff:ff:ffinet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic ens34valid_lft 43sec preferred_lft 43secinet6 fe80::21d:60ff:fe89:7f31/64 scope linkvalid_lft forever preferred_lft forever
55: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWNlink/ether b6:84:dd:d4:33:cd brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever

配置过程

[root@localhost network-scripts]# 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 NAMEEnter your Login Name (default root): cd02885838643INTERFACEEnter 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): ens34Do 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):DNSPlease 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: 202.98.96.68 #这里是成都DNS地址
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 202.98.96.69 #与上面一样,同样是成都DNS地址PASSWORDPlease enter your Password:
Please re-enter your Password:USERCTRLPlease enter 'yes' (three letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yesFIREWALLINGPlease 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 responsiblefor ensuring the security of your machine.  You are STRONGLYrecommended 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 gatewayfor a LAN
Choose a type of firewall (0-2): 0Start this connection at boot timeDo you want to start this connection at boot time?
Please enter no or yes (default no):yes** Summary of what you entered **Ethernet Interface: ens34
User name:          cd02885838643
Activate-on-demand: No
Primary DNS:        202.98.96.68
Secondary DNS:      202.98.96.69
Firewalling:        NONE
User Control:       yes
Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/resolv.conf(But first backing it up to /etc/resolv.conf.bak)
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@localhost network-scripts]# /sbin/ifup ppp0 #启动端口信息
[root@localhost network-scripts]#

配置完成后,网卡信息

[root@localhost Packages]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWNlink/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000link/ether 00:1d:60:89:7f:31 brd ff:ff:ff:ff:ff:ffinet 192.168.1.2/24 brd 192.168.1.255 scope global dynamic ens34valid_lft 30sec preferred_lft 30secinet6 fe80::21d:60ff:fe89:7f31/64 scope linkvalid_lft forever preferred_lft forever
55: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWNlink/ether b6:84:dd:d4:33:cd brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever
84: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN qlen 3link/pppinet 100.64.3.210 peer 100.64.0.1/32 scope global ppp0valid_lft forever preferred_lft forever
[root@localhost Packages]# ping www.baidu.com
PING www.a.shifen.com (180.97.33.108) 56(84) bytes of data.
64 bytes from 180.97.33.108: icmp_seq=1 ttl=56 time=32.8 ms
64 bytes from 180.97.33.108: icmp_seq=2 ttl=56 time=33.7 ms
64 bytes from 180.97.33.108: icmp_seq=3 ttl=56 time=33.4 ms
^C
--- www.a.shifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 32.811/33.332/33.748/0.389 ms

RHEL7平台下电信拨号上网配置相关推荐

  1. RouterOS(ROS)软路由PPPOE拨号上网配置指南(附授权镜像下载)

    本文将从零开始讲解Mikrotik RouterOS(ROS) PPPOE拨号上网配置,通过WinBox图形化操作,助力小白用户成功使用ROS进行上网,使用ROS内置的DNS缓存达到网页秒开的效果. ...

  2. linux操作系统adsl 上网设置,Linux操作系统下ADSL拨号上网详细步骤 -电脑资料

    本指南将帮助你在Ubuntu 6.06 LTS (Dapper Drake)下用PPPoE以太网modem建立ADSL网络连接, 1. 简介 虽然用路由器联网很常见,我们有时也需要用PPPoE直接连接 ...

  3. linux下3G拨号上网

    Linux下3G拨号上网 开发板型号 :FL2440 内核版本:linux-3.0 3G上网卡:ZTE MF626 SIM卡:中国移动 1. usb_modeswitch移植 usb_modeswit ...

  4. RouterOS(ROS)软路由光猫拨号上网配置

    光猫拨号在ROS中设置DHCP Client即可,不需要在Interfaces中里面添加PPPOE拨号,光猫拨号配置见下图. 1."IP"--"DHCP Client&q ...

  5. linux ppp拨号 USB,linux下ppp拨号上网

    转帖 如何用 Linux 拨号上网 一.Linux 上的 PPP Linux 中已经包括了点对点协议PPP,其主体是 pppd ,如果你已经使用过 Windows95 或 NT 的拨号网络,那么你已经 ...

  6. linux pppd ip up 脚本,Linux下pppd拨号脚本配置(转载)

    摘要 本文主要介绍了嵌入式Linux系统下使用pppd 2.4.4来进行PPP拨号需要使用的脚本是如何配置的,配置项的含义,同时也说明了如何来配置参数,实现ppp拨号上网. 一.问题提出 嵌入式Lin ...

  7. 阿雪的学习记录|解决Linux下PPPoE拨号上网不稳定的问题

    上次拨号上网成功之后,新的问题又出现了,那就是网络秒掉线且网速及其慢,归纳为网速不稳定,然后去网上找了很多方法,什么检查防火墙配置啊--这了那了的,都不太行呢,最后参考了这篇就解决啦- Ubuntu1 ...

  8. linux ppp用户管理,linux下ppp拨号上网

    转帖 如何用 Linux 拨号上网 一.Linux 上的 PPP Linux 中已经包括了点对点协议PPP,其主体是 pppd ,如果你已经使用过 Windows95 或 NT 的拨号网络,那么你已经 ...

  9. ubuntu下adsl拨号上网

    无论是电信还是联通,拨号软件都只有windows版本,根本没有考虑过linux用户,但是ubuntu这个优秀的系统怎么可能没有简单的拨号呢,下面由我给大家介绍几种linux拨号的方法,主要是分两种: ...

  10. 3G模块在WinCE系统上拨号上网配置过程描述

    DTM6211使用Wince下默认的unimodem稍加修改即可实现拨号上网. 一. 内核添加   图1 二. 注册表修改   图2 大唐的DTM6211的一些地方与unimodem的默认注册表配置不 ...

最新文章

  1. 【Qt】QtCreator无法调试终端程序,启动报错SIGSTOP
  2. 一起学ASP.NET Core 2.0学习笔记(一): CentOS下 .net core2 sdk nginx、supervisor、mysql环境搭建...
  3. 【2】HashMap
  4. 程序员面试金典 - 面试题 04.06. 后继者(循环中序遍历)
  5. LeetCode 122 买卖股票的最佳时机 II
  6. (87)Verilog HDL:七分频设计
  7. 文件服务器登入,密钥文件登录云服务器
  8. 【报告分享】2022年零售行业消费趋势新主张-京东+罗兰贝格.pdf(附下载链接)...
  9. 从小学4年级的数学课开始解释线性回归
  10. util.Date插入数据库有时差
  11. android组件化管理单例,Pigeon——支持增量编译和组件化开发的路由框架
  12. 解决 WKWebView goback执行无效的bug
  13. 高通android usb otg,Android OTG支持USB读卡器
  14. 浅谈![CDATA[ ]]
  15. python小程序短信发送助手
  16. 消除QTreeWidgetItem外层虚线框
  17. 一个很赞的ecshop微信商城系统!
  18. spring boot 外部容器tomat、jboss部署
  19. 2021年G3锅炉水处理找解析及G3锅炉水处理复审考试
  20. 复旦大学自考计算机软件难度,复旦大学自考本科难吗

热门文章

  1. South by Southwest任命Brightcove为2021年线上活动官方视频合作伙伴
  2. 查重有风险,小心论文被买卖!——iThenticate官方论文查重系统登录中国!
  3. VAR(向量自回归)模型的stata操作——关于期货现货价格联动关系的案例
  4. 2022-01-05 网工基础(十九)NAT基本原理与配置
  5. 使用高德开放平台显示指定的坐标点和线
  6. 平面设计中都有哪些风格?常用的风格有哪些?
  7. PHP基础教程(一)PHP快速入门
  8. 空降Leader,如何开展工作
  9. 手机壁纸尺寸android,APP设计手抄:5点安卓手机尺寸分辨率知识
  10. javaweb项目页面崩溃报错