Forums

Duncan Rix
Duncan Rix
Offline
Resolved
0 votes
"Hi community.
Like the look of the new site dev guys.... will take me some getting used to though! As I might have all ready posted this somewhere in the forum's all ready. Sorry if i have but its a no show if I click "show my posts" option. "

I have a ClearOS gateway with multiple NIC's set-up for multiple LAN's. I have provided a brief description of the layout below.

ClearOS Gateway
LAN1 in LAN mode
192.168.15.1
255.255.255.0

I use LAN1 for the local network, no restrictions just a simple LAN for all my home devices.

LAN2 in LAN mode
10.15.0.1
255.255.255.240

Will become a DMS once I switch ISP in September. For now I will more than likely change to HOTLAN mode at a later date, as will be used for internet facing services E.g game servers

I have an ubuntu 14 server also with multiple NIC's and this is where the problem starts

NIC1 connected to LAN1
Static config
192.168.15.254
255.255.255.0

NIC2 connected to LAN2
Static config
10.15.0.2
255.255.255.240

Now onto the problem.

If I have just one NIC configured say NIC2 I am able to ping it using my windows machine connected to LAN1 and am able to access the services on it say game servers.
If I then enable both NIC's in the ubuntu server I can no longer ping NIC2 but I can ping NIC1.

When I connect my laptop to LAN2 the same is ture for that network. I can ping NIC2 but not NIC1, and If just NIC1 is connected I can ping NIC1.

I then connected my laptop to both networks and this showed the same result.
Windows machine could only ping the laptops conection to LAN1 and the ubuntu machine which at this time only had NIC2 configured could only ping the laptop on its LAN2 connection.

When both NIC's are configured on the ubuntu server I can no longer access its services via LAN2, however they are still available to the internet and systems connected to LAN2 only.

I think this might be a routing issue and have found lots of info regarding setting routes too and from certain networks, and default NIC's for said network traffic. Of witch I have tried many and none have made any change to the behaviour of he network.

So far these routes have only been applied to the ubuntu server machine but I'm not sure that’s where the problem is.

If any one cloud point me in the right direction, or shed some light on this I'd be grateful l.
Tuesday, July 14 2015, 07:00 PM
Share this post:
Responses (9)
  • Accepted Answer

    Wednesday, July 15 2015, 11:23 AM - #Permalink
    Resolved
    0 votes
    I suspect (but don't know for sure) that the issue is in the routing tables of the workstations/devices connected to ClearOS and not in ClearOS. I wonder if, on those LAN devices they need some sort of destination based route set up. You can try dumping their routing tables and posting them. You may get a response.
    The reply is currently minimized Show
  • Accepted Answer

    Duncan Rix
    Duncan Rix
    Offline
    Thursday, July 16 2015, 08:03 PM - #Permalink
    Resolved
    0 votes
    Thanks for the reply Nick
    I used the command "netstat -rn". the first one is when only the LAN2 is ative

    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 10.15.0.1 0.0.0.0 UG 0 0 0 p2p4
    10.15.0.0 0.0.0.0 255.255.255.240 U 0 0 0 p2p4


    And this one is when both LAN1 & LAN2 are connected

    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 10.15.0.1 0.0.0.0 UG 0 0 0 p2p4
    10.15.0.0 0.0.0.0 255.255.255.240 U 0 0 0 p2p4
    192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 p2p3


    Routing tables I still just don't get! :p
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, July 16 2015, 09:09 PM - #Permalink
    Resolved
    0 votes
    It is the routing tables on the LAN devices which would be more interesting. The one from ClearOS won't tell you anything. Also the output would look a lot better between "code" tags.
    The reply is currently minimized Show
  • Accepted Answer

    Duncan Rix
    Duncan Rix
    Offline
    Friday, July 17 2015, 05:56 PM - #Permalink
    Resolved
    0 votes
    The routing tables I posted are from my ubuntu system.
    Sorry was not clear on the last post.

    I affraid I also don't follow.... "code" tags?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 17 2015, 06:17 PM - #Permalink
    Resolved
    0 votes
    I think you're going to need someone better than me at routing for this one. I suspect you may have a routing loop which is not allowed. Otherwise, I'm not sure.

    Re "code" tags, on many (most?) forums, if you put text between [code ] and [/code ] (removing the space directly after the word "code") then your pasted text stays with a fixed font which is great for console output. The output to the "route" command then looks something like:
    [root@server ~]# route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.8.10.2 * 255.255.255.255 UH 0 0 0 tun1
    172.17.3.2 * 255.255.255.255 UH 0 0 0 tun0
    82.19.158.0 * 255.255.255.0 U 0 0 0 eth0
    192.168.30.0 cpc19-horn3-2-0 255.255.255.0 UG 0 0 0 eth0
    10.8.10.0 10.8.10.2 255.255.255.0 UG 0 0 0 tun1
    172.17.2.0 * 255.255.255.0 U 0 0 0 eth1
    192.168.10.0 cpc19-horn3-2-0 255.255.255.0 UG 0 0 0 eth0
    172.17.3.0 172.17.3.2 255.255.255.0 UG 0 0 0 tun0
    239.0.0.0 * 255.0.0.0 U 0 0 0 eth1
    default cpc19-horn3-2-0 0.0.0.0 UG 0 0 0 eth0
    If you are not sure, quite my post and you'll see how I did it.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, July 17 2015, 06:26 PM - #Permalink
    Resolved
    0 votes
    .... and that also looks pants. Perhaps the forum is not working correctly for code tags either.
    The reply is currently minimized Show
  • Accepted Answer

    Duncan Rix
    Duncan Rix
    Offline
    Friday, July 17 2015, 07:58 PM - #Permalink
    Resolved
    0 votes
    Thanks for taking the time. ;) nick
    The reply is currently minimized Show
  • Accepted Answer

    Duncan Rix
    Duncan Rix
    Offline
    Sunday, July 19 2015, 10:07 AM - #Permalink
    Resolved
    0 votes
    Do I've been investigating a little.

    My NAS is on LAN1 and LAN3 and works fine. I can ping ether interface from any network, its routing table is below


    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 192.168.15.1 0.0.0.0 UG 0 0 0 eth0
    10.0.0.0 0.0.0.0 255.255.255.248 U 0 0 0 eth1
    127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
    192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    192.168.15.9 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
    255.255.255.255 0.0.0.0 255.255.255.255 UH 0 0 0 eth0


    So I see some differences with the flags and lo interface. Any idea how I might copy this table to my ubuntu machine but altered slightly to fit LAN2? Again the ubuntu routing table is below

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    0.0.0.0 10.15.0.1 0.0.0.0 UG 0 0 0 p2p4
    10.15.0.0 0.0.0.0 255.255.255.240 U 0 0 0 p2p4
    192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 p2p3
    192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0


    Any one got any idea's for me?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, July 19 2015, 02:50 PM - #Permalink
    Resolved
    0 votes
    To change the routing table use the "ip route" or "route add" command. Note they are different commands but both should work. Don't worry about the "127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo" rule.
    The reply is currently minimized Show
Your Reply