Centos box as router

Issues related to configuring your network
Post Reply
spd
Posts: 3
Joined: 2018/12/01 18:19:09

Centos box as router

Post by spd » 2018/12/01 18:23:19

Hello every body ,

We are very familiar with developing netfilter modules for firewall applications. Now we want to move this one step forward. But we have nearly no knowladge about the question if it is possible or not.

We want to make BGP connections from centos box and let the anounced blocks split into subnets like for ex.
we anounce xx.xx.xx.0/24 from p1p1 interface via bgp
and we want to split them into
xx.xx.xx.1/25 and xx.xx.xx.129/25 and let them put into vlan1 & vlan 2
our second interface will be connected to a switch with trunk of vlan1 and vlan2
is this possible to do on a centos box ?

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

Re: Centos box as router

Post by jlehtone » 2018/12/02 08:47:16

Which part?

The multiple logical subnets is definitely possible.

Code: Select all

p1p1 ------- Wan x/y

  / vlan1 -- Lan z.0/25
p1p2
  \ vlan2 -- Lan z.128/25
The BGP ... probably, but I've never used it.

spd
Posts: 3
Joined: 2018/12/01 18:19:09

Re: Centos box as router

Post by spd » 2018/12/02 13:28:06

Hello ,

Thank you for the return .
I want to use the machine as the gateway address of this subnets ,
Is there any sample config for for example

3.3.3.0/24 routed on this machine to p1p1 interface
and
3.3.3.1/25 -> .1 ip will be on the interface as the gateway of this subnet and will be tagged as vlan 101
3.3.3.129/25 -> .129 ip will be on the interface as the gateway of this subnet and will be tagged as vlan 102

to do this ?

Thank you

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

Re: Centos box as router

Post by jlehtone » 2018/12/02 15:34:27


Post Reply