|
ifconfig command does not show all the interface after adding new interface
|
07/25/2019 3:11 PM
post119786
|
ifconfig command does not show all the interface after adding new interface
I am using panda board for adding new network driver.
for showing example I used Sample Driver (sam.c) provided by qnx.
But following result can be reproduce with other drivers too.
here is the excerpts of the command i ran and text added between /* */ are my comments.
As you see below, en0 interface disappears as soon as another new driver is added.
Is there anything 'ifconfig' looking for? Why it is not showing all the interfaces?
------------------------------------------------------------------------------------------------------------------------
--
# io-pkt-v4-hc -dsmsc9500 mac=5e2404007ede /* Loading the ethernet driver */
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
en0: flags=80008802<BROADCAST,SIMPLEX,MULTICAST,SHIM> mtu 1500
address: 5e:24:04:00:7e:de
media: Ethernet 100baseTX full-duplex
status: active
# ifconfig en0 10.10.70.189
# ifconfig /* ifconfig correctly shows the two
interfaces lo0 and en0)
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
en0: flags=80008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SHIM> mtu 1500
address: 5e:24:04:00:7e:dd
media: Ethernet 100baseTX full-duplex
status: active
inet 10.10.70.189 netmask 0xff000000 broadcast 10.255.255.255
# io-pkt-v6-hc -i1 -dsam /* loading the second driver (sample driver) *
/
# ifconfig /* it shows sam0 correctly but en0
disappeard !!!! */
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
sam0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
address: 00:01:02:03:04:05
------------------------------------------------------------------------------------------------------------------------
|
|
|