Results 1 to 5 of 5

Thread: How to ping another interface?

  1. #1
    Join Date
    Jan 2009
    Beans
    4

    How to ping another interface?

    Configuration:

    eth0 - 192.168.1.1
    eth1 - 10.0.0.1

    and a router between them.

    I need to make external loop and send traffic from one interface to another through the router.
    Is that possible? If yes, how?

    Simple "route add 192.168.1.1 dev eth1" doesn't work.
    Any ideas?

    Thank you.

  2. #2
    Join Date
    Jan 2007
    Beans
    5,549

    Re: How to ping another interface?

    you would need to use iptables for this.. its similar to this http://ubuntuforums.org/showthread.php?t=91370 .. where data is forwarded from one interface to another

  3. #3
    Join Date
    Jan 2009
    Beans
    4

    Re: How to ping another interface?

    Thank you.
    However I managed to accomplish it with VirtualBox.

  4. #4
    Join Date
    Dec 2008
    Location
    Littleton, Colorado USA
    Beans
    350
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: How to ping another interface?

    You also have to do:

    echo "1" > /proc/sys/net/ipv4/ip_forward

    You have to turn on forwarding.

  5. #5
    Join Date
    Jan 2009
    Beans
    4

    Re: How to ping another interface?

    Quote Originally Posted by lensman3 View Post
    You also have to do:

    echo "1" > /proc/sys/net/ipv4/ip_forward

    You have to turn on forwarding.
    OK, I didn't get it.
    Isn't ip_forward used for forwarding packets from one subnetwork to another INTERNALLY?
    Like when computer from one subnetwork wants to ping computer from another subnetwork, then we set ip_forward on the router to 1?
    Dunno what it has to do with my problem.

Tags for this Thread

Bookmarks

Posting Permissions

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