Ubuntu10.04 dual Authentication Mode for ruijie and L2TP

Source: Internet
Author: User
Operating System: Ubuntu9.04 (my account is 10.04) software required: myxrgsu (ruijie client), xl2tpd, CT, tcl8.4 (the latest version is tcl8.5) most schools use campus networks, you can connect to the Internet using ruijie certification. More and more schools are now using the dual Authentication Mode of ruijie and L2TP. Here I will first introduce the L2TP protocol to give you a rough idea of the later configuration. L2TP (LayerTwoTunneling

Operating System: Ubuntu 9.04 (my account is 10.04)

Required Software: myxrgsu (ruijie client), xl2tpd, CT, tcl8.4 (the latest version is tcl8.5)

Most schools use campus networks and connect to the Internet using ruijie certification. More and more schools are now using the dual Authentication Mode of ruijie and L2TP. Here I will first introduce the L2TP protocol to give you a rough idea of the later configuration.

L2TP (Layer Two Tunneling Protocol, Layer 2 Channel Protocol) is a type of VPDN (Virtual Private Dial-Up Network) technology used for Channel Transmission of Layer 2 data, the second layer data unit, such as the Point-to-Point Protocol (PPP) data unit, is encapsulated in an IP address or UDP load to reach the destination through a packet switching network (such as the Internet.

L2TP is essentially a tunnel transmission protocol that uses two types of messages: control messages and data tunnel messages. Control Messages are responsible for creating, maintaining, and terminating L2TP tunnels, while data tunnel messages are responsible for real transmission of user data. L2TP supports standard security features CHAP and PAP for user identity authentication. In terms of security, L2TP only defines the encrypted transmission mode for controlling messages and does not encrypt the data in the transmission.

It is worth noting that L2TP does not encrypt the data in the tunnel transmission, so it cannot guarantee the security during the data transmission process. Therefore, L2TP is often used in combination with IPsec. L2TP is used to encapsulate Layer 2 data, And Then IPsec encapsulation is used to encrypt data and provide integrity protection. This ensures secure transmission of communication data to the destination.

Similarities and differences between l2tp and pptp: Both PPTP (another telecommunications protocol) and L2TP use the PPP protocol to encapsulate data, and then add additional headers for data transmission over the Internet. Although the two protocols are very similar, there are still some differences:

1. PPTP requires the Internet to be an IP network. L2TP only requires the tunneling media to provide packet-oriented point-to-point connections. L2TP can be used on IP (using UDP), RST relay permanent virtual circuit (PVCs), X.25 virtual circuit (VCs), or ATM VCs networks.

2. PPTP can only establish a single tunnel between two points. L2TP supports multiple tunnels between two points. With L2TP, you can create different tunnels for different service quality.

3. L2TP can provide header compression. When the header is compressed, the overhead occupies 4 bytes, while the PPTP protocol occupies 6 bytes.

4. L2TP can provide tunneling verification, while PPTP does not. However, when both L2TP or PPTP and IPSEC are used together, IPSEC can provide tunneling verification without the need to verify the tunnel on the layer-3 protocol.

This article introduces how to successfully configure the dual Authentication Mode of ruijie and l2tp.


1. Set IP

To access the Internet, you must first set an IP address. In newer versions of ubuntu, network-manager is used to manage networks. Network-manager makes IP configuration extremely simple.

Choose system> System Management> network connection. By default, an Auto eth0 is displayed. Select and click Edit. Enter the administrator password for authentication and open the Edit page. Select Auto connect (upper) and click OK (lower ). Then, click the IPv4 settings panel, select manual in the method bar, click Add on the right of the address bar below, and enter the IP address, subnet mask, and gateway. Enter DNS in the DNS server column. Click application. In this way, the IP address settings are complete.

After setting, you can run the ifconfig command on the terminal to view the IP address and other information, and run the cat/etc/resolv. conf command to view the DNS information.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.