# ifconfig -a ==> to display the MAC address
# ifconfig -a ==> to display the configuration for all
network interfaces
# ifconfig rtls0 down ==> to mark an ethernet interface as down
# ifconfig -a
# ifconfig rtls0 up ==> to mark an ethernet interface as up
# ifconfig -a
# ifconfig rtls0 <ipaddr> up ==> to change ip address
# ifconfig rtls0 192.168.1.100 up
# vi /etc/inet/hosts
192.168.1.100 station100 loghost
:wq
Sending ICMP ECHO_REQUEST Packets
# ping station14 ==> to determine if you can contact another system
over the network
Capturing and Inspecting Network Packets
# snoop station12 station14 ==> to view network traffic between two
specific systems
Additional snoop options:
snoop Summary output
snoop -V Summary verbose output
snoop -v Detailed verbose output
snoop -o filename Redirects the snoop utility output to filename in summary mode
snoop -i filename Displays packets that were previously captured in filename
Note – Press Control-C to stop the snoop utility.
The Service Management Facility (SMF)
The SMF provides a centralized configuration structure for managing system services
The svc.startd daemon is the daemon which is responsible for maintaining the system services
A sub-component of the SMF, the Internet daemon processes are mostly managed using the inetadm command.
# inetadm ==> to list internet daemon processes
Configuring IPv4 Interfaces at Boot Time
The services and files are the following
The svc:/network/physical:default service
The /etc/hostname.xxn file
The /etc/inet/hosts file
The svc:/network/physical:default service calls /lib/svc/method/net-physical method script.
It is one of the startup scripts that runs each time you boot the system. This script uses the ifconfig utility to configure each interface with an IP address and other required network information.
The /etc/hostname.hme0 file contains either the host name or the IP address of the system that contains the hme0 interface.
The host name contained in the file must exist in the /etc/inet/hosts file so that it can be resolved to an IP address at system boot time
# cat /etc/hostname.hme0
sys41
or
# cat /etc/hostname.hme0
192.168.30.41
The /etc/inet/hosts file is a local database that associates the IP addresses of hosts with their names
# cat /etc/inet/hosts
127.0.0.1 localhost
192.168.30.41 sys41 loghost #connection to hme interface
192.168.4.1 sys41 #connection to qfe interface
Changing the System Host Name
The host name of a system is contained in three files on the system.
Modify all of these files, and perform a reboot, to successfully change a system’s host name.
The /etc/nodename file
The /etc/hostname.xxn file
The /etc/inet/hosts file
# cat /etc/nodename ==> to view a systems /etc/nodename file
sys41
# cat /etc/inet/ipnodes
# cat /etc/hosts