Command to modify the VPS egress ip address

Source: Internet
Author: User

If vps has multiple ip addresses (for example, brust.net and ds have two ip addresses), how can I change the vps egress ip address?

Haha, this problem has plagued me for a long time.

Today, google has finally found the answer. Laugh
In other words, is the egress ip address used to change the vps available? Well, you can find out if you need to change the ip address to collect data or use a proxy to access the Internet, especially the mjj who asks thieves for verification codes.

Generally, the egress ip address of a vps is the main ip address of vps. When ss5 or http proxy or ssh is set up on this vps, this ip address is used, that is, when you use a proxy to access the Internet or collect data in vps, the ip displayed by ip138.com is the main ip address.

For example, brust and ds have two ip addresses. If ip addresses are rotated to collect ip addresses, it is not easy for websites to use cc or be restricted for other reasons.

Okay, no worries. There is only one sentence for the command. It's very simple. You don't need to restart it, you don't need to contact customer service, and everyone can operate it.

Example:

Route add-net default gw 64.79.103. ** dev eth0: 0


First, you need to log on to the vps through ssh, and then enter:

Ifconfig-

Check the relationship between the NIC (eth0: 0) and ip (64.79.103. Then, use the above command to modify the ip address to take effect immediately.

Command to modify the VPS egress ip address

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.