LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-23-2023, 05:55 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 266

Rep: Reputation: Disabled
Mac address on linux server


Hi all,

I would need to change an mac address for one of the ip on the centos server, before changing the mac address, i would need to test. How can i test it?

Last edited by 1s440; 05-23-2023 at 06:01 AM.
 
Old 05-23-2023, 06:16 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,956

Rep: Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329Reputation: 7329
on another host? in a vm? what do you want to test? You can either change that or not.
 
Old 05-23-2023, 06:19 AM   #3
1s440
Member
 
Registered: Mar 2018
Posts: 266

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
on another host? in a vm? what do you want to test? You can either change that or not.

I used the below steps to change , but i think this is temporary . How can i test if the mac is working or not

Code:
$ sudo ifconfig eth0 down

$ sudo ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF

$ sudo ifconfig eth0 up

Last edited by 1s440; 05-23-2023 at 06:48 AM.
 
Old 05-23-2023, 08:48 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,699

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by 1s440 View Post
I used the below steps to change , but i think this is temporary . How can i test if the mac is working or not
Code:
$ sudo ifconfig eth0 down
$ sudo ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF
$ sudo ifconfig eth0 up
It's temporary, unless you configure it in the adapter config file, as you would with a static address/route/other-network-things. And you 'test' it by looking at the interface with "ip address" and looking at the MAC address. Again, did you do ANY research of your own??? Like putting "how to change mac address in linux permanently" into Google?
https://srijit.com/how-to-change-mac...s-in-centos-7/
 
1 members found this post helpful.
  


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
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
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

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

All times are GMT -5. The time now is 12:56 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