SA-299 Day 1
-------------------
========================================================== ==============
Configure multiple IP addresses in one network interface (NIC)
VI/etc/hostname. hme0: 1
Sun71
VI/etc/hosts
10.1.101.71 sun71
Ifconfig hme0 down
Ifconfig hme0 up
Or
/Etc/rc2.d/s69inet stop
/Etc/rc2.d/s69inet start
/Etc/RCs. d/s30network. Sh
Ping sun71
========================================================== ==============
Ifconfig hme0 down
Ifconfig-
Ifconfig hme0 up
========================================================== ==============
Ping the remote host continuously:
Ping-I1 10.1.101.10
========================================================== ==============
Host Name changed:
Modify the six files related to the host name/etc/nodename/etc/hostname. hme0/etc/hosts/etc/Ti ..
Old: sunxx
New: sunxxnew
Ping sunxxnew
Restore original host name
========================================================== ==============
Intercept the network communication content of other hosts in the LAN
Task
----
TELNET: host1-> host2
Echo: Hello xxxx
Host3: Snoop capture word "hello"
Command Sequence
--------
Snoop-O/export/home/Solomon/snooplog 10.1.101.99 10.1.101.10
Change the format of the listener File
Snoop-I/export/home/Solomon/snooplog>/export/home/Solomon/snooplog1
VI/export/home/Solomon/snooplog1
========================================================== ==============
Modify FTP service port
VI/etc/services
Ftp-data 10020/tcp
Set FTP 10021/tcp
Pkill-hup inetd
FTP: 10.1.101.70 10021
Restore the/etc/services file
========================================================== ==============
RPC Service Management
Rpcinfo-P
CAT/etc/RPC
Rpcinfo-D 100012 1
Rpcinfo-p | grep 100012
Pkill-hup inetd
Rpcinfo-p | grep 100012
Spray 10.1.101.10
========================================================== ==============
Swap space management
VI/etc/vfstab
/Dev/DSK/c1t0d0s3--Swap-no-
Swap-A/dev/DSK/c1t0d0s3
Http://doc.sun.com
Http://docs.sun.com
Google:
SA-119 site: sun.com