Ask Your Question
2

Where is the MAC address of a bridge interface stored in Debian and what is the method to modify it?

asked 2023-07-02 10:02:47 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-02 10:08:02 +0000

plato gravatar image

The MAC address of a bridge interface in Debian is stored in the /sys/class/net/bridgename/address file, where "bridgename" is the name of your bridge interface.

To modify the MAC address of a bridge interface, you can use the ip command with the link option. For example, if you want to change the MAC address of the br0 interface to 01:23:45:67:89:ab, you would use the following command:

sudo ip link set dev br0 address 01:23:45:67:89:ab

Note: You need to be root or have sudo privileges to modify the MAC address of a network interface in Debian.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-02 10:02:47 +0000

Seen: 8 times

Last updated: Jul 02 '23