Hi all:
I am trying to setup a cluster of 5 Redhat 6.1 boxes. I am in the initial
stages of the setup. I have setup one active router and a real server
talking to it. The real server is in the local subnet (IP
address is 192.168.1.6). I am able to ping the active router from the real
server and vice versa. I have enabled packet forwarding and packet
defragmenting on the active router. I've issued the following command to
masquerade the private network.
ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0.0.0.0
The problem is that I am not able to ping the public LAN from the real
server.
The active router has the following config:
eth0 Link encap:Ethernet HWaddr 00:00:C0:9E:5B:94
inet addr:192.168.99.240 Bcast:192.168.99.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24093 errors:0 dropped:0 overruns:0 frame:0
TX packets:4717 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:100
Interrupt:3 Base address:0x290 Memory:d0000-d4000
eth1 Link encap:Ethernet HWaddr 00:00:C0:9D:C4:92
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:367 errors:0 dropped:0 overruns:0 frame:0
TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0x310 Memory:cc000-d0000
eth1:1 Link encap:Ethernet HWaddr 00:00:C0:9D:C4:92
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:10 Base address:0x310 Memory:cc000-d0000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
=============== The lvs.cf file is as follows ======================
primary = 192.168.99.240
nat_router = 192.168.1.254 eth1:1
virtual vs1 {
address = 192.168.99.240 eth0:1
active = 1
load_monitor = ruptime
port = 80
server rs1 {
address = 192.168.1.6
active = 1
weight = 2000
}
scheduler = wlc
}
=========================================================================
The routing table on the real server is as follows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.6 * 255.255.255.255 UH 0 0 0
eth0
192.168.1.0 * 255.255.255.0 U 0 0 0
eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.254 0.0.0.0 UG 0 0 0
eth0
==========================================================================
The routing table on the active router is as follows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.1 * 255.255.255.255 UH 0 0 0
eth1
192.168.99.240 * 255.255.255.255 UH 0 0 0
eth0
192.168.4.0 192.168.99.6 255.255.255.0 UG 2 0 0
eth0
192.168.2.0 192.168.99.6 255.255.255.0 UG 1 0 0
eth0
192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0 0
eth1
192.168.1.0 * 255.255.255.0 U 0 0 0
eth1
192.168.99.0 192.168.99.240 255.255.255.0 UG 0 0 0
eth0
192.168.99.0 * 255.255.255.0 U 0 0 0
eth0
204.254.161.0 192.168.99.6 255.255.255.0 UG 2 0 0
eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.99.7 0.0.0.0 UG 0 0 0
eth0
===========================================================================
Please help me in identifying the problem due to which the network
connection between the real server and the public network is not getting
established.
Thanks & Regards,
Hitesh.
|