Linux Network commands

2,903 views
2,672 views

Published on

Basic Network Commands Over Linux platfrom..
By:
Nadine Shorbaji
Hanan Nimer

Published in: Education
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,903
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
181
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Linux Network commands

  1. 1. My Connection
  2. 2. Network Configuration..
  3. 3. $ smbtree
  4. 4. Think about it for a second !!!! Why single physical interface should be limited to single IP address??
  5. 5. ifconfig eth0 <ip> netmask 10.248.255.0 up sudo route add default gw 10.1.1.2
  6. 6. Test Connection..user@computer-name:~$ ping www.google.comPING www.l.google.com (66.102.13.106) 56(84) bytes of data.
  7. 7. DNS Tools..
  8. 8. host:used to map names to IP add.$ host www.google.com www.google.com is an alias for www.l.google.com. www.l.google.com has address 66.102.13.104
  9. 9. nslookupnslookup 66.102.13.103
  10. 10. $ whois 66.102.13.103
  11. 11. How many hops until some destination? $ traceroute www.amazoon.com
  12. 12. Netstat :List listening sockets , associated port# and process. netstat -l -p -n netstat --tcp netstat --udp netstat -i netstat -s
  13. 13. ethtool:What driver is responsible for certain network interface $ ethtool -i <interface> $ ethtool <interface>
  14. 14. finger: to contact the necessaryserver and retrieve info. about user. finger Email || username
  15. 15. Arp - RouteList ARP table (MAC-IP) $ arpShow routing information $ route -v
  16. 16. Security Tools
  17. 17. FireWall..sudo ufw enable disable
  18. 18. Nmap:sudo nmap 192.168.1.1-255 nmap localhost
  19. 19. Netcat : The network Swiss army knife $ nc -v -w1 localhost -z From-ToPort
  20. 20. tcpdump : a packet sniffer $ tcpdump -i eth0
  21. 21. $ tcpdump -w file -i eth0 Capture packets > file $ tcpdump -tttt -r file Read sniffing data $ tcpdump -n -i eth0 Capture packets with IPs $ tcpdump -i eth0 arp packets of protocol type$ tcpdump -i eth0 port 22 from particular port
  22. 22. Browsers from Terminal!! lynx www.google.com lynx www.facebook.com
  23. 23. wget www.google.com
  24. 24. Talk (MultiUser) talk wall write
  25. 25. Telnet vs SSH
  26. 26. Telnet sudo apt-get install telnetd $ ufw allow 23 $ telnet localhostJust try to ping it.. then telnet it
  27. 27. SSH Secure Shell, a network protocol for remote administration of Unix computers$ sudo apt-get install openssh-server$ ufw allow 22$ nmap localhost$ ssh user@pc-name
  28. 28. PuTTYAn open source telnet and SSH Clientfor Windows ..
  29. 29. Send messages between 2 Ubuntu PCsssh <user name>@<ip address>export DISPLAY=:0.0notify-send "Title” "message text"
  30. 30. References:1.http://www.alexonlinux.com/useful-linux-networking-commands 2.http://www.alexonlinux.com/tcpdump-for-dummies3.http://www.karakas-online.de/gnu-linux-tools-summary/network -commands.html 4.http://www.linuxplanet.com/linuxplanet/tutorials/7044/1/ 5.http://aalagha.com/blog/2008/01/22/netcat-swiss-army-knife 6.http://www.dd-wrt.com/wiki/index.php/SSH7.http://www.slideshare.net/tmavroidis/linuxnetworkingcommands 8. http://sectools.org/9.http://askubuntu.com/questions/31582/send-messages-between -2-ubuntu-pcs-net-send-style 10.http://ubuntuforums.org/showthread.php?t=100198 11.http://linux.about.com/od/commands/l/blcmdl1_talk.htm 12.http://forum.codecall.net/linux-networking/index3.html

×