Interface

Hi All,

How to check whether a Interface has a single port or dual port.Thanks in advance.

interface is a very vague term. What kind of interface? What kind of system?

Sorry for that I was talking about a network interface and on solaris 10 OS.:slight_smile:

I don't have any Sun systems, but I do use a Sun multi-port card. It acts like four separate interfaces:

$ /sbin/ifconfig -a

...

lan0      Link encap:Ethernet  HWaddr 08:00:20:EA:58:46
          inet6 addr: fe80::a00:20ff:feea:5846/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1162096 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:83501435 (79.6 Mb)
          Interrupt:10 Base address:0xa400

lan1      Link encap:Ethernet  HWaddr 08:00:20:EA:58:47
          inet6 addr: fe80::a00:20ff:feea:5847/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:6010095 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6683434 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1233572818 (1176.4 Mb)  TX bytes:3334759252 (3180.2 Mb)
          Interrupt:11 Base address:0x6c00

lan2      Link encap:Ethernet  HWaddr 08:00:20:EA:58:48
          inet6 addr: fe80::a00:20ff:feea:5848/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:16387819 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24754634 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2387167698 (2276.5 Mb)  TX bytes:798403594 (761.4 Mb)
          Interrupt:5 Base address:0x6400

lan3      Link encap:Ethernet  HWaddr 08:00:20:EA:58:49
          inet6 addr: fe80::a00:20ff:feea:5849/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:1963415 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4180553 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:294387107 (280.7 Mb)  TX bytes:3567530266 (3402.2 Mb)
          Interrupt:5 Base address:0x7c00

...

$

Look at the mac addresses -- 08:00:20:EA:58:46, 08:00:20:EA:58:47, 08:00:20:EA:58:48, 08:00:20:EA:58:49. The odds of getting four in a row are impossible unless they all belong to the same card.

They're only called lan0-lan3 because I intentionally named them that. Its default interface names were just eth1-eth4.

Hi Corona688,

Thanks for your quick response.How if the interfaces are not plumbed.I mean to say just a single port is used and other left not used.

"plumbed" is a solaris thing, I can't say. ifconfig -a suffices to include interfaces that aren't "up" in Linux but -a seems to have a slightly different meaning in Solaris.

Since your question is hardware and OS specific you might have more luck asking in unix.com's Solaris section.