Getting Network Interface details in solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Getting Network Interface details in solaris
# 1  
Old 09-20-2010
Getting Network Interface details in solaris

Hi,

/sbin/ifconfig -a

when i login as guest user , output like below,

Code:
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
eri0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 192.168.118.232 netmask ffffff00 broadcast 192.168.118.255

As root login, output like below,

Code:
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
eri0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet 192.168.118.232 netmask ffffff00 broadcast 192.168.118.255
        ether 0:3:ba:3a:27:cb

whether the ether can get only in root login or do i need to give proper command ?

what arguments i need to give in ifconfig -a to get the ether value as guest login


Please guide me.
# 2  
Old 09-20-2010
Which solaris version you are using?
# 3  
Old 09-20-2010
You can try to grep the information out of the output of the arp-command, like:

Code:
$ /usr/sbin/arp -an | grep 10.10.49.73
e1000g0 10.10.49.73          255.255.255.255 SPLA     00:1b:21:24:99:32

grep for the primary IP address of the interface, the MAC address is the last field in the output.
This User Gave Thanks to hergp For This Post:
# 4  
Old 09-20-2010
it works for me!
# 5  
Old 09-20-2010
Thanks for valuable reply. I can get through arp command.

Is it not possible to get the ether value through ifconfig ?

Am using three types of solaris machine.

Machine 1 : SunOS 5.10 Generic_118833-33
Machine 2 : SunOS 5.10 Generic_127127-11
Machine 3 : SunOS 5.10 Generic_137138-09
# 6  
Old 09-20-2010
You need to be root (or have at least the required RBAC privileges) to get them through ifconfig.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Network interface configuration - Solaris 11

Hi, I am new in Solaris 11. I can't even make the NIC work. Here is the issue: Any help will be greatly appreciated. (6 Replies)
Discussion started by: aixlover
6 Replies

2. Solaris

Network Interface -- Solaris

Dear All, I have a solaris Server in which I have 4 network interfaces , out of which only one is used . So all the applications are using this interface . The interface speed is 1000Mbps . I find no hardware issue or packets g being dropped. But i find that no of Input and Output... (4 Replies)
Discussion started by: jegaraman
4 Replies

3. Solaris

Configure network interface for Solaris 10

Hi, I have installed Solaris 10 on VMware7, When i used ifconfig -a to check network interface, it has shown lo0 as loopback interface. Please advise how to configure network interfaces using VMware. (1 Reply)
Discussion started by: ajhal04
1 Replies

4. Solaris

Solaris Network Interface and USB Drive issues

Hi I had installed Sun Solaris 10 on my dell vostro 1400.Problem is iam unable to mount the usb drives as there was no detections at all.And also iam unable to find my network interface or iam not able to install the network card. If try to type ifconfig -a It is showing only loop back... (4 Replies)
Discussion started by: testerindia25
4 Replies

5. Solaris

What are the kernel parameter of network interface in Solaris?

Hi gurus Could anybody tell me that what are the kernal parameter of network interface in solaris Regards (3 Replies)
Discussion started by: girish.batra
3 Replies

6. Solaris

Route new network interface Solaris 8

Hi there, I'm trying to configure an additional network interface on Solaris 8 (eri0). The interface has been activated, but all the frames are still routed to the current default interface (ce0) I've tried following command (with various syntaxes...) unsuccessfully so far: # route add... (2 Replies)
Discussion started by: sreiniche
2 Replies

7. Solaris

Determine Solaris box network interface?

Given a new Solaris box, with a fresh, unconfigured install on it, how does one figure out what kind of network interface it has (bge,le, hme, etc)? (8 Replies)
Discussion started by: akbar
8 Replies

8. Solaris

Solaris 9 on x86- Can't detect network interface

Hi All, I recently installed Solaris 9 on my Compaq Presario V2000 Series (V2069CL) laptop. Everything is working fine except that Solaris is not able to detect the Network Interface after boot. While the system is booting, it shows that it has detected "Xircom Pocket Ethernet parallel port... (3 Replies)
Discussion started by: com2com
3 Replies

9. Solaris

network interface problem solaris 2.5

Hi guys, Hope somebody can help me on this. I have a Sun Sparc 20 workstation and it has a boot problem. During boot, an error message " ifconfig:socket: Bad File Number" come up and the workstation hang (cannot boot). I did boot -s and checked using ifconfig -a command but i got the same... (0 Replies)
Discussion started by: kroegand
0 Replies
Login or Register to Ask a Question