1.简介
1.1×××
在公用网络上建立专用网络的技术。整个×××网络的任意两个节点之间的连接并没有传统专网所需的端到端的物理链路,而是架构在公用网络服务商所提供的网络平台,如Internet、ATM(异步传输模式〉、Frame Relay (帧中继)等之上的逻辑网络,用户数据在逻辑链路中传输。
1.2×××功能
1)信息包分类
2)宽带管理
3)通信量管理
4)公平宽带
5)传输保证
2.环境准备
[root@CentOS 7 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[root@CentOS 7 ~]# uname -r
3.10.0-327.el7.x86_64
[root@CentOS 7 ~]# getenforce
Disabled
[root@CentOS 7 ~]# systemctl status firewalld.service
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
[root@CentOS 7 ~]# ifconfig
eth0: flags=4163
inet 10.0.0.201 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::20c:29ff:fe40:1a4e prefixlen 64 scopeid 0x20
ether 00:0c:29:40:1a:4e txqueuelen 1000 (Ethernet)
RX packets 1271 bytes 333766 (325.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 149 bytes 17432 (17.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163
inet 172.16.1.201 netmask 255.255.255.0 broadcast 172.16.1.255
inet6 fe80::20c:29ff:fe40:1a58 prefixlen 64 scopeid 0x20
ether 00:0c:29:40:1a:58 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 744 (744.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3.部署×××
3.1设置内核转发
[root@CentOS 7 ~]# echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
[root@CentOS 7 ~]# sysctl -p
net.ipv4.ip_forward = 1
3.2安装PPTP
[root@CentOS 7 ~]# yum install -y pptpd
3.3配置连接网段
[root@CentOS 7 ~]# tail -2 /etc/pptpd.conf
localip 10.0.0.201
remoteip 172.16.1.200-210
3.4添加×××登陆用户及密码
[root@CentOS 7 ~]# cat /etc/ppp/chap-secrets
fengyu * 123456 *
3.5启动
[root@CentOS 7 ~]# systemctl start pptpd.service
4.Windows通过×××进入公司内网