In Linux, IP and MAC are bound to the Internet-Linux general technology-Linux technology and application information. The following is a detailed description. Because our school data center uses IP and MAC binding to access the Internet, each computer has a fixed IP address and MAC address, and I tried many ways to access the Internet. I don't think there is no way to access the Internet, instead, they do not know how to operate on the basis of others' methods. Originally installed UBUNTU, And now installed a REDHAT. The interface is more inclined to WINDOWS. After the interface is installed, I did not successfully configure the internet. Give up. Today's whimsy, REDHAT is much easier to operate than UBUNTU, and it should be easier to configure the internet, so I made up my mind to configure it well. Haha, I finally succeeded.
First, configure the IP and MAC in the XP system to enable it to access the Internet. Then go to the LINUX system. System-management-network, enter your password. Go in. In the device, set the IP address and Its subnet mask, default gateway, DNS, MAC., and then activate. Make its location active. Restart the network: in the terminal: Super User: #/etc/init. d/network restart. Theoretically OK. You can still be unable to access the Internet. PING your own machine and the machine in the LAN can be connected. It's really depressing. As a result, we can check in #/sbin/isconfig eth0 under the terminal Super User. HWaddr hasn't changed yet, and TMD is ready to restart the network again. You can just press/etc/init. d/network and press ENTER accidentally. Haha, I'm lucky.
The following five options are available: start, stop, restart, reload, and status. So I tried/etc/init. d/network reload at will. Haha succeeded. Later, I found in Kingsoft's word Overlord that reload means reload.
I tried restarting. After the restart, it was a one-time task. One-time deployment. Who makes me a cainiao. So pay attention to this use is also satisfied. The method for setting one time is as follows:
You must first disable the NIC device. Otherwise, the system is reported to be busy and cannot be changed.
Command:
#/Sbin/ifconfig eth0 down
Modify the MAC address. This step is simpler than that in Windows.
Command:
#/Sbin/ifconfig eth0 hw ether 00: AA: BB: CC: DD: EE
Enable Nic again
#/Sbin/ifconfig eht0 up
The MAC address of the NIC is changed.
Restart the network (reload)
#/Etc/init. d/network restart or reload
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.