Find the answer to your Linux question:
Results 1 to 7 of 7
Hello everyone, I have an old pentium 3 computer that has ~7 NICs installed. These NICs are attached to modems and other networking equipment. According to the linux ping page ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    QMD
    QMD is offline
    Just Joined! QMD's Avatar
    Join Date
    May 2010
    Posts
    14

    Ping multiple devices via multiple NICs


    Hello everyone,

    I have an old pentium 3 computer that has ~7 NICs installed. These NICs are attached to modems and other networking equipment.

    According to the linux ping page on computerhope.com, it seems that one could send a ping from a certain specified NIC. How would one go about this?

    Thanks!!!

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    how about
    Code:
    ping -I interface destination
    linux user # 503963

  3. #3
    QMD
    QMD is offline
    Just Joined! QMD's Avatar
    Join Date
    May 2010
    Posts
    14
    Thanks

    So I run iwconfig which says I have eth0 and eth1, as well as 2 other things.

    How would I ping google.com or 4.2.2.2 from one of the network cards?

    I tried the following

    Code:
    ping -I eth0 google.com
    or

    Code:
    ping -I eth0 4.2.2.2
    neither worked

  4. #4
    QMD
    QMD is offline
    Just Joined! QMD's Avatar
    Join Date
    May 2010
    Posts
    14
    Actually, it looks like it was some sort of wiring mishap.

    Now that I can ping from a specified NIC, is there anyway to have multiple pings running? ex: one terminal window pings via eth0, and another pings via eth1, or perhaps both via one terminal??

    Thanks

  5. #5
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    why can't you just run the command in different terminal sessions?

    window1: ping -I eth0 Google
    window2: ping -I eth1 Google

    as far as running it all in one session - no.
    linux user # 503963

  6. #6
    QMD
    QMD is offline
    Just Joined! QMD's Avatar
    Join Date
    May 2010
    Posts
    14
    The primary nic (eth0) is able to get a ping back from 4.2.2.2, however eth1 returns a "host destination unreachable." are there any settings i would have to modify in order to be able to ping from several nic's (on the same machine) simultaneously?

    it looks as if only one nic is able to ping out at any given time.

  7. #7
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    so what does your routing table look like? what about ifconfig?
    linux user # 503963

Posting Permissions

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