Getting network information on Linux

Posted on 2009-12-30
Last Modified: 2013-12-16
I have Linux SUSE 9 so I need to get the whole info about the network, I used netstat but I can't get the host name or the IP address.

Please advice as I want to know how I can get this info and change them when I need

Question by:Mostafa_ElSadek
    LVL 25

    Accepted Solution

    read this will help you a lot

    LVL 10

    Assisted Solution

    ur question isn't clear  but if u want to know the ips in ur network use nmap
    for eg
    nmap -sP
    LVL 11

    Expert Comment

    To see network configuration use ifconfig command (is the ipconfig on linux). Network configuration can be modified in the file /etc/network/interfaces. See an example here of static defined IPs for a LAN.

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    auto eth0
    iface eth0 inet static
            # dns-* options are implemented by the resolvconf package, if installed

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now