Sponsored Content
Operating Systems Solaris ifconfig -a vs dladm show-dev and IP ? Post 302522198 by dehetoxic on Friday 13th of May 2011 04:12:03 PM
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..
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
bge(7D) 							      Devices								   bge(7D)

NAME
bge - SUNW,bge Gigabit Ethernet driver for Broadcom BCM57xx SYNOPSIS
/dev/bge* DESCRIPTION
The bge Gigabit Ethernet driver is a multi-threaded, loadable, clonable, GLD-based STREAMS driver supporting the Data Link Provider Inter- face, dlpi(7P), on Broadcom BCM57xx (BCM5700/5701/5703/5704/5705/5705M/5714/5721/5751/5751M/5782/5788 on x86) Gigabit Ethernet controllers fitted to the system motherboard. With the exception of BCM5700/BCM5701/BCM5704S, these devices incorporate both MAC and PHY functions and provide three-speed (copper) Ethernet operation on the RJ-45 connectors. (BCM5700/BCM5701/BCM5704S do not have a PHY integrated into the MAC chipset.) The bge driver functions include controller initialization, frame transmit and receive, promiscuous and multicast support, and error recov- ery and reporting. The bge driver and hardware support auto-negotiation, a protocol specified by the 1000 Base-T standard. Auto-negotiation allows each device to advertise its capabilities and discover those of its peer (link partner). The highest common denominator supported by both link partners is automatically selected, yielding the greatest available throughput, while requiring no manual configuration. The bge driver also allows you to configure the advertised capabilities to less than the maximum (where the full speed of the interface is not required), or to force a specific mode of operation, irrespective of the link partner's advertised capabilities. APPLICATION PROGRAMMING INTERFACE
The cloning character-special device, /dev/bge, is used to access all BCM57xx devices ( (BCM5700/5701/5703/5704, 5705/5714/5721/5751/5751M/5782 on x86) fitted to the system motherboard. The bge driver is managed by the dladm(1M) command line utility, which allows VLANs to be defined on top of bge instances and for bge instances to be aggregated. See dladm(1M) for more details. You must send an explicit DL_ATTACH_REQ message to associate the opened stream with a particular device (PPA). The PPA ID is interpreted as an unsigned integer data type and indicates the corresponding device instance (unit) number. The driver returns an error (DL_ERROR_ACK) if the PPA field value does not correspond to a valid device instance number for the system. The device is initialized on first attach and de- initialized (stopped) at last detach. The values returned by the driver in the DL_INFO_ACK primitive in response to a DL_INFO_REQ are: o Maximum SDU (default 1500). o Minimum SDU (default 0). o DLSAP address length is 8. o MAC type is DL_ETHER. o SAP length value is -2, meaning the physical address component is followed immediately by a 2-byte SAP component within the DLSAP address. o Broadcast address value is the Ethernet/IEEE broadcast address (FF:FF:FF:FF:FF:FF). Once in the DL_ATTACHED state, you must send a DL_BIND_REQ to associate a particular Service Access Point (SAP) with the stream. CONFIGURATION
By default, the bge driver performs auto-negotiation to select the link speed and mode. Link speed and mode can be any one of the follow- ing, (as described in the IEEE803.2 standard): o 1000 Mbps, full-duplex o 1000 Mbps, half-duplex o 100 Mbps, full-duplex o 100 Mbps, half-duplex o 10 Mbps, full-duplex o 10 Mbps, half-duplex The auto-negotiation protocol automatically selects: o Speed (1000 Mbps, 100 Mbps, or 10 Mbps) o Operation mode (full-duplex or half-duplex) as the highest common denominator supported by both link partners. Because the bge device supports all modes, the effect is to select the highest throughput mode supported by the other device. Alternatively, you can set the capabilities advertised by the bge device using dladm(1M). The driver supports a number of parameters whose names begin with en_ (see below). Each of these parameters contains a boolean value that determines whether the device advertises that mode of operation. If en_autoneg_cap is set to 0, the driver forces the mode of operation selected by the first non-zero parameter in priority order as listed below: (highest priority/greatest throughput) en_1000fdx_cap 1000Mbps full duplex en_1000hdx_cap 1000Mpbs half duplex en_100fdx_cap 100Mpbs full duplex en_100hdx_cap 100Mpbs half duplex en_10fdx_cap 10Mpbs full duplex en_10hdx_cap 10Mpbs half duplex (lowest priority/least throughput) For example, to prevent the device 'bge2' from advertising gigabit capabilities, enter (as super-user): # dladm set-linkprop -p enable_1000hdx_cap=0 bge2 # dladm set-linkprop -p enable_1000fdx_cap=0 bge2 All capabilities default to enabled. Note that changing any capability parameter causes the link to go down while the link partners renego- tiate the link speed/duplex using the newly changed capabilities. The current settings of the parameters may be found using dladm show-ether. In addition, the driver exports the current state, speed, duplex setting, and working mode of the link via kstat parameters (these are read only and may not be changed). For example, to check link state of device bge0: # dladm show-ether -x bge0 LINK PTYPE STATE AUTO SPEED-DUPLEX PAUSE bge0 current up yes 1G-f bi -- capable -- yes 1G-fh,100M-fh,10M-fh bi -- adv -- yes 1G-fh bi -- peeradv -- yes 1G-f bi The output above indicates that the link is up and running at 1Gbps full-duplex with its rx/tx direction pause capability. To extract link state information for the same link using kstat: # kstat bge:0:mac:link_state module: bge instance: 0 name: mac class: net link_state The default MTU is 1500. To enable Jumbo Frames support, you can configure the bge driver by defining the default_mtu property via dladm(1M) or in driver.conf(4) to greater than 1500 bytes (for example: default_mtu=9000). Note that the largest jumbo size supported by bge is 9000 bytes. Additionally, not all bge-derived devices currently support Jumbo Frames. The following devices support Jumbo Frames up to 9KB: BCM5700, 5701, 5702, 5703C, 5703S, 5704C, 5704S, 5714C, 5714S, 5715C and 5715S. Other devices currently do not support Jumbo Frames. FILES
/kernel/drv/bge* 32-bit ELF kernel module. (x86) /kernel/drv/amd64/bge 64-bit ELF kernel module (x86). /kernel/drv/sparcv9/bge 64-bit ELF kernel module (SPARC). ATTRIBUTES
See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |SPARC, x86 | +-----------------------------+-----------------------------+ SEE ALSO
dladm(1M), driver.conf(4), attributes(5), streamio(7I), dlpi(7P) Writing Device Drivers STREAMS Programming Guide Network Interfaces Programmer's Guide SunOS 5.11 9 Apr 2008 bge(7D)
All times are GMT -4. The time now is 07:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy