To show all network interfaces on a Solaris UNIX system, you can use the ifconfig
command with the -a
option. This will display all active and inactive network interfaces on the system.
For example:
ifconfig -a
This will show output similar to the following:
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 10.0.0.1 netmask ffffff00 broadcast 10.0.0.255 e1000g1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 inet 10.0.1.1 netmask ffffff00 broadcast 10.0.1.255
This output shows that the system has three network interfaces: a loopback interface (lo0
), and two Ethernet interfaces (e1000g0
and e1000g1
). The flags field shows the current status of each interface, and the inet
field shows the IP address and netmask assigned to the interface.
You can also use the dladm
utility to show more detailed information about the network interfaces on the system. For example:
dladm show-dev
This will show output similar to the following:
DEVICE MEDIA STATE SPEED DUPLEX e1000g0 Ethernet up 1000 full e1000g1 Ethernet up 1000 full
This output shows the device name, media type, status, speed, and duplex mode for each network interface on the system.
You can use these tools to get a detailed view of the network interfaces on your Solaris UNIX system.