[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

routing problem



Hi!

i have 1 box, with 2 eth cards, both are in the same
lan.

eth0 192.168.1.1
eth1 192.168.1.10

i want to use it as dns server (eth0) and webserver
(eth1). And ssh on both interfaces.

bind conf:

listen-on {148.247.153.1;}

apache conf:

Listen 192.168.1.10:80

#netstat -rn

Kernel IP routing table
Destination     Gateway         Genmask         Flags 
 MSS Window  irtt Iface
192.168.1.0   0.0.0.0         255.255.255.0   U       
 0 0          0 eth0
192.168.1.0   0.0.0.0         255.255.255.0   U       
 0 0          0 eth1
0.0.0.0         192.168.1.254 0.0.0.0         UG      
 0 0          0 eth1
0.0.0.0         192.168.1.254 0.0.0.0         UG      
 0 0          0 eth0

All packets go out throught eth1!!!!!!!!!
It doesn't mather if they are 192.168.1.1 or
192.168.1.10!!!!

How can i correct this?
All 192.168.1.1 packets MUST go in and out throught
eht0. And all 192.168.1.10 packets MUST go in and out
throught eth1.

How can i tell the routing table this?

Thanks.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Reply to: