Use the boot programmable read-only memory (PROM) banner command: ok banner
Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 300MHz), Keyboard Present OpenBoot 3.31 256 MB (60ns) memory installed, Serial #9685423. Ethernet address 8:0:20:93:c9:af, Host ID: 8093c9af.
Displaying the IP Address
The ifconfig -a command displays the current configuration for the network interfaces.
# ifconfig -a lo0: flags=1000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 hme0: flags=1000843 mtu 1500 index 2 inet 192.168.30.41 netmask ffffff00 broadcast 192.168.30.255 ether 8:0:20:93:c9:af
Marking an Ethernet Interface as Down
# ifconfig hme0 down
# ifconfig -a lo0: flags=1000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 hme0: flags=1000842 mtu 1500 index 2 inet 192.168.30.41 netmask ffffff00 broadcast 192.168.30.255 ether 8:0:20:93:c9:af
Capturing and Inspecting Network Packets
# snoop sys41 sys42 sys41 -> sys42 ICMP Echo request (ID: 615 Sequence number: 0) sys42 -> sys41 ICMP Echo reply (ID: 615 Sequence number: 0) 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
Introducing IPv4 Interface Files
Network interfaces in the Solaris OS are controlled by files and services.
• The svc:/network/physical:default service
• The /etc/hostname.xxn file
• The /etc/inet/hosts file
• The /etc/inet/ipnodes file
The /etc/hostname.xxn File Entries and Corresponding Interfaces
Changing the System Host Name
The host name of a system is contained in four files on the system. You must 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 • The /etc/inet/ipnodes file
The sys-unconfigCommand