Apache Server - 2 NICs

Discussion in 'Installation/Configuration' started by tcroteau, Jul 8, 2007.

  1. tcroteau

    tcroteau New Member

    Well, I'm back yet again. I have everything working well with one exception. My LAN PCs are experiencing intermittent connectivity issues hitting the Apache server.

    I have a Linksys router behind a Netopia router (NAT off/routed subnet with a static route to the Linksys) that serves the LAN via DHCP. All the LAN PCs can hit the web no problem as well as hit my Windoze web server. The Apache server has 2 NICs; 1 for WAN, 1 for LAN.

    The issue is sometimes (like right now), the LAN PCs cannot reach the Apache server via WAN IP or HTTP.

    Here's my network layout (PDF):
    [​IMG]

    Interfaces Config
    # eth0 LAN
    auto eth0
    iface eth0 inet static
    address 192.168.2.202
    netmask 255.255.255.0
    network 192.168.2.0
    broadcast 192.168.2.255
    gateway 192.168.2.1

    # eth1 WAN
    auto eth1
    iface eth1 inet static
    address 75.56.27.193
    netmask 255.255.255.248
    network 75.56.27.192
    broadcast 75.56.27.199
    gateway 75.56.27.198

    ifconfig
    crotuxweb:~# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:14:6C:C3:78:1A
    inet addr:192.168.2.202 Bcast:192.168.2.255 Mask:255.255.255.0
    inet6 addr: fe80::214:6cff:fec3:781a/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:12889 errors:0 dropped:0 overruns:0 frame:0
    TX packets:11526 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2231182 (2.1 MiB) TX bytes:5029588 (4.7 MiB)
    Interrupt:169 Base address:0x3000

    eth1 Link encap:Ethernet HWaddr 00:00:E8:92:0C:60
    inet addr:75.56.27.193 Bcast:75.56.27.199 Mask:255.255.255.248
    inet6 addr: fe80::200:e8ff:fe92:c60/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:4935 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4313 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:1211292 (1.1 MiB) TX bytes:2031719 (1.9 MiB)
    Interrupt:177 Base address:0x3400

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:12835 errors:0 dropped:0 overruns:0 frame:0
    TX packets:12835 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:839803 (820.1 KiB) TX bytes:839803 (820.1 KiB)

    netstat -rn
    crotuxweb:~# netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    75.56.27.192 0.0.0.0 255.255.255.248 U 0 0 0 eth1
    192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    0.0.0.0 75.56.27.198 0.0.0.0 UG 0 0 0 eth1
    0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0

    I've read on the web that you cannot have two default gateways. Is this my issue?

    Any thoughts or suggestions would be greatly appreciated.

    Thanks,
    Tom
     

    Attached Files:

    Last edited: Jul 8, 2007

Share This Page