centos 7 router with two same subnets?

General support questions
Post Reply
prologas
Posts: 31
Joined: 2017/03/08 16:48:02

centos 7 router with two same subnets?

Post by prologas » 2017/08/16 07:45:24

Any chance to make centos 7 router reach two same subnets 10.10.10.0/24? I think some kind of IP forwarding?

For example: 172.16.16.10 > 10.10.10.10 // 172.15.15.10 > 10.10.10.10
Here can't be any VLAN or diff subnet. Just some kind of resolving IP not from origin.

Thanks!

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: centos 7 router with two same subnets?

Post by jlehtone » 2017/08/16 09:00:38

"two same subnets"?

Do you mean that the router is directly connected to subnet 10.10.10.0/24 and to subnet 10.10.10.0/24?
Then you ask how to ensure that traffic destined to 10.10.10.10 will go to 10.10.10.10 and not to 10.10.10.10, because the 10.10.10.10 and the 10.10.10.10 are two separate and unique machines?


That sounds a bit confusing. There is some support for network namespaces. Never used them, but they look like an option.

prologas
Posts: 31
Joined: 2017/03/08 16:48:02

Re: centos 7 router with two same subnets?

Post by prologas » 2017/08/16 09:49:28

Yeah, sounds ridiculous, but it has to be done somehow. Look it from this point that router has ipSec tunnel to subnet 10.10.10.0/24, but at local point we have same 10.10.10.0/24.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: centos 7 router with two same subnets?

Post by TrevorH » 2017/08/16 10:30:40

You can't do that. One side has to change.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: centos 7 router with two same subnets?

Post by jlehtone » 2017/08/16 10:32:51

Ok, lets invent names:
Subnet Local10 has 10.10.10.0/24 and is link-local
Subnet Remote has 10.10.10.0/24 and is tunnel

Subnet Local15 has 172.15.15.0/24 and is link-local?
Subnet Local16 has 172.16.16.0/24 and is link-local?
(How many physical NIC's on the router?)

What are the allowed routes?
Local10 <--> Local15 ?
Local16 <--> Remote ?
Local10 <--> Remote ?
Local15 <--> Local16 ?
?


Edit: @Trevor: While seemingly impossible, it might still be doable to some extent. (Doable != sane.)

prologas
Posts: 31
Joined: 2017/03/08 16:48:02

Re: centos 7 router with two same subnets?

Post by prologas » 2017/08/16 12:23:34

That's looks something. Router has 8 NIC's. 4 PCIexpress + 4 inbound. What about technology from openstack with floating ips?

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: centos 7 router with two same subnets?

Post by jlehtone » 2017/08/16 13:30:50

Okay, there is some hardware. That, however, is not the main issue.

How many link-local networks are there? 4?
Which networks must be able to communicate with each other?
We need a complete list of rules that need to be implemented.

Post Reply