Hi
I have hp tm2 laptop with two network adaptor(wired and wireless):
Code:
#lshw -class network
*-network
description: Ethernet interface
product: RTL8111/8168B PCI Express Gigabit Ethernet controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:01:00.0
logical name: em1
...
*-network
description: Wireless interface
product: BCM4313 802.11b/g/n Wireless LAN Controller
vendor: Broadcom Corporation
physical id: 0
bus info: pci@0000:02:00.0
logical name: eth0
...
Code:
#netstat -i
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
em1 1500 0 0 0 0 0 0 0 0 BMU
eth0 1500 2386 1 0 0 2655 3 0 0 BMRU
lo 16436 8174 0 0 0 8174 0 0 0 LRU
I use some tools like vnstat and ntop to monitor my network bandwidth, but i have a weird problem with my network devices:
Every time i restart my laptop, the wireless network device name was changed(switched between eth0 & eth1)!!
So i can't monitor my network properly and after each boot i should check device name and restart those monitoring tools with new device name.
Now is there any way to set network device name manually?
I'm using fedora 17 (3.4.2-4.fc17.x86_64).
Thanks.