ROS软路由论坛 ROSABC.com 网络方案网络工程交流

 找回密码
 会员注册

QQ登录

只需一步,快速开始

查看: 4859|回复: 1

[交流] Clone MAC address

[复制链接]
发表于 2014-8-6 18:22:20 | 显示全部楼层 |阅读模式

马上注册成为ROSABC会员,随时发帖回复。

您需要 登录 才可以下载或查看,没有账号?会员注册

x



在一些特殊的应用上必须去修改 ethernet port 的 MAC addresss, 例如有些 ISP 是锁 MAC address, 那麽要利用 IP 分享器或是 router 连网时, 必须将 WAN Port MAC address 以手动方式设定.

在 RouterOS 可利用 /interface ethernet set ether? mac-address 方式来达成.
要恢复原值只要用 reset-mac-address 即可.


[admin@MikroTik] /interface ethernet> set ether5 mac-address=00:11:22:33:44:55
[admin@MikroTik] /interface ethernet> print
Flags: X - disabled, R - running, S - slave
# NAME MTU MAC-ADDRESS ARP MASTER-PORT SWITCH
0 R ether1-g... 1500 00:0C:42:E9:19:C4 enabled none switch1
1 R ether2-LAN 1500 00:0C:42:E9:19:C5 enabled none switch1
2 S ether3-s... 1500 00:0C:42:E9:19:C6 enabled ether2-LAN switch1
3 S ether4-s... 1500 00:0C:42:E9:19:C7 enabled ether2-LAN switch1
4 S ether5-s... 1500 00:11:22:33:44:55 enabled ether2-LAN switch1

[admin@MikroTik] /interface ethernet> reset-mac-address
numbers: 4
[admin@MikroTik] /interface ethernet> print
Flags: X - disabled, R - running, S - slave
# NAME MTU MAC-ADDRESS ARP MASTER-PORT SWITCH
0 R ether1-g... 1500 00:0C:42:E9:19:C4 enabled none switch1
1 R ether2-LAN 1500 00:0C:42:E9:19:C5 enabled none switch1
2 S ether3-s... 1500 00:0C:42:E9:19:C6 enabled ether2-LAN switch1
3 S ether4-s... 1500 00:0C:42:E9:19:C7 enabled ether2-LAN switch1
4 S ether5-s... 1500 00:0C:42:E9:19:C8 enabled ether2-LAN switch1
[admin@MikroTik] /interface ethernet>


若不想下指令, 透过 winbox 选择欲变更的 interface ethernet 端口也是可以的.

同样的在 wireless interface 上也有 /interface wireless set mac-address 指令. 至于在 wireless 上, 利用 Virtual AP & 修改 mac address 是否可以突破有些 hotspot, 做到多重登入这就不晓得了.


评分

参与人数 1 +3 收起 理由
duosole + 3 赞一个!

查看全部评分

您需要登录后才可以回帖 登录 | 会员注册

本版积分规则

不良信息举报Q:2000617

软路由

不良信息举报Q:2000617|Archiver|ROS软路由论坛 ROSABC.com 网络方案网络工程交流

GMT+8, 2025-8-6 12:40 , Processed in 1.786899 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表