howto determine network device unit number? device.hints?

Mykola Dzham freebsd at levsha.org.ua
Thu Jan 15 02:47:32 PST 2009


 H.fazaeli wrote:
> 
>    for example, say you have 2 interface em0 and em1 which
>    you like to swap their minor numbers:
>    ifconfig em0 name tmp
>    ifconfig em1 name em0
>    ifconfig em0 name em1
>    or to assign cisco-like names to you interfaces:
>    ifconfig xl0 name fastEthernet0
>    ifconfig em0 name gigaEthernet0
>    ifconfig fastEthernet0 192.168.1.0/24
>    Yony Yossef wrote:

Interface renaming is complex when you use ng_ether: if ng_ether loaded
before renaming, then ng_ether node name remain unchanged after
ifconfig ... name

-- 
Mykola Dzham, LEFT-(UANIC|RIPE)
JID: levsha at jabber.net.ua


More information about the freebsd-questions mailing list