Linux 更改網卡卡號


ip link set eth0 down
ip link set eth0 address 11:22:33:44:55:66
ip link set eth0 up



ifconfig eth0 down
ifconfig eth0 hw ether 11:22:33:44:55:66
ifconfig eth0 up

參考
http://alangnet.blogdns.net/index.php?op=printView&articleId=100&blogId=1
http://linux.vbird.org/linux_server/0140networkcommand.php#ip_cmd

評論: 1 | 引用: 0 | 閱讀: 737 | 列印 | 文件 | 轉發

  • 1 
lawrence [ 2010-04-17 12:02 網址 | 回覆 | 編輯 刪除 ]
記得要改到 ifcfg-eth0 檔內, 或者寫在 rc.local

不然這樣重開機就不會見了。
  • 1 
發表評論
暱 稱: 密 碼:
網 址: E - mail:
驗證碼: 驗證碼圖片 選 項:
頭 像:
內 容:
  • 粗體
  • 斜體
  • 底線
  • 插入圖片
  • 超連結
  • 電子郵件
  • 插入引用
  • 表情符號