在Ubuntu上更改您的网卡MAC地址

There are a lot of reasons you might want to manually set your MAC address for your network card. I won’t ask you what your reason is.

有很多原因可能需要您手动设置网卡的MAC地址。 我不会问你你的原因是什么。

To change this setting, we’ll need to edit the /etc/network/interfaces file. You can choose to use a different editor if you’d like.

要更改此设置,我们需要编辑/ etc / network / interfaces文件。 您可以根据需要选择使用其他编辑器。

sudo gedit /etc/network/interfaces

sudo gedit / etc / network / interfaces

You should see the line for your network interface, which is usually eth0. If you have dhcp enabled, it will look like this:

您应该看到网络接口的行,通常为eth0。 如果启用了dhcp,它将如下所示:

auto eth0iface eth0 inet dhcp

自动eth0iface eth0 inet dhcp

Just add another line below it to make it look something like this:

只需在它下面添加另一行,使其看起来像这样


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部