Add a route under Linux

Source: Internet
Author: User
# yum install -y pptp pptp-setupLook at IP list from http://ip.line668.com/ip.php, look for foreign IP.
# pptpsetup --create 107_149_9_75 --server 107.149.9.75  --username USERNAME --password PASSWORD --encrypt --start
# route add -net 173.194.126.0 netmask 255.255.255.0 dev ppp0 metric 1
Note: The previous one is Google's IP segment, the latter is mask; ppp0 is the device number of the Pptpsetup output, which is incremented sequentially. If you want to be valid for all IPs, you can: # route add -net 0.0.0.0  netmask 0.0.0.0 dev ppp0
METRIC Specifies the integer value of the required metric (in the range 1~9999) for the route, which is used to select the route that most closely matches the destination address in the forwarding packet in multiple routes in the routing table. The selected route has a minimum number of hops. The metric can reflect the number of hops, the speed of the path, path reliability, path throughput, and administrative properties.

From for notes (Wiz)

Add a route under Linux

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.