Tổng quan các bước triển khai:
- Cấu hình PPTP VPN trên Cisco Router.
- Kiểm tra kết nối PPTP VPN trên Cisco Router.
Các bước thực hiện:
Cấu hình PPTP VPN trên Cisco Router.
- Cấu hình PPTP VPN trên Router ISR2901, có thể gán IP trên Interface Virtual-Template1 trùng với IP của Interface g0/0 bằng lệnh "ip address 192.168.0.254 255.255.255.0".
+ ppp encrypt mppe 128: Thiết lập sử dụng chuẩn mã hóa Microsoft Point-to-Point Encryption (MPPE) 128 bit.
+ ip nat inside: Thực hiện lệnh này ở chế độ "interface Virtual-Template1" để cho phép kết nối PPTP VPN có thể truy cập Internet.
+ username pptpuser01 privilege 15 password cisco@123: Một tài khoản User có thể được sử dụng chung cho nhiều kết nối PPTP VPN.
vpdn enablevpdn-group 1accept-dialinprotocol pptpvirtual-template 1exitexitinterface Virtual-Template1ip unnumbered g0/0peer default ip address pool PPTP-Poolno keepaliveppp encrypt mppe 128ppp authentication ms-chap ms-chap-v2ip nat insideexitip local pool PPTP-Pool 192.168.1.120 192.168.1.125username pptpuser01 privilege 15 password cisco@123username pptpuser02 privilege 15 password cisco@123username pptpuser03 privilege 15 password cisco@123
- Kiểm tra cấu hình LAN.
R2901#show running-config interface g0/0Building configuration...Current configuration : 212 bytes!interface GigabitEthernet0/0ip address 192.168.0.254 255.255.0.0ip nat insideip nat enableip virtual-reassembly inip tcp adjust-mss 1452ip policy route-map RedirectSSHduplex autospeed autoendR2901#
- Kiểm tra cấu hình WAN.
R2901#show ip interface brief | include DialerDialer1 14.241.233.112 YES IPCP up upR2901#
R2901#show running-config interface dialer 1Building configuration...Current configuration : 351 bytes!interface Dialer1ip address negotiatedip mtu 1454ip nat outsideip nat enableip virtual-reassembly inencapsulation pppip tcp adjust-mss 1452dialer pool 1dialer-group 1ppp authentication pap chap callinppp chap hostname pmpcareppp chap password 0 25954ecbppp pap sent-username pmpcare password 0 25954ecbno cdp enableendR2901#
R2901#show running-config interface g0/1Building configuration...Current configuration : 195 bytes!interface GigabitEthernet0/1description $VNPT$no ip addressip tcp adjust-mss 1452duplex autospeed autopppoe enable group globalpppoe-client dial-pool-number 1no cdp enableendR2901#
Kiểm tra kết nối PPTP VPN trên Cisco Router.
- Kiểm tra danh sách các User đang kết nối PPTP VPN tới Router.
R2901#show ip route | include Virtual-AccessC 192.168.0.121 is directly connected, Virtual-Access2R2901#
R2901#show vpdn session%No active L2TP tunnelsPPTP Session Information Total tunnels 1 sessions 1LocID RemID TunID Intf Username State Last Chg Uniq ID29763 56506 51829 Vi2 cisco estabd 00:00:27 49R2901#
R2901#show ip interface briefInterface IP-Address OK? Method Status ProtocolEmbedded-Service-Engine0/0 unassigned YES NVRAM administratively down downGigabitEthernet0/0 192.168.0.254 YES NVRAM up upGigabitEthernet0/1 unassigned YES NVRAM up upFastEthernet0/0/0 unassigned YES NVRAM administratively down downFastEthernet0/1/0 unassigned YES NVRAM administratively down downFastEthernet0/1/1 unassigned YES NVRAM administratively down downSerial0/3/0 unassigned YES NVRAM administratively down downDialer1 14.241.233.112 YES IPCP up upNVI0 192.168.0.254 YES unset up upVirtual-Access1 unassigned YES unset up upVirtual-Access2 192.168.0.254 YES unset up upVirtual-Access3 unassigned YES unset down downVirtual-Access4 unassigned YES unset up upVirtual-Access5 unassigned YES unset up upVirtual-Template1 192.168.0.254 YES unset down downR2901#
R2901#show vpdn session all%No active L2TP tunnelsPPTP Session Information Total tunnels 1 sessions 1Call id 29763 is up on tunnel id 51829Remote tunnel name is anonymousInternet Address is 118.69.66.40Session username is cisco, state is estabdTime since change 00:03:02, interface Vi2Remote call id is 5650620955 packets sent, 13192 received, 19966833 bytes sent, 2426065 received0 send packets dropped0 receive packets droppedLast clearing of "show vpdn" counters neverSs 20270, Sr 13196, Remote Nr 0, peer RWS 81920 out of order packetsFlow alarm is set.Unique ID is 49R2901#
- Kiểm tra socket kết nối của PPTP VPN Client.
R2901#show vpdn tunnel transport%No active L2TP tunnelsPPTP Tunnel Information Total tunnels 1 sessions 1LocID Type Local Address Port Remote Address Port51829 IP 14.241.233.112 1723 118.69.66.40 37886R2901#
Tham khảo thêm các 199 Videos Lý thuyết Khóa học CCNA để biết thêm thông tin chi tiết. Mọi thắc mắc, các bạn có thể liên lạc với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.
0 comments