Lists connections for ALL protocols & address families to and from machine
Address Families (AF) include:
INET - ipv4
INET6 - ipv6
UNIX - Unix Domain Sockets(Solaris/FreeBSD/Linux/etc.)
Protocols Supported in INET/INET6 include:
TCP, IP, ICMP(PING(echo/echo-reply)), IGMP, RAWIP, UDP(DHCP,TFTP,etc.)
Lists routing table
Lists DHCP status for various interfaces
Lists net-to-media table - network to MAC(network card) table
NETSTAT USAGE:
netstat - returns sockets by protocol using /etc/services for lookup
/etc/nssswitch.conf is consulted by netstat to resolve names for IPs
netstat -a - returns ALL protocols for ALL address families (TCP/UDP/UNIX)
netstat -an - -n option disables name resolution of hosts & ports
netstat -i - returns the state of interfaces. pay attention to errors/collisions/queue columns when troubleshooting performance
netstat -m - returns streams(TCP) statistics
netstat -p - returns net-to-media info (MAC/layer-2 info.) i.e. arp
netstat -P protocol (ip|ipv6|icmp|icmpv6|tcp|udp|rawip|raw|igmp) - returns active sockets for selected protocol
netstat -r - returns routing table
netstat -D - returns DHCP configuration (lease duration/renewal/etc.)
netstat -an -f address_family
netstat -an -f inet|inet6|unix
netstat -an -f inet - returns ipv4 only information
netstat -n -f inet
netstat -anf inet -P tcp
netstat -anf inet -P udp
Categories
- Basics (11)
- Storage (SAN) (2)
- Veritas Volume Manager (2)
- ZFS (8)
- Zones (6)
Thursday, May 22, 2008
NETSTAT Usage in Solaris
Subscribe to:
Post Comments (Atom)
Subscribe to Solaris Guru
Browse Articles
-
▼
2008
(23)
-
▼
May
(17)
- Solaris - Crontab
- NETSTAT Usage in Solaris
- State Database Replicas - Introduction
- Solaris Volume Management - Introduction
- Creating a Swap File/Partition in Solaris
- Implementing a Temporary File System (TEMPFS) in S...
- How to determine file system associated with devic...
- Steps to partition and create file systems on a So...
- NAS and SAN - A Comparison (for newbies)
- Tips on Veritas Volume Manager (VxVM)
- Veritas Volume Manager - Quick Start Command Refer...
- Mirroring Disk With Solaris Disksuite (formerly So...
- Gigabit Ethernet Configuration
- ZFS - Introduction
- Solaris Zones - Introduction
- ZFS - Training Video
- SAN Storage Configuration in Solaris
-
▼
May
(17)
0 comments:
Post a Comment