修改mac地址主要有两种方法,临时
和永久
。
首先查看一下自己的网卡,ifconfig
:
临时:
sudo ifdown eth0
sudo ifconfig eth0 hw ether 82:66:47:28:C2:E1
sudo ifup eth0
service network restart
这种临时的一般重启电脑之后就变回原来的了。
永久:
打开网络配置文件:sudo nano /etc/network/interfaces
然后加入一句:pre-up ifconfig eth0 hw ether 82:66:47:28:C2:E1
即:
1 2 3 4 5 6 7 8 9 10 |
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp pre-up ifconfig eth0 hw ether 82:66:47:28:C2:E1 |
然后重启下网卡即可:
sudo /etc/init.d/networking restart
学习
学习
太需要了!謝謝!!
啊
哈哈哈
不知为何 执行 systemctl enable qbittorrent 以使 qBittorrent 开机启动,执行 systemctl start qbittorrent 以使 qBittorre
终端怎么换啊
啊啊为什么啊,我开个终端它一直加载,纯纯哭泣了