
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] Connecting 2 networks
- Date: Sat, 29 Mar 2003 23:41:32 +0900
- From: Batara Kesuma <bkesuma@example.com>
- Subject: [tlug] Connecting 2 networks
Hi,
I have 2 web servers and 1 database server. I want to hide the database
server behind local network. The diagram is like this:
INTERNET --- Router ---+- Web Server A Database Server
[ 219.1.1.1 ] | | [ 192.168.1.3 ]
| +--- eth0 [ 219.1.1.2 ] |
| | |
| +--- eht1 [ 192.168.1.1 ] -----------+
| |
+- Web Server B |
| |
+--- eth0 [ 219.1.1.3 ] |
| |
+--- eth1 [ 192.168.1.2 ] -----------+
Network 1 (Global IP) = 219.1.1.0
Network 2 (Local IP) = 192.168.1.0
I can only access database server through Web Server A or Web Server B.
The problem is, when I try to ssh to Database Server from Web Server A &
B, it takes very long to connect. So I wonder maybe this is not the right
way to connect 2 networks? Maybe I need a router for Network 2 too?
I use Red Hat 8.0. The routing table on Web Server A is like this:
[bk@example.com bk]$ netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
219.1.1.0 * 255.255.255.0 U 40 0 0
eth0
192.168.1.0 * 255.255.255.0 U 40 0 0
eth1
127.0.0.0 * 255.0.0.0 U 40 0 0
lo
default kddi-rt.netage. 0.0.0.0 UG 40 0 0
eth0
[bk@example.com sysconfig]$ cat network
NETWORKING=yes
HOSTNAME=jawa
GATEWAY=211.1.1.1
[bk@example.com network-scripts]$ cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=219.1.1.2
[bk@example.com network-scripts]$ cat ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.1
Please help. Thank you very much.
Home |
Main Index |
Thread Index