admin管理员组文章数量:1567918
PCDN测试拨号方法:
环境:
系统:centos7系统
网卡配置:
enp5s0f0配置的有公网管理IP
enp5s0f1,用于拨号,网线接入未做任何配置
1、安装拨号软件
[root@centos7 ~]# yum -y install rp-pppoe
2、配置虚拟网卡
[root@centos7 ~]# ip a ##查看网卡信息
##配置虚拟网卡用来同时拨多个账号
[root@centos7 ~]# ip link add macvlan0 link enp5s0f1 type macvlan mode bridge
[root@centos7 ~]# ip link add macvlan1 link enp5s0f1 type macvlan mode bridge
[root@centos7 ~]# ip link add macvlan2 link enp5s0f1 type macvlan mode bridge
[root@centos7 ~]# ip link set macvlan2 up
[root@centos7 ~]# ip link set macvlan2 up
[root@centos7 ~]# ip link set macvlan2 up
3、配置拨号上网
[root@centos7 ~]# 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): test1 ###拨号账户
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):macvlan0 ##用哪个端口进行拨号,这个是配置的虚拟接口macvlan0,macvlan
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.
版权声明:本文标题:Centos7在公网使用PCDN拨号 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1726582853a1076319.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论