LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2020, 12:20 PM   #1
SN-2000
LQ Newbie
 
Registered: Feb 2020
Posts: 1

Rep: Reputation: Disabled
Question How to configure a custom MAC address with the `ip' command


For a long time, I used the `ifconfig' command to set custom MAC addresses, and now that Debian now longer supports that command, I am forced to use the `ip' command. However, I am quite pressed on time and I do not have the time to figure this out by myself. Does anyone know how to configure a custom MAC address with the `ip' command? I will greatly appreciate any help given.
 
Old 02-12-2020, 02:56 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,805

Rep: Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003
Quote:
Originally Posted by SN-2000 View Post
For a long time, I used the `ifconfig' command to set custom MAC addresses, and now that Debian now longer supports that command, I am forced to use the `ip' command. However, I am quite pressed on time and I do not have the time to figure this out by myself. Does anyone know how to configure a custom MAC address with the `ip' command? I will greatly appreciate any help given.
If you're pressed for time, the man page is quicker to read than posting in a forum and waiting for a reply, as is doing research of your own. Read the "Question Guidelines" link in my posting signature.

The "ip link set dev" statement is what you need.
 
Old 02-12-2020, 05:48 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
https://en.wikibooks.org/wiki/Changi..._Address/Linux
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change mac address to multicast mac address ubuntuv Linux - Networking 5 01-16-2019 07:21 AM
[SOLVED] dnsmasq question: custom mapping of IP address to MAC FlinchX Slackware 6 03-18-2018 07:43 AM
how do I find what MAC address web pages see as my MAC address rob.rice General 20 05-29-2010 02:08 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration