Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    one machine with two network cards

    hi all,

    i have a machine with two network cards each one with diferent gateways that routes with several lans.

    eth0 goes perfectly from my machine to any lan through its gateway and vice versa from any lan to my machine.

    my problem is with eth1. i configure the gateway with "route" command and then, i can do a ping,traceroute from my machine to any lan but if i do a ping from lan to my machine ping fails.

    when i turn off eth0, eth1 is fine.

    my question: I need something more like a firewall or is it simply a problem of the routing table?

    sorry for my english, i hope you understand

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Please post output of the route command here.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    now i have that configuration who works perfectly only with eth0. i can do ping from/to any subnet throught eth0 to/from my machine

    eth0**** *Link encap:Ethernet* HWaddr 00:00:00:00:00:00
    ********* inet addr:* Bcast:* Mask:
    eth1***** Link encap:Ethernet* HWaddr 11:11:11:11:11:11
    ********* inet addr:* Bcast:* Mask:

    Kernel IP routing table
    Destination**** Gateway******** Genmask******** Flags Metric Ref*** Use Iface***** ***************** U**** 0***** 0******* 0 eth0***** **************** * U**** 0***** 0******* 0 eth1
    loopback******* ********************* U**** 0***** 0******* 0 lo
    default**************** UG*** 0***** 0******* 0 eth0

    if i run (to connect to a subnet throught eth1)

    route add -net 60.50.21.xx netmask gw dev eth1

    i cant do a ping from 60.50.21.xx subnet to my machine.

  4. $spacer_open

Posting Permissions

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