Results 1 to 3 of 3
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 ...
- 09-25-2011 #1Just Joined!
- Join Date
- Sep 2011
- Posts
- 2
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
- 09-25-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
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!
- 09-25-2011 #3Just Joined!
- Join Date
- Sep 2011
- Posts
- 2
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
ifconfig
eth0**** *Link encap:Ethernet* HWaddr 00:00:00:00:00:00
********* inet addr:10.60.90.35* Bcast:10.50.80.255* Mask:255.255.255.0
*
eth1***** Link encap:Ethernet* HWaddr 11:11:11:11:11:11
********* inet addr:10.60.91.35* Bcast:10.50.81.255* Mask:255.255.255.0
Kernel IP routing table
Destination**** Gateway******** Genmask******** Flags Metric Ref*** Use Iface
10.60.90.0***** *************** 255.255.255.0** U**** 0***** 0******* 0 eth0
10.60.91.0***** *************** 255.255.255.0* * U**** 0***** 0******* 0 eth1
loopback******* *************** 255.0.0.0****** U**** 0***** 0******* 0 lo
default******** 10.60.90.1 0.0.0.0******** UG*** 0***** 0******* 0 eth0
if i run (to connect to a subnet throught eth1)
route add -net 60.50.21.xx netmask 255.255.255.0 gw 10.60.91.1 dev eth1
i cant do a ping from 60.50.21.xx subnet to my machine.


Reply With Quote