Debian系统下安装PPPoE服务器

2024-10-11 19:21:23

1、安装好Debian 8.6.0系统,安装系统不做过多解释,一般根据自己的需求安装好即可

2、安装好Debian系统后,设置网卡eth0为Internet接入网卡,设置网卡eth1为PPPoE服务网卡,其中eth1接口只让它启动,不需要配置IP地址,你可以配置一个错误的IP地址,让网卡加载不了IP地址

Debian系统下安装PPPoE服务器

4、下载PPPoE服务器必须的两个软件:ppp-2.4.7.tar.gzrp-pppoe-3.12.tar.gz

5、安装编译必须组件aptitude -y install gcc g++ c++ make

Debian系统下安装PPPoE服务器

7、安装ppp软件,分别按照以下步骤执行:tar -zxvf ppp-2.4.7.tar.gzcd ppp-2.4.7./configuremakemake install

Debian系统下安装PPPoE服务器

8、安装rp-pppoe颍骈城茇-3.12,分别按照以下步骤执行:tar -zxvf rp-pppoe-3.12.tar.gzcd rp-pppoe-3.12./go向导配置如下Ethernet Interface: eth1User name: itibiaActivate-on-demand: NoPrimary DNS: 192.168.0.10Secondary DNS: 58.240.57.33Firewalling: MASQUERADE>>> Accept these settings and adjust configuration files (y/n)? yAdjusting /etc/ppp/pppoe.confAdjusting /etc/resolv.conf (But first backing it up to /etc/resolv.conf-bak)Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets (But first backing it up to /etc/ppp/pap-secrets-bak) (But first backing it up to /etc/ppp/chap-secrets-bak)

Debian系统下安装PPPoE服务器Debian系统下安装PPPoE服务器

10、配置服务器文件修改vim /etc/ppp/option文件,检测以下是否把#去掉,如果没有茧盯璜阝就把前面的#注释取消掉ms-dns 192.168.0.10ms-dns 58.240.57.33asyncmap 0authcrtsctslockhide-passwordmodempassive+pap+chaplcp-echo-interval 30lcp-echo-failure 4noipxpassivehide-passwordmodem

11、新建一个地址池文件,ipaddress_poolvim /etc/ppp/ipaddress_pool172.168.28.1-200

Debian系统下安装PPPoE服务器

13、修改pppoe-server-options文件,vim /etc/ppp/pppoe-server-options# PPP options for the PPPoE server# LIC: GPL#require-pap#loginlcp-echo-interval 10lcp-echo-failure 2mtu 1492

Debian系统下安装PPPoE服务器
猜你喜欢