Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

Explore the world of seamless email management with Zimbra Mail on Linux! Our blog delves into a step-by-step guide on harnessing the potential of Linux commands, providing easy-to-follow how-tos, and unlocking the magic of Bash scripting. Simplify your email administration journey and enhance your skills with our insightful tips and tricks.

How to Change Mac Address in Linux

 In this tutorial, How to Change Mac Address in Linux. Mac Address is used to identify the device between the multiple devices within the network.

Mac Address is unique address used to identify the device over the network. When change Mac address to help for anonymity over the network.

How to Change Mac Address in Linux

1. Open the terminal, List all network interface your server. Use the command line below:

ip link show

The output terminal below:

ip link show

2. Select the network interface which you want change the mac address. ( For example: I select docker0 network interface.)

3. You need down network interface to change Mac address.

sudo ifconfig docker0 down

How to Change Mac Address in Linux 3

4. For example, Change 02:42:c2:c6:e8:39 to  02:42:b2:b6:c8:40 with the Mac address you want.)

sudo ifconfig docker0 hw ether 02:42:b2:b6:c8:40

How to Change Mac Address in Linux 2

5. Up the network inteface

sudo ifconfig docker0 up

The result, Change Mac Address in Linux as the picture below:

How to Change Mac Address in Linux

Your mac address has changed temporarily.


post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com

This Blog is protected by DMCA.com