Which interface is net2 and net3 ?

Hi,
This is Solaris-10, T4-4 machine. Datacenter guy has plugged two cat6 cables in net2 and net3 interface. Other end which is going to switch port is already patched for both.
I need to configure two IP's on two NIC interfaces, but not able to figure out, which are the ports cable is plugged in. igb0 and igb1 are already in use.

/# dladm show-link
igb0            type: non-vlan  mtu: 1500       device: igb0
igb1            type: non-vlan  mtu: 1500       device: igb1
e1000g0         type: non-vlan  mtu: 1500       device: e1000g0
e1000g1         type: non-vlan  mtu: 1500       device: e1000g1
e1000g2         type: non-vlan  mtu: 1500       device: e1000g2
e1000g3         type: non-vlan  mtu: 1500       device: e1000g3
igb2            type: non-vlan  mtu: 1500       device: igb2
igb3            type: non-vlan  mtu: 1500       device: igb3
igb4            type: non-vlan  mtu: 1500       device: igb4
igb5            type: non-vlan  mtu: 1500       device: igb5
igb6            type: non-vlan  mtu: 1500       device: igb6
igb7            type: non-vlan  mtu: 1500       device: igb7
nxge0           type: non-vlan  mtu: 1500       device: nxge0
nxge1           type: non-vlan  mtu: 1500       device: nxge1
nxge2           type: non-vlan  mtu: 1500       device: nxge2
nxge3           type: non-vlan  mtu: 1500       device: nxge3
nxge4           type: non-vlan  mtu: 1500       device: nxge4
nxge5           type: non-vlan  mtu: 1500       device: nxge5
nxge6           type: non-vlan  mtu: 1500       device: nxge6
nxge7           type: non-vlan  mtu: 1500       device: nxge7
/# dladm show-dev
igb0            link: up        speed: 1000  Mbps       duplex: full
igb1            link: up        speed: 1000  Mbps       duplex: full
e1000g0         link: unknown   speed: 0     Mbps       duplex: half
e1000g1         link: unknown   speed: 0     Mbps       duplex: half
e1000g2         link: unknown   speed: 0     Mbps       duplex: half
e1000g3         link: unknown   speed: 0     Mbps       duplex: half
igb2            link: down      speed: 0     Mbps       duplex: half
igb3            link: unknown   speed: 0     Mbps       duplex: half
igb4            link: unknown   speed: 0     Mbps       duplex: half
igb5            link: unknown   speed: 0     Mbps       duplex: half
igb6            link: unknown   speed: 0     Mbps       duplex: half
igb7            link: unknown   speed: 0     Mbps       duplex: half
nxge0           link: unknown   speed: 0     Mbps       duplex: unknown
nxge1           link: unknown   speed: 0     Mbps       duplex: unknown
nxge2           link: unknown   speed: 0     Mbps       duplex: unknown
nxge3           link: unknown   speed: 0     Mbps       duplex: unknown
nxge4           link: unknown   speed: 0     Mbps       duplex: unknown
nxge5           link: unknown   speed: 0     Mbps       duplex: unknown
nxge6           link: unknown   speed: 0     Mbps       duplex: unknown
nxge7           link: unknown   speed: 0     Mbps       duplex: unknown

Is there any short way to know instead of plumbing all interfaces and configure IP and then try to make it up ?

dladm show-ether

dladm show-phys

ipadm 

NOTE: ipadm will not show the interfaces up until you have actually established communications with the network.

Seems like those commands are for Solaris-11.

/# dladm show-ether
dladm: unknown subcommand 'show-ether'
usage: dladm create-aggr [-t] [-R <root-dir>] [-P <policy>]
                    [-l <mode>] [-T <time>]
                    [-u <address>] -d <dev> ... <key>
             delete-aggr [-t] [-R <root-dir>] <key>
             add-aggr    [-t] [-R <root-dir>] -d <dev> ... <key>
             remove-aggr [-t] [-R <root-dir>] -d <dev> ... <key>
             modify-aggr [-t] [-R <root-dir>] [-P <policy>]
                    [-l <mode>] [-T <time>] [-u <address>] <key>
             show-aggr [-L] [-s] [-i <interval>] [-p] [<key>]
             show-dev [-s] [-i <interval>] [-p] [<dev>]
             show-link [-s] [-i <interval>] [-p] [<name>]
             set-linkprop [-t] -p <prop>=<value>[,...] <name>
             reset-linkprop [-t] [-p <prop>,...] <name>
             show-linkprop [-cP][-p <prop>,...] <name>
 /# ipadm
bash: ipadm: command not found

When I say net2 and net3, it means that was written on that port where cable was plugged in on back side.

Try running prtdiag and looking for NET2 and NET3. This will show a device path for the interface. Use grep to look for that path in /etc/path_to_inst. The last two path_to_inst fields are the instance number and the instance name. The line will look like this: <path> 2 "igb" or similar. In this example, the device would be igb2.

Hope this helps.

It is looking like this -->

/# prtdiag -v | egrep -i "net2|net3"
/SYS/RIO/NET2     PCIE  network-pciex8086,10c9
/SYS/RIO/NET3     PCIE  network-pciex8086,10c9
 
/# cat /etc/path_to_inst | grep -i igb
"/pci@400/pci@1/pci@0/pci@2/network@0" 0 "igb"
"/pci@400/pci@1/pci@0/pci@2/network@0,1" 1 "igb"
"/pci@600/pci@1/pci@0/pci@4/network@0" 2 "igb"
"/pci@600/pci@1/pci@0/pci@4/network@0,1" 3 "igb"
"/pci@600/pci@1/pci@0/pci@4/network@0,2" 4 "igb"
"/pci@600/pci@1/pci@0/pci@4/network@0,3" 5 "igb"
"/pci@600/pci@2/pci@0/pci@3/network@0" 6 "igb"
"/pci@600/pci@2/pci@0/pci@3/network@0,1" 7 "igb"
 /# cat /etc/path_to_inst | grep -i 10c9
 /# cat /etc/path_to_inst | grep -i 8086
 /#

prtdiag prints multiple lines per device. You need to look at the second line under NET2 and NET3. That will have the path.

---------- Post updated at 07:56 PM ---------- Previous update was at 07:54 PM ----------

Looking at your path_to_inst data, I would suspect NET2 is igb6 and NET3 is igb7. igb2-5 looks to be a quad network card.

2 Likes

Ok, here I got -->

/SYS/RIO/NET2     PCIE  network-pciex8086,10c9
                        /pci@600/pci@2/pci@0/pci@3/network@0
/SYS/RIO/NET3     PCIE  network-pciex8086,10c9
                        /pci@600/pci@2/pci@0/pci@3/network@0,1
 /# cat /etc/path_to_inst | grep -i "/pci@600/pci@2/pci@0/pci@3/network@0"
"/pci@600/pci@2/pci@0/pci@3/network@0" 6 "igb"
 /# cat /etc/path_to_inst | grep -i "/pci@600/pci@2/pci@0/pci@3/network@0,1"
"/pci@600/pci@2/pci@0/pci@3/network@0,1" 7 "igb"
 

Does it mean that it is igb6 and igb7 ?
-------------------------------------------------------------------
You are correct. I am able to configure IP on them. Thanks

Great!!

Indeed they are, all I saw was Sparc T4-4. My apologies.