The linux wireless driver is enabled, and the VPN route table is also configured

Source: Internet
Author: User
The linux wireless driver is up, and the VPN route table is also configured as-Linux Enterprise Application-Linux server application information. The following is a detailed description. My Wireless Nic is TL-WN321G, OS is UBUNTU 7.04

A wiki that does not know which language it is. It specifically mentions the rt73 installation method. Many steps are correct. Although the text cannot be understood, the command can still be typed.

Note that you do not need to insert a wireless network adapter before entering linux. You must enter the system before inserting the wireless network adapter. At least this is the case here. Hiweed has never been used before, but hiweed cannot be used to install VirtualBox.

Another achievement today is that you can configure the route table to connect to the internet at the same time when you connect to the VPN.

First, check the configuration of ipconfig/all after I dial the VPN.

Ethernet adapter wireless network connection 3:

Connection-specific DNS Suffix .:
Description ......: TL-WN321G USB Wireless Adapter #2
Physical Address ......: 00-19-E0-84-3C-A5
Dhcp Enabled...
IP Address ......: 192.168.1.3
Subnet Mask ......: 255.255.255.0
Default Gateway...: 192.168.1.1
DNS Servers ......: 202.106.0.20

PPP adapter VPN_OCN:

Connection-specific DNS Suffix .:
Description ......: WAN (PPP/SLIP) Interface
Physical Address...: 00-53-45-00-00-00
Dhcp Enabled...
IP Address ......: 172.19.81.8
Subnet Mask ......: 255.255.255.255
Default Gateway...: 172.19.81.8
DNS Servers ......: 172.17.2.221

Therefore, a bat file is written as follows:

Route add 0.0.0.0 mask 0.0.0.0 192.168.1.1

Route add 172.19.0.0 mask route 255.0.0 172.19.81.8

Route add 192.168.80.0 mask 255.255.255.0 172.19.81.8

The above content is explained below:

192.168.1.1 is the gateway of my ADSL. You need to set it as the default gateway to access the Internet.

Route add 0.0.0.0 mask 0.0.0.0 192.168.1.1

172.19.81.8 is the address obtained when I log on to the VPN. It is also the route after the VPN is logged on. Therefore, the CIDR Block accessed in the VPN must be directed to this vro to access the VPN resources normally.

Route add 172.19.0.0 mask route 255.0.0 172.19.81.8
Route add 192.168.80.0 mask 255.255.255.0 172.19.81.8

The mask is the mask of the CIDR block next to add, indicating the valid bit of the CIDR block. At the same time, in the high-speed system, all methods of the Local Machine for this network segment are sent to the last router IP address, let the router handle.

That is to say, for example:

Route add 192.168.80.0 mask 255.255.255.0 172.19.81.8

All accesses to 192.168.80.x point to the address of the vro 172.19.81.8 for forwarding.
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.