P. Bournias
Management Information Systems and Networking Technology


Areas of Consulting
Contact
Main Design's


LINUX RESOURCE #5

LINUX & WINDOWS NETWORKING COMMANDS:

linux
hostname -v displays the host name of the system
domainname -v displays the domain name of the system
Ifconfig -a list networking interfaces
route -n list all defined routes
Route add default gw x.x.x.x eth0 add a gateway to a network interface
Route delete x.x.x.x delete an ip interface
Route add default gw x.x.x.x ppp0 add a gateway to a modem interface
where x.x.x.x is an ip address
e.g. ifconfig eth1 192.168.10.100 netmask 255.255.255.0 broadcast 192.168.10.255
tcpdump -I $if -vvv dump all activity
linuxconf system configurator
netconf network configurator
nslookup x.x.x.x dns checker
telnet x.x.x.x yy or name & port start a telnet connection
traceroute x.x.x.x watch packets
arp -a x.x.x.x displays arp entries & mac addresses
ping x.x.x.x call hosts
netstat -nap network statistics
netstat -I to check mtu settings
ipchains -n -v -L to check firewall setup
iptables -L to view iptable settings
dig x.x.x.x dns records records check
dig -x 192.168.1.10 to check reverse name lookup
dig 192.168.1.10 192.168.1.10 to check forward & reverse name lookup
dig mydomain.cxm ns to check nameserver dns
dig mydomain.cxm mx to check mail server dns
ip link list displays i/o links
ip address show displays addresses in effect
mii-tool -v netcard status info
last -100 show last n lines of logins
   
windows equivalents
arp -a x.x.x.x displays arp entries
ping x.x.x.x checks ip address
dig on windows use the program Spade or equivalent.
Ipconfig /all lists all networking interfaces
route print displays active routes and gateways
route cmd ip gateway ip e.g. usage of the route command
Route add x.x.x.x x.x.x.x add a route and netmask
Route delete x.x.x.x delete a route
telnet x.x.x.x start a telnet connection
tracert x.x.x.x watch packets
winipcfg route information
nbtstat -a x.x.x.x displays remote name

Please note that adding or deleting routes are not necessarily permanent unless you make the changes set in the appropriate linux network configuration file.



Previous page   Linux   Next page
 
Copyright © 2008. All Rights Reserved.   Designs