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