Ask Your Question
1

How can the network interface name be changed using the command line?

asked 2023-06-11 10:38:39 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-11 10:53:02 +0000

lalupa gravatar image

The network interface name can be changed using the following command in the terminal:

  1. Determine the current name of the interface using the following command: ip addr

  2. Disable the interface using the following command: sudo ifconfig <interface-name> down

  3. Rename the interface using the following command: sudo ip link set <old-interface-name> name <new-interface-name>

  4. Enable the interface using the following command: sudo ifconfig <new-interface-name> up

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-06-11 10:38:39 +0000

Seen: 19 times

Last updated: Jun 11 '23