Hi,
I have 2 ethernet cards, each with a different IP on the internet. I'm
running an HTTP server, but when I try to access it from outside, I can
only access it on 1 card.
I can only access it on the card at which my default gateway is set to.
My config :
eth0 : 195.13.21.20 (adsl20.turboline.be) gateway 195.13.21.1
(adsl1.turboline.be)
eth1 : 195.130.131.20 (antwerpen-131-20.kabel.pandora.be) gateway
195.130.131.1 (antwerpen-131-1.kabel.pandora.be)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
antwerpen-131-1 antwerpen-131-1 255.255.255.255 UGH 0 0 12
eth1
adsl1.turboline adsl1.turboline 255.255.255.255 UGH 0 0 1
eth0
195.130.131.0 * 255.255.255.0 U 0 0 1
eth1
192.168.0.0 * 255.255.255.0 U 0 0 8
eth2
195.130.130.0 antwerpen-131-1 255.255.255.0 UG 0 0 2
eth1
195.13.1.0 adsl1.turboline 255.255.255.0 UG 0 0 0
eth0
195.13.20.0 * 255.255.252.0 U 0 0 2
eth0
127.0.0.0 * 255.0.0.0 U 0 0 5
lo
default antwerpen-131-1 0.0.0.0 UG 0 0 342
eth1
In the above case, I would be able to access it through 195.130.131.20,
but not through 195.13.21.20. If I'd change the default gateway to
adsl1.turboline.be, It would be the other way around.
Please reply by e-mail too.
Thanks.
Wim Godden
GNNet Inc.