dx0110
以太网卡名字问题
我有两张型号相同的pci以太网卡, 请问哪一张会被linux命名为eth0?
linux是按什么顺序给这两张网卡命名的?谢谢.
kenduest
一般是看 nic kernel module 載入順序,比方 fedora or rhel 目前可以查閱 /etc/modprobe.conf :
[code]
alias eth0 e1000
alias eth1 8130too
[/code]
另外本身 fedora or rhel 等發行版本網卡 ip 配置於 /etc/sysconfig/network-scripts/ifcfg-eth0 等檔案內,該檔案可以使用 HWADDR 指定符合的 mac addr 的網卡套用某個 eth0 的介面。
[code]
DEVICE=eth0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
HWADDR=00:11:22:33:44:55
[/code]
--