Networking Forums

Networking Forums > Computer Networking > Linux Networking > two dsl connections, two routers, dual nics on linux box , want to run two websites

Reply
Thread Tools Display Modes

two dsl connections, two routers, dual nics on linux box , want to run two websites

 
 
Laitkor
Guest
Posts: n/a

 
      06-19-2004, 06:58 PM
Hello,

I have two dsl connections, with one public ip on each. I have a linux
box with two nic cards.

xx.xx.xx.xx(WAN)---ROUTER(LAN23.123.45.110) ---- MYLINUX
(23.123.45.107) eth1
yy.yy.yy.yy(WAN)---ROUTER(LAN192.182.1.1) ---- MYLINUX
(192.168.1.100) eth0

I have apache listening on both interfaces.

Problem:

1. How do I make the packets route back to the gateway from which they
originate.

Currently the gateway marked as "default" is able to serve content
from the apache. The other one cannot.

I tried adding static routes, but that didn't work.

Any help is appreciated.

Thanks
--
Jay

---------------------------------------------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
adsl-23-123-45- adsl-23-123-45- 255.255.255.255 UGH 0 0
0 eth1
23.123.45.0 * 255.255.255.0 U 0 0
0 eth1
192.168.1.0 * 255.255.255.0 U 0 0
0 eth0
loopback * 255.0.0.0 U 0 0
0 lo
default 192.168.1.1 0.0.0.0 UG 1 0
0 eth0


eth0 Link encap:Ethernet HWaddr 00:0D:87:57:A0E
inet addr:192.168.1.100 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3060612 errors:0 dropped:0 overruns:0 frame:0
TX packets:3577217 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1566982235 (1494.3 Mb) TX bytes:1126616733 (1074.4
Mb)
Interrupt:11 Base address:0xe000

eth1 Link encap:Ethernet HWaddr 00:40:05:39:0E:EA
inet addr:23.123.45.107 Bcast:68.123.24.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:90635 errors:0 dropped:0 overruns:0 frame:0
TX packets:31082 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:23017102 (21.9 Mb) TX bytes:13283751 (12.6 Mb)
Interrupt:11 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11888 errors:0 dropped:0 overruns:0 frame:0
TX packets:11888 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6920794 (6.6 Mb) TX bytes:6920794 (6.6 Mb)
 
Reply With Quote
 
 
 
 
Snowbat
Guest
Posts: n/a

 
      06-19-2004, 07:27 PM
On Sat, 19 Jun 2004 11:58:19 -0700, Laitkor wrote:

> I have two dsl connections, with one public ip on each. I have a linux
> box with two nic cards.


> 1. How do I make the packets route back to the gateway from which they
> originate.


http://lartc.org/howto/lartc.rpdb.multiple-links.html
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two NICs, Two networks, secure websites dwed Linux Networking 1 10-31-2006 12:44 PM
linux server with 2 nics and 2 routers Innocenti Maresin Linux Networking 1 08-14-2006 04:11 PM
Dual NICs? Mervin Williams Windows Networking 9 06-21-2005 04:59 PM
Two network connections NICs not activating on Fedora 3 Linux 2.6.11-1.14_FC3 Clive Linux Networking 0 05-17-2005 05:06 PM
dual nics jack Windows Networking 2 03-02-2004 11:51 PM



1 2 3 4 5 6 7 8 9 10 11