I used to look for ways to modify IP under windows and linux. I always forget that I have recorded it myself in the blog. Interested friends can also play.
Windows below cms modify ip netsh interface ip set address “local connection static 192.168.0.2 255.255.255.0 192.168.0.1 1
The batch command is @ echo off echo This Programe will Change your Ipaddress and Gateway. echo press any key to continue pause >nul rem set the variable set Nic=local connection rem //can be changed according to your needs, set Add=202.96.134.9 rem //can change the set according to your needs Gat=202.96.134.60 netsh interface ip set address name=%Nic% source=static addr=%add% mask=255.255.255.0 %Gat% 1 rem //By the DNS also changed netsh interface ip set dns name=%Nic % source=static addr=%add% primary echo OK! Note: Copy the above code into a blank notepad, change “Nic=, Add= Gat=” to your own value and save as *.bat You can
linux modify the ip command as:
Manually set the network card example
Suppose you want to set the network card as follows:
NIC: eth0 IP: 192.168 .2.110 Mask: 255.255.255.0 Network Management: 192.168.2.1
This can be done:
if Config eth0 192.168.2.110 netmask 255.255.255.0 up route add default gw 192.168.2.1 dev eth0
Modify MAC
Sometimes we need to modify the mac address of the network card, for example, my current network card information is as follows :
eth0 Link encap:Ethernet HWaddr 00:15:22:99:36:c9 inet addr:192.168.2.110 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::215:22ff: Fe99:36c9/64 Scope:Link …
The HWaddr shown above is the mac address: 00:15:22:99:36:c9. Now we want to modify it to what we need:
ifconfig eth0 down # Be sure to stop the network card first ifconfig eth0 hw ether 00:15:22:99:36:c9 # modify mac address
Then you can restart the network:
/etc/init.d/networking restart
Basic knowledge, huh, huh. Personal collection.
The daily home computer is basically a dual-core CPU. The Windows7 operating system has good support
In the case of very good network, IE cant open the webpage. It must be a headache for every user. Th
The blue screen phenomenon is a common problem during the use of a computer. Recently, some users ha
If you dont have the following command, you can first add a yum source of http://repoforge.
CPU overclocking caused computer blue screen solution
What does the found.000 folder contain?
Analyze the cause of the sudden failure of the right mouse button and the solution
How to get back to the start screen of the Internet Explorer 10 icon
iSCSI target configuration [Windows storage device using linux]
Select the details of the computer motherboard can not be ignored
Introducing several misunderstandings in the process of optimizing Vista
Analysis of several computer hardware common sense that must be known
"Overclocking" disk defragmentation, experience the feeling of flying
Computer head: Automatically shut down after the owner leaves
Ways to view and modify DNS configuration in Linux
Commonly used PDF to Excel method recommended
Solve the problem that IE7 mobile folder cannot be collected
Nginx 502 and 504 error solutions
What is the format of cda, how to convert cda format?
I have to know the malware terminology big inventory