Friday, 7 October 2011

Network Utilities

Most of the available networking tools are specialized and are mainly of interest to professionals who are maintaining a large network. Many, however are relevant to the Internet and some of these can be helpful to the average PC user. The commands in the first table are generic and in general, with some minor exceptions, apply across each operating system.

Generic Network Utilities
Command
Info
ping <target_name>
Verifies IP-level connectivity. This utility verifies that a host computer can connect to the TCP/IP network and network resources.
ipconfig /all

# Renew IP addr. config
ipconfig /renew

# Release IP addr. config
ipconfig /release
Display TCP/IP configuration information, renew and release DHCP assigned address configuration and register in dynamic DNS or flush the local DNS cache.



The *nix equivalent of this command is usually ifconfig
# Display current ARP entries
arp -a

# Add a permanent ARP entry
arp –s <inet_addr> <eth_addr>

# Delete host
arp –d <inet_addr>
The arp utility can be used to manually resolve IP addresses to MAC addresses and to modify or display the current ARP cache table.
# Display current connection and listening ports
netstat -a

# Display Ethernet stats
netstat –e

# Displays routing table
netstat –r
Display TCP/IP protocol statistics and information about TCP and UDP connection to and from the local computer.
tracert <target_name>

# Do not resolve addresses
tracert –d <target_name>
Determine the route that an IP datagram takes to reach a destination.

For the more advanced users, we can add more powerful commands to our networking toolbox. The below commands are mostly of use to *Nix (in particular Linux) users whereby most of the things can be performed through scripts.  

Specific Networking Utilities
Command
Info
# Check if iptables is running
service iptables status

# Disable iptables
service iptables stop
Firewall
# First IP
ifconfig eth0:0 192.168.50.254 netmask 255.255.255.0

# Second IP
ifconfig eth0:1 192.168.51.254 netmask 255.255.255.0
Assign multiple IP addresses
ifconfig eth0 hw ether 00:01:02:03:04:05
Change MAC address

7 comments:

  1. Greetings. I know this is somewhat off-topic, but I was wondering if you knew where I could get a captcha plugin for my comment form? I’m using the same blog platform like yours, and I’m having difficulty finding one? Thanks a lot.
    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    Amazon Web Services Training in Pune | Best AWS Training in Pune

    ReplyDelete
  2. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 

    angularjs-Training in velachery

    angularjs Training in bangalore

    angularjs Training in bangalore

    angularjs Training in btm

    angularjs Training in electronic-city

    ReplyDelete
  3. A universal message I suppose, not giving up is the formula for success I think. Some things take longer than others to accomplish, so people must understand that they should have their eyes on the goal, and that should keep them motivated to see it out til the end.
    online Python certification course | python training in OMR | python training course in chennai

    ReplyDelete
  4. A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
    Devops Training courses
    Devops Training in Bangalore
    Best Devops Training in pune
    Devops interview questions and answers

    ReplyDelete
  5. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Java training in Indira nagar | Java training in Rajaji nagar

    Java training in Marathahalli | Java training in Btm layout

    ReplyDelete
  6. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    rpa training in velachery| rpa training in tambaram |rpa training in sholinganallur | rpa training in annanagar| rpa training in kalyannagar

    ReplyDelete
  7. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Data Science training in Chennai | Data science training in bangalore

    Data science training in pune | Data science online training

    Data Science Interview questions and answers

    ReplyDelete