ifconfig -a vs dladm show-dev and IP ?


 
Thread Tools Search this Thread
Operating Systems Solaris ifconfig -a vs dladm show-dev and IP ?
# 1  
Old 05-13-2011
ifconfig -a vs dladm show-dev and IP ?

Can anyone please explain what does these means ?

Code:
# dladm show-dev
nxge0           link: up        speed: 1000  Mbps       duplex: full
nxge1           link: up        speed: 1000  Mbps       duplex: full
e1000g0         link: up        speed: 1000  Mbps       duplex: full
e1000g1         link: up        speed: 1000  Mbps       duplex: full
e1000g2         link: up        speed: 1000  Mbps       duplex: full
e1000g3         link: up        speed: 1000  Mbps       duplex: full
e1000g4         link: unknown   speed: 0     Mbps       duplex: half
e1000g5         link: unknown   speed: 0     Mbps       duplex: half

# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g2001000: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2
        inet 172.19.167.2 netmask ffffff00 broadcast 172.18.166.255
        ether 0:34:5f:ce:9a:c8
e1000g2002001: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3
        inet 172.19.169.2 netmask ffffff00 broadcast 172.18.167.255
        ether 0:34:5f:ce:9a:c9
e1000g2010000: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 4
        inet 10.200.1.110 netmask ffffff00 broadcast 10.200.1.255
        groupname HSBC1
        ether 0:34:5f:ce:9a:c8
e1000g2010000:1: flags=209040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,CoS> mtu 1500 index 4
        inet 10.200.1.13 netmask ffffff00 broadcast 10.200.1.255
e1000g2010001: flags=269040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE,CoS> mtu 1500 index 5
        inet 10.200.1.14 netmask ffffff00 broadcast 10.200.1.255
        groupname HSBC1
        ether 0:34:5f:ce:9a:c9

Do they means I have 2 network interfaces card with 7 ports(dladm show-dev) and 5 ports(ifconfig -a) ? and where can I see the IP address of nxge0? nxge1? and so on ? Sorry for being naive, I just started as Solaris Engineer.

Last edited by dehetoxic; 05-13-2011 at 05:40 PM..
# 2  
Old 05-13-2011
i would say you have 2 network cards (with two ports each) and 4 onboard networkinterfaces. the output of "prtdiag -v" would be helpfull to know more.
from "ifconfig" you can see there are only two interfaces (e1000g0 and 1) configured with vlan tagging. the other interfaces are connected (not e1000g4 and 5) but not configured with an ip address.
but your machine might be a cluster (or something else...) which uses the interfaces in an other way...
This User Gave Thanks to DukeNuke2 For This Post:
# 3  
Old 05-13-2011
nxge cards and other e1000X NICs not visible in ifconfig output are probably just not configured. You can "plumb" them so they will be visible in ifconfig and then configure them with proper IP addresses. Start with:
Code:
ifconfig nxge0 plumb

Do the same for the rest of the NICs. Other interfaces you are seeing in the output - e1000g2001000, etc, are VLAN interfaces configured on e1000g0 and e1000g1. You can figure out on which interface they are configured by looking at the last digit in the NICs name: e1000g0 - e1000g2001000, e1000g1 - e1000g2002001
This User Gave Thanks to bartus11 For This Post:
# 4  
Old 05-13-2011
thanks guy....prtdiag output

Code:
# prtconf -D | grep network
        network, instance #0 (driver name: nxge)
        network, instance #1 (driver name: nxge)
                network, instance #0 (driver name: e1000g)
                network, instance #1 (driver name: e1000g)
                network, instance #2 (driver name: e1000g)
                network, instance #3 (driver name: e1000g)
                network, instance #4 (driver name: e1000g)
                network, instance #5 (driver name: e1000g)


so this output mean, i have 2 cards with nxge0 and nxge1........AND e1000g0 e1000g1 ?
# 5  
Old 05-13-2011
prtconf != prtdiag
This User Gave Thanks to DukeNuke2 For This Post:
# 6  
Old 05-13-2011
Sorry Smilie here they are

Code:
# prtdiag
System Configuration:  Sun Microsystems  sun4v Netra CP3260
Memory size: 16256 Megabytes

================================ Virtual CPUs ================================


CPU ID Frequency Implementation         Status
------ --------- ---------------------- -------
0      1167 MHz  SUNW,UltraSPARC-T2     on-line
1      1167 MHz  SUNW,UltraSPARC-T2     on-line
2      1167 MHz  SUNW,UltraSPARC-T2     on-line
3      1167 MHz  SUNW,UltraSPARC-T2     on-line
4      1167 MHz  SUNW,UltraSPARC-T2     on-line
5      1167 MHz  SUNW,UltraSPARC-T2     on-line
6      1167 MHz  SUNW,UltraSPARC-T2     on-line
7      1167 MHz  SUNW,UltraSPARC-T2     on-line
8      1167 MHz  SUNW,UltraSPARC-T2     on-line
9      1167 MHz  SUNW,UltraSPARC-T2     on-line
10     1167 MHz  SUNW,UltraSPARC-T2     on-line
11     1167 MHz  SUNW,UltraSPARC-T2     on-line
12     1167 MHz  SUNW,UltraSPARC-T2     on-line
13     1167 MHz  SUNW,UltraSPARC-T2     on-line
14     1167 MHz  SUNW,UltraSPARC-T2     on-line
15     1167 MHz  SUNW,UltraSPARC-T2     on-line
16     1167 MHz  SUNW,UltraSPARC-T2     on-line
17     1167 MHz  SUNW,UltraSPARC-T2     on-line
18     1167 MHz  SUNW,UltraSPARC-T2     on-line
19     1167 MHz  SUNW,UltraSPARC-T2     on-line
20     1167 MHz  SUNW,UltraSPARC-T2     on-line
21     1167 MHz  SUNW,UltraSPARC-T2     on-line
22     1167 MHz  SUNW,UltraSPARC-T2     on-line
23     1167 MHz  SUNW,UltraSPARC-T2     on-line
24     1167 MHz  SUNW,UltraSPARC-T2     on-line
25     1167 MHz  SUNW,UltraSPARC-T2     on-line
26     1167 MHz  SUNW,UltraSPARC-T2     on-line
27     1167 MHz  SUNW,UltraSPARC-T2     on-line
28     1167 MHz  SUNW,UltraSPARC-T2     on-line
29     1167 MHz  SUNW,UltraSPARC-T2     on-line
30     1167 MHz  SUNW,UltraSPARC-T2     on-line
31     1167 MHz  SUNW,UltraSPARC-T2     on-line
32     1167 MHz  SUNW,UltraSPARC-T2     on-line
33     1167 MHz  SUNW,UltraSPARC-T2     on-line
34     1167 MHz  SUNW,UltraSPARC-T2     on-line
35     1167 MHz  SUNW,UltraSPARC-T2     on-line
36     1167 MHz  SUNW,UltraSPARC-T2     on-line
37     1167 MHz  SUNW,UltraSPARC-T2     on-line
38     1167 MHz  SUNW,UltraSPARC-T2     on-line
39     1167 MHz  SUNW,UltraSPARC-T2     on-line
40     1167 MHz  SUNW,UltraSPARC-T2     on-line
41     1167 MHz  SUNW,UltraSPARC-T2     on-line
42     1167 MHz  SUNW,UltraSPARC-T2     on-line
43     1167 MHz  SUNW,UltraSPARC-T2     on-line
44     1167 MHz  SUNW,UltraSPARC-T2     on-line
45     1167 MHz  SUNW,UltraSPARC-T2     on-line
46     1167 MHz  SUNW,UltraSPARC-T2     on-line
47     1167 MHz  SUNW,UltraSPARC-T2     on-line
48     1167 MHz  SUNW,UltraSPARC-T2     on-line
49     1167 MHz  SUNW,UltraSPARC-T2     on-line
50     1167 MHz  SUNW,UltraSPARC-T2     on-line
51     1167 MHz  SUNW,UltraSPARC-T2     on-line
52     1167 MHz  SUNW,UltraSPARC-T2     on-line
53     1167 MHz  SUNW,UltraSPARC-T2     on-line
54     1167 MHz  SUNW,UltraSPARC-T2     on-line
55     1167 MHz  SUNW,UltraSPARC-T2     on-line
56     1167 MHz  SUNW,UltraSPARC-T2     on-line
57     1167 MHz  SUNW,UltraSPARC-T2     on-line
58     1167 MHz  SUNW,UltraSPARC-T2     on-line
59     1167 MHz  SUNW,UltraSPARC-T2     on-line
60     1167 MHz  SUNW,UltraSPARC-T2     on-line
61     1167 MHz  SUNW,UltraSPARC-T2     on-line
62     1167 MHz  SUNW,UltraSPARC-T2     on-line
63     1167 MHz  SUNW,UltraSPARC-T2     on-line

======================= Physical Memory Configuration ========================
Segment Table:
--------------------------------------------------------------
Base           Segment  Interleave  Bank     Contains
Address        Size     Factor      Size     Modules
--------------------------------------------------------------
0x0            16 GB    4           4 GB     MB/CMP0/BR0/CH0/D0
                                             MB/CMP0/BR0/CH1/D0
                                    4 GB     MB/CMP0/BR1/CH0/D0
                                             MB/CMP0/BR1/CH1/D0
                                    4 GB     MB/CMP0/BR2/CH0/D0
                                             MB/CMP0/BR2/CH1/D0
                                    4 GB     MB/CMP0/BR3/CH0/D0
                                             MB/CMP0/BR3/CH1/D0


========================= IO Configuration =========================

            IO
Location    Type    Slot Path                                           Name                      Model
----------- -----   ---- ---------------------------------------------  ------------------------- ---------
MB/NET5      PCIE   MB                  /pci@0/pci@0/pci@1/network@0    network-pciex8086,105e
MB/NET4      PCIE   MB                /pci@0/pci@0/pci@1/network@0,1    network-pciex8086,105e
MB/NET3      PCIE   MB                  /pci@0/pci@0/pci@2/network@0    network-pciex8086,1060
MB/NET2      PCIE   MB                /pci@0/pci@0/pci@2/network@0,1    network-pciex8086,1060
MB/PCIE      PCIE   MB                     /pci@0/pci@0/pci@8/scsi@0         scsi-pciex1000,58 LSI,1068E
MB/NET1      PCIE   MB                  /pci@0/pci@0/pci@9/network@0    network-pciex8086,105e
MB/NET0      PCIE   MB                /pci@0/pci@0/pci@9/network@0,1    network-pciex8086,105e
MB/PCIE      PCIE   MB                /pci@0/pci@0/pci@a/pci@0/usb@4       usb-pciclass,0c0310
MB/PCIE      PCIE   MB              /pci@0/pci@0/pci@a/pci@0/usb@4,1       usb-pciclass,0c0310
MB/PCIE      PCIE   MB              /pci@0/pci@0/pci@a/pci@0/usb@4,2       usb-pciclass,0c0320

============================ Environmental Status ============================

Temperature sensors:
All temperature sensors are OK.

============================ FRU Status ============================
All FRUs are enabled.

Moderator's Comments:
Mod Comment please use "code" tags and not "php" tags!

Last edited by DukeNuke2; 05-13-2011 at 06:01 PM..
# 7  
Old 05-13-2011
The interfaces that show up in dladm but not with ifconfig might also be used by exclusive IP non global zones.
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 11.4.2.3.0 - dladm link names mapping

Hi all, I have never wondered where is the mapping of the link names to physical device path display under dladm show-phys until today. fmadm list reported nic port failure and i am trying to mapped it to the correct linkname in dladm show-link / dladm show-phys to see if the link is... (1 Reply)
Discussion started by: javanoob
1 Replies

2. Red Hat

Changing grub from /dev/sda to /dev/sdb

Hi, Please suggest steps to change grub from /dev/sda to /dev/sdb, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

3. Shell Programming and Scripting

Automating partitioning setup of /dev/sda on /dev/sdc

Objective: To recreate the partitioning setup of /dev/sda on /dev/sdc How would I parse the below information and initialize variables (an array?) that can be used to build sgdisk commands in a script, regardless of the number of partitions? Something along the lines of: sgdisk -n... (12 Replies)
Discussion started by: RogerBaran
12 Replies

4. Solaris

Lun remove, stuck in /dev/dsk and /dev/rdsk

So, we removed a LUN from the SAN and the system is refusing to remove the references to it in the /dev folder. I've done the following: devfsadm -Cv powermt -q luxadm -e offline <drive path> luxadm probe All those commands failed to remove the path. The drive stills shows up as <drive... (13 Replies)
Discussion started by: DustinT
13 Replies

5. Solaris

[beginner] dladm create-bridge

hello everyone, I'm a new user and unix-beginner. I've just installer solaris 11 on my home server, disabled some services, created a fallback BE, enabled speedstep, etc and now I'm trying to create some zones. I'd like to have an exclusive ip zone and, as far as I know, I sould assignate it... (12 Replies)
Discussion started by: kimj
12 Replies

6. Solaris

remove interface from dladm

Greetings how can i remove an interface from dladm? i want to remove ce3 and ce4 which are not even plumbed but still shown in dladm output :( dladm show-dev ce0 link: unknown speed: 1000 Mbps duplex: full ce1 link: unknown speed: 1000 Mbps duplex:... (3 Replies)
Discussion started by: kashif_islam
3 Replies

7. Solaris

ifconfig -a for rtls0 does not show RUNNING

Hi, I have freshly installed solaris 10 update 5 on my desktop, and during the installation, I specified a static IP address, gateway, netmask. When I run "ifconfig rtls0" after the installation, I get the following message #ifconfig rtls0 rtls0: flags=1000803<UP,BROADCAST,MULTICAST,IPv4>... (8 Replies)
Discussion started by: krishisthere
8 Replies

8. Shell Programming and Scripting

[ask]Show ifconfig in the seven segment display

dear all,, can i showing ip address in the seven segment display? #ifconfig eth0 192.168.1.1 in the seven segment display will show the ip address like i'm typing in the shell...if the ip address has changed in the shell then in the seven segment display change too... plis help me about... (3 Replies)
Discussion started by: demhyt
3 Replies

9. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

10. Solaris

dladm use

Thanks to DukeNuke for the suggestion of dladm before. I was able to upgrade my machine to Solaris 10. I am checking out the sue of dladm, but I am a bit confused. In order to team 2 NIC ports together on my qud ethernet card do I just do this: dladm create aggr -d ce0 -d ce1 key Do I need to... (1 Reply)
Discussion started by: hshapiro
1 Replies
Login or Register to Ask a Question