Old Text-ubuntu Linux 8.04 under modify MAC address-December 17, 2008 19:33

Source: Internet
Author: User

Because the company's internal IP and Mac bindings, and can not everyone online, only by changing the Mac to the Internet. After searching, the following methods are available:
1,
Edit the/etc/network/interfaces file directly and add a line after the IF ace eth0 inet static:
pre-up ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx (Mac to change)
2,
Open File:/etc/iftab
What to modify:
Eth0 mac 00:e0:4d:75:8e:50 (change to your physical address Mac)
3,
Nic "Off" first
# ifconfig eth0 Down
Replace the physical address and replace the bold part with the MAC address you want to change:
# ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
Enable eth0.
# ifconfig eth0 up
Restart Network Service
sudo/etc/init.d/networking restart
This method can only be modified temporarily.
4,
Edit/etc/network/interfaces, find the place related to eth0, modify to shape like:
Allow-hotplug eth0
Iface eth0 inet DHCP
#iface eth0 inet Static
# address 1.1.1.6
# netmask 255.255.255.0
# Gateway 1.1.1.1
Hwaddress ether 00:aa:bb:cc:dd:ee
By experiment, this method doesn't seem to work.
5,
Modify the/etc/rc.local file
Sudo/sbin/ifconfig eth0 Down
Sudo/sbin/ifconfig eth0 hw ether 00:14:2a:34:4e:43
Sudo/sbin/ifconfig eth0 up


I only experimented with the 4th, 5 methods, 4 not, 5 can.

Old Text-ubuntu Linux 8.04 under modify MAC address-December 17, 2008 19:33

Related Article

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.