Thursday, April 20, 2006

network diagnose

#change hostname
echo "HOSTNAME=<ur_hostname>" >> /etc/sysconfig/network

#server lookup
#hostnames: /etc/hosts
#dns: /etc/resolv.conf

#nic configuration: /etc/sysconfig/network-scripts/

#gateway
netstat -rn

#port defination: /etc/services

#restart network
/etc/rc.d/init.d/network restart

#to change the IP address to 192.168.0.10 temporarily
ifconfig eth0 inet 192.168.0.10 netmask 255.255.255.0

#adds a route to the network 192.56.76.x via "eth0".
route add -net 192.56.76.0 netmask 255.255.255.0 eth0

#nmap & netstat deserve another article
--
For many are called, but few are chosen.
-- Matthew 22:14

No comments: