How to configure the switch connected to the router?

On the screenshot 2 marshrutizator network packets through OSPF , but the routers 2.3 , 3 , 3.1 and 3.2 are connected to switch0 . How do I configure this switch to I have earned BGP (R2.3, R3 , R3.1 ,R3.2) ?
#on switch1 vlan 5, 6. Can fix edge routers (2.3 and 3) different models and interfaces to ground VLANs if necessary. 5ccb48622b4ed294140879.png
March 20th 20 at 11:33
2 answers
March 20th 20 at 11:35
1. All ports on the switch that go to the routers throw in one VLAN. port akses and configure BGP.
2. All ports on the switch that go to the routers configure as the trunk, for each pair, create the VLAN switches and routers subinterface
March 20th 20 at 11:37
Used the response to the previous commentator.
Created on switch0 vlan and all the ports that are connected to the router will designate as access.
With switch-eating this model did not work the first time , only when I created a vlan with the command vlan database , only while working , which is odd because this team is old and even cisco recommend not to use it .
I'm running ospf , bgp , but the pint still will not , because it is necessary to configure the edge routers ("bind" them with the command "redistribute").

Find more questions by tags Computer networksCisco