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.

本文标签: 公网PCDN