Which interface is net2 and net3 ?


 
Thread Tools Search this Thread
Operating Systems Solaris Which interface is net2 and net3 ?
# 1  
Old 01-06-2014
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.
Code:
/# 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 ?
# 2  
Old 01-06-2014
Other options

Code:
dladm show-ether

dladm show-phys

ipadm

NOTE: ipadm will not show the interfaces up until you have actually established communications with the network.
# 3  
Old 01-06-2014
Seems like those commands are for Solaris-11.
Code:
/# 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.
# 4  
Old 01-06-2014
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.
# 5  
Old 01-06-2014
It is looking like this -->
Code:
/# 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
 /#

# 6  
Old 01-06-2014
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.
These 2 Users Gave Thanks to PDP11-44WKU For This Post:
# 7  
Old 01-06-2014
Ok, here I got -->
Code:
/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

Last edited by solaris_1977; 01-06-2014 at 09:06 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Adding a network interface to a bonded interface

I have a RHEL 5 system with a bonded interface configure using only one network port (eth0). So I have config file for ifcfg-bond0 and ifcfg-eth. I'd like to configure eth5 to be the second SLAVE in the bond. My question is, after I modify ifcfg-eth5, can I add eth5 to the bond0 interface without... (1 Reply)
Discussion started by: westmoreland
1 Replies

2. UNIX for Dummies Questions & Answers

Interface

Hi All, How to check whether a Interface has a single port or dual port.Thanks in advance. (5 Replies)
Discussion started by: rama krishna
5 Replies

3. IP Networking

Need a bridge from an ethernet interface to a serial interface

This is my situation DOS pc serial cable (sl0) Linux Pc eth1 192.168.0.10 <-------------------->192.168.0.2 <------------>192.168.0.1 (router) I connected the linux pc and the dos pc with a SLIP (serial line internet protocol), so they can communicate in the sl0 interface. ... (3 Replies)
Discussion started by: mghis
3 Replies

4. SCO

Change SCO - GUI or Desktop interface to DOS based interface

Hi all I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface? If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies

5. Solaris

Command line Interface or GUI Interface not shown on solaris

Dear all, I am a newbie in solaris and I need your advice. I have a Solaris version 5.9 installed on Sunfire V240. I am able to ssh the machine from putty remotely. My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Discussion started by: mbouster
2 Replies

6. UNIX for Advanced & Expert Users

interface problem

hi all, i have problem with my box, until now i can't investigate the root cause of my issue at my box. here the problem. i have a box as a squid server just forward all request packet from one interface and receive the packet then forward to client at the same interface. but after 5 hours i... (1 Reply)
Discussion started by: tindasz
1 Replies

7. IP Networking

How to down interface without name

Hi, ifconfig -a return: eth0 Link encap:Ethernet HWaddr 00:09:3D:12:9D:5A inet addr:172.19.208.7 Bcast:172.19.208.63 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:211478649 errors:0 dropped:0 overruns:0 frame:0 ... (5 Replies)
Discussion started by: djbuly
5 Replies

8. Solaris

no such interface

Hi Community, I've a problem with an interface of my Sun Workstation: when I try to plumb hme0 interface I see this output: # ifconfig hme0 <ip_address> netmask <mask> plumb #ifconfig: plumb: hme0: no such interface I've the same thing with dhcp service. could you provide any solution... (1 Reply)
Discussion started by: Sunb3
1 Replies

9. Solaris

interface may off

Dear ALL, my server give me messages like below: Apr 20 21:33:09 TAISERVER in.routed: interface bge3 to 192.168.11.22 turned off I check with ifconfig,but nothing error that,how can make it solve...thanks for your help. (7 Replies)
Discussion started by: fredginting
7 Replies
Login or Register to Ask a Question