2013年6月29日 星期六

Linux network (linux lan, linux net)

NetWork COMMAND (linux-network linux-lan linux-net)

lspci -v ## view network card
cat /proc/interrupts  ## IRQ list
hostname ## return this computer name
ifdown eth0
ifup eth0
ifconfig eth0
ping -c4 192.168.65.254

rm /etc/udev/rules.d/70-
persistent-net.rules   ## remember hardware and assign device name to it consistently when first run. it can delete

cat /etc/sysconfig/network
NETWORKING=yes    ## setl linux start networking on boot
HOSTNAME=localhost.localdomain  ## set this computer name

ps -ef | grep ssh
nmap -sS 123.456.789.000
tcpdump port ldap ## view the port
tcpdump -i lo -A -s 200
netstat -anp | grep slapd && view what port is using
ifdown eth0; ifup eth0, inconfig eth0
iptables -nL
tethereal && real the online connection
netstat && print the network connections
netstat -a | grep ftp
ping
route
traceroute && network has failed
dig
lsof && find process has the port open
sar
netstat
iftop
bwm-ng
iptraf ##onlineview
tcpdump, 

沒有留言:

張貼留言