Linux Networking Tips

Posted on November 12, 2006

advertisement

[tag]Linux[/tag] Networking [tag]Tips[/tag]:

1. ping - Test Network Connection
- ping google.com

2. ifconfig - View/Configure [tag]Network[/tag] Adapter Configuration
- ifconfig -a

3. netstat - displays information for all active sockets, including the port numbers associated with each type of network service.
a. List of listening network ports (TCP and UDP sockets):
- /bin/netstat -tulp

b. Display LISTEN PORT:
- /bin/netstat -nap |grep LISTEN

c. Display Open Port:
- /usr/bin/nmap localhost OR /bin/netstat -a OR /bin/fuser -n tcp [port]

4. lsof - list open files
a. Display all of the TCP and UDP sockets to which programs are listening:
- /usr/bin/lsof -i -n | egrep ‘COMMAND|LISTEN|UDP’

5. nslookup - find all of the IP addresses for a given domain name
- /usr/bin/nslookup google.com

6. traceroute - a utility to view the number of hops (connection points) and response time to get to a remote system or web site.
- /usr/bin/traceroute www.yahoo.com

7. mtr - combines the functionality of the traceroute and ping programs in a single network diagnostic tool.
- /usr/bin/mtr redhat.com

8. hostname - display the host name, domain name or IP address of your machine.


user1@planetmy:~$ /bin/hostname
planetmy

Possibly Related Posts:


Comments

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com