xp改mac地址linux,局域网络必备-mac地址修改
1.windows xp 的mac 地址修改
①.點選
--》 --》 --》 --》 --》 ---》 ---》 ---》 即可!
②.在運行中使用 “cmd” 調出dos 界面。在dos界面中使用 “ipconfig /all”查看網卡的配置信息
2.linux(redhat 5.4)
①.編輯網卡的信息文件
[root@mail ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
③.重新啟動網卡
[root@mail ~]# service network restart
查看 eth0 網卡的 mac 地址
[root@mail ~]# ifconfig |grep eth0
eth0????? Link encap:Ethernet? HWaddr 00:0C:29:FD:45:E4
此時 mac 地址已經生效
3.H3C SecPath F100-C 修改接口mac 地址
①.查看接口的mac地址
[H3C]dis interface Ethernet 0/0
Ethernet0/0 current state :DOWN
Line protocol current state :DOWN
Description : Ethernet0/0 Interface
The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 192.168.0.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 3ce5-a658-3e7e
②.修改mac地址
[H3C]_??? //此模式下臨時修該前請備份相關參數您已經進入了一個隱藏命令視圖,該視圖用于版權所有者的內部測試,其中一些命令使用不當可能導致業務中斷,請在版權所有者的指導下慎重使用。[H3C-hidecmd]en
input password (1-12 characters) :huawei-3comThis mode is for our engineers to test. Running these commands could result in exceptions. Please do not run these commands without owner's direction.
[H3C-diagnose]?
Diagnose 系統視圖命令:
display??? 顯示當前系統信息
gdb??????? AUX是否為調試口
nslookup?? 查詢域名服務
ping?????? 檢查網絡連接或主機是否可達
quit?????? 退出當前的命令視圖
return???? 退到用戶視圖
save?????? 保存當前有效配置
test?????? 加密卡測試
tracert??? 跟蹤到達目的地的路由
trapdebug? 察看watchdog重起的異常堆棧信息
vrbd?????? 顯示VRP版本
[H3C-diagnose]test ethernet getmac 0
port 0 mac address is 3ce5-a658-3e7e, test success
[H3C-diagnose]test ethernet setmac 0 1111-1111-1111test set mac address of ethernet0/0 success
[H3C-diagnose]save
將把當前的配置保存到存儲設備中.
你確信嗎?[Y/N]y
將運行時的配置寫入存儲設備中.
正在保存flash:/config.cfg, 請稍侯...
....................
將運行時的配置寫入存儲設備中成功.
[H3C-diagnose]test ethernet getmac 0
port 0 mac address is 1111-1111-1111, test success
配置保存后,通過清空save-configure 文件時是回不到最初的mac地址狀態。必須再次修改即可!!!
重新啟動是修改的配置生效
reboot?????? y
③.查看接口的mac地址
[H3C]display interface Ethernet 0/0
Ethernet0/0當前狀態:DOWN
鏈路層協議當前狀態:DOWN
描述 : Ethernet0/0 Interface
最大傳輸單元是 1500, Hold 定時器包間隔時間為10(秒)
本接口地址是192.168.0.1/24
IP報文發送幀格式: PKTFMT_ETHNT_2, 硬件地址是 1111-1111-1111? //mac 地址成功修改
4.二層交換機
因為二層交換機只是用來轉發數據幀,不對幀進行拆封打包,所以對轉發數據來說,自身的MAC地址是無用的。但是有時候我們需要對交換機進行配置管理,這也就是說我們需要與交換機進行通信,此時它就需要一個MAC地址,相應此時的交換機就相當于平時通信的一臺主機功能而已。
5.三層交換機
而對于3層交換機,一般都會有一個mac地址池,并且以最后一個octet+1遞增。這些MAC地址并不是直接綁定給某個物理端口,而是做三層交換時拿給SVI使用,也即我們常用的vlan 網關
[Quidway]dis interface Ethernet 0/1
Ethernet0/1是 DOWN
發送的IP幀的幀格式是 PKTFMT_ETHNT_2 硬件地址是00e0-fc0e-ae44
修改方式!!!我還未找到,百度上說在web方式可以修該!!!
6.路由器
①.查看接口的mac地址配置
[Router-Ethernet0]dis int eth 0
Ethernet0當前狀態:UP,鏈路層協議當前狀態:UP
描述: Ethernet interface, Ethernet0 接口
最大傳輸單元: 1500
Internet地址是 192.168.101.14(24)
IP報文發送幀格式: Ethernet_II, 硬件地址: 00-e0-fc-57-e2-5b
②.在接口上配置mac地址
[Router-Ethernet0]mac-address11-11-11-11-11-11
此時的配置已經生效
[Router-Ethernet0]dis int eth 0
Ethernet0當前狀態:UP,鏈路層協議當前狀態:UP
描述: Ethernet interface, Ethernet0 接口
最大傳輸單元: 1500
Internet地址是 192.168.101.14(24)
IP報文發送幀格式: Ethernet_II, 硬件地址: 11-11-11-11-11-11
③.初始化配置
reset?? saved-configuration
[Router]reboot
WARNING: Configuration has been changed !? Save configuration ? [Y/N]n
WARNING: System will REBOOT!? Continue ?[Y/N]y
System is now rebooting, please wait
以上使部分設備的mac地址修改的總結!!!有待繼續努力。。。
嗯,韓宇說的對!
總結
以上是生活随笔為你收集整理的xp改mac地址linux,局域网络必备-mac地址修改的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux下生成guid,在Linux下
- 下一篇: r语言参数fig=c(),干货︱R语言绘