• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

Getting network information on Linux

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

Thanks
Mostafa
0
Mostafa_ElSadek
Asked:
Mostafa_ElSadek
2 Solutions
 
madunixChief Information Security Officer Commented:
read this will help you a lot
http://www.linuxhomenetworking.com/

madunix
0
 
nabeelmoiduCommented:
ur question isn't clear  but if u want to know the ips in ur network use nmap
for eg
nmap -sP 10.1.1.1-255
0
 
enriquecadalsoCommented:
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
        address 192.168.1.10
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.1.1
        dns-search mycompany.mydomain.com
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now