[Bat] lab and bedroom settings

Source: Internet
Author: User

It is too troublesome to use different IP addresses to access the Internet in the lab and dormitory. I wrote two BAT files to modify them.

@ Echo offecho set 422ip address set ADDR = 10.214.25.81set mask = 255.255.255.0set gway = 255.dns1 = 10.0.21echo 255.echo IP = % ADDR % echo mask = % mask % echo gateway = % gway % echo DNS = % dns1 % netsh interface IP Set address "Local Connection" static ADDR = % ADDR % mask = % mask % gateway = % gway % 1 netsh interface IP Set DNS "Local Connection" static 10.10.0.21echo ipset pause> NUL

 

@ Echo offecho Set primary IP address set ADDR = primary mask = 255.255.255.0set gway = 222.205.059.1set dns1 = 10.10.0.21echo reply echo IP = % ADDR % echo mask = % mask % echo gateway = % gway % echo DNS = % dns1 % netsh interface IP Set address "Local Connection" static ADDR = % ADDR % mask = % mask % gateway = % gway % 1 netsh interface IP Set DNS "Local Connection" static 10.10.0.21echo ipset pause> NUL

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.