LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2014, 03:17 PM   #1
Sezotove
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Rep: Reputation: Disabled
New server, 2 NICs, 2 Subnets, Cant ping?


Okay so here is the problem! I got a Centos 6.5 server that im runnin an Openfire service on. It has dual nics.

Code:
                                                       -------- .2 machines
                                                       |
        eth0 2.222 ----------------------------- .2 swtich 
Server
        eth1 3.222 ----------------------------- .3 switch
                                                       |
                                                        -------- .3 machines
Now the machines on each respective subnet can ping the machine, but not cross subnet ping. ie .2.xxx machine ping .3.222 and visa versa.

GATEWAY is set to as 192.168.2.7(our FW) in the /etc/sysconfig/network.

Code:
DEVICE=eth0
HWADDR=00:14:38:EE:5B:BC
TYPE=Ethernet
UUID=6244e3fb-5a60-4b3f-9ec0-6bfb01d2eddc
IPADDR=192.168.2.220
NETMASK=255.255.255.0
DNS1=192.168.2.2
ONBOOT=yes
BOOTPROTO=static
Code:
DEVICE=eth1
HWADDR=00:14:38:EE:4B:C2
TYPE=Ethernet
UUID=30c3f089-b9ea-4634-b53c-d8580629b204
IPADDR=192.168.3.220
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=static

route-eth0(probably wrong)
Code:
192.168.3.0/24 via 192.168.3.220 dev eth1
ipv4 IP Forward is set to "1".


So any ideas?
 
Old 03-12-2014, 03:35 PM   #2
kkoene
Member
 
Registered: May 2008
Location: Wisconsin
Distribution: Fedora, Ubuntu, RHEL, AIX6
Posts: 33

Rep: Reputation: 0
What is the output if you run a traceroute from one machine to another?
 
Old 03-12-2014, 03:50 PM   #3
Sezotove
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
192.168.2.115(My local ubuntu box) ----> 192.168.3.220(The server in question eth1)

Code:
 1  [Our FW] (192.168.2.12)  0.398 ms  0.385 ms  0.375 ms
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
My machine to 192.168.2.220(server in question eth0)

Quote:
1 192.168.2.220 (192.168.2.220) 0.307 ms 0.296 ms 0.288 ms
A .3 windows server to 3.220
Quote:
Tracing route to 192.168.3.220 over a maximum of 30 hops

1 <1 ms <1 ms <1 ms 192.168.3.220

Trace complete.
.3 Windows server to 2.220

Code:
Tracing route to 192.168.2.220 over a maximum of 30 hops

  1    <1 ms    <1 ms    <1 ms  192.168.3.1
  2     *        *        *     Request timed out.
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.

Last edited by Sezotove; 03-12-2014 at 03:56 PM.
 
Old 03-12-2014, 04:11 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Quote:
Originally Posted by Sezotove View Post
192.168.2.115(My local ubuntu box) ----> 192.168.3.220(The server in question eth1)

Code:
 1  [Our FW] (192.168.2.12)  0.398 ms  0.385 ms  0.375 ms
 2  * * *
To get from 192.168.2.0/24 to 192.168.3.0/24, 192.168.2.222 must be used as a gateway. Your system is using 192.168.2.12 as a gateway, and that router/firewall doesn't seem to know how to reach 192.168.3.0/24.

Change the gateway to 192.168.2.222 for hosts on the 192.168.2.0/24 network (except the 192.168.2.222 router itself, of course), or add a route on 192.168.2.12 to 192.168.3.0/24 via 192.168.2.222.
 
Old 03-12-2014, 04:15 PM   #5
Sezotove
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
To get from 192.168.2.0/24 to 192.168.3.0/24, 192.168.2.222 must be used as a gateway. Your system is using 192.168.2.12 as a gateway, and that router/firewall doesn't seem to know how to reach 192.168.3.0/24.

Change the gateway to 192.168.2.222 for hosts on the 192.168.2.0/24 network (except the 192.168.2.222 router itself, of course), or add a route on 192.168.2.12 to 192.168.3.0/24 via 192.168.2.222.
2.12 and 3.1 are the same machine they are a firewall. 2.222/3.222 is the Openfire chat server.
 
Old 03-12-2014, 04:32 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
So you have:
  • two networks, 192.168.2.0/24 and 192.168.3.0/24
  • a router/firewall with the addresses 192.168.2.12 and 192.168.3.1
  • and a server with two NICs and one IP address in each network (192.168.n.220), which is configured to use yet another gateway (192.168.2.7)?
At the very least, this will result in asymmetric routing. Connections from 192.168.2.115 to 192.168.3.220 will follow this path:
Code:
192.168.2.115 -> 192.168.2.12 -> 192.168.3.220
...while the return path looks like this:
Code:
192.168.3.220 -> 192.168.2.115
The state engine in the firewall is not likely to be amused, as it only sees half of the conversation.

Why are you connecting to 192.168.3.220 from 192.168.2.115, when the server has an IP address in the 192.168.2.0/24 network? Or rather, why make a dual-homed server when you're only using one of the connections?

Last edited by Ser Olmy; 03-12-2014 at 04:36 PM.
 
Old 03-12-2014, 04:43 PM   #7
Sezotove
LQ Newbie
 
Registered: Mar 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
So you have:
  • two networks, 192.168.2.0/24 and 192.168.3.0/24
  • a router/firewall with the addresses 192.168.2.12 and 192.168.3.1
  • and a server with two NICs and one IP address in each network (192.168.n.220), which is configured to use yet another gateway (192.168.2.7)?
At the very least, this will result in asymmetric routing. Connections from 192.168.2.115 to 192.168.3.220 will follow this path:
Code:
192.168.2.115 -> 192.168.2.12 -> 192.168.3.220
...while the return path looks like this:
Code:
192.168.3.220 -> 192.168.2.115
The state engine in the firewall is not likely to be amused, as it only sees half of the conversation.

Why are you connecting to 192.168.3.220 from 192.168.2.115, when the server has an IP address in the 192.168.2.0/24 network? Or rather, why make a dual-homed server when you're only using one of the connections?
The above is correct. 2.7 is our main FW for internet and the .2 subnet. 2.12/3.1 is the fw for the other side of the office. I connect to the server via 2.220 and the other side of the office connects via 3.220 which is what I want and it works fine. Im curious as to why I can hit all of my other dual nic/.3 only server but not this one. Now I did not set the other servers up and have looked and looked and can not find a definitive answer.

The thing im really trying to accomplish here is to allow all .3 users see the webapp for Spark(client for Openfire) which is hosted at 192.168.2.220/[rest of the domain].
 
Old 03-12-2014, 04:56 PM   #8
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
Your network is a mess. Sorry, but that's the truth.

If you want to find out exactly why you can't connect from this particular host (192.168.2.115) to 192.168.3.220, use tcpdump to inspect the traffic in real time. Expect to see a mix of asymmetric routing, ICMP redirects and packets being rejected by a state filter.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two NICs, Two Subnets, Ping only on 1 Subnet jeebs01 Linux - Networking 1 10-04-2013 06:01 PM
Multiple NICs different subnets tecbox Linux - Networking 4 03-22-2010 03:30 AM
configuring 2 nics to talk to two different subnets on a sles10sp3 server lodonnel Linux - Networking 3 11-30-2009 09:22 AM
DHCP server having 2 subnets through 2 nics dils Linux - Newbie 2 05-21-2009 04:09 AM
DHCP server with multiple nics and subnets hawkpaul Linux - Networking 6 12-20-2001 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration