Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, Fairly new to linux (using slackware) and trying to work out how to create a bash script to provide a list of host names and ip addresses of all ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    1

    Need Network Help - New to linux


    Hi,

    Fairly new to linux (using slackware) and trying to work out how to create a bash script to provide a list of host names and ip addresses of all machines running on a network.

    Not asking for a full solution, just which commands to start with .

    Thanks

    Nick

  2. #2
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    "arp -en" or "/sbin/arp -en" shows all the peers on a network with IP addresses, but without hostnames.
    Bus Error: Passengers dumped. Hech gap yo'q.

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Location
    zimbabwe
    Posts
    3

    netork id's

    2 display all computers on a network u need to first send a broadcast message to all computers on your network so that they reply n you get their ip and MAC addresses. so the first command is : ping -b network-id then the command :arp -en.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •