Recently we have changed over to BGP for our SINGLE PROVIDER we currently have.
The configuration looks like this:
router bgp AS_NUMBER
bgp router-id ROUTER_ID_IP
network XXX.XXX.XXX.XXX (1) mask 255.255.252.0
network XXX.XXX.XXX.XXX (2) mask 255.255.252.0
network XXX.XXX.XXX.XXX (3) mask 255.255.252.0
network XXX.XXX.XXX.XXX (4) mask 255.255.252.0
neighbor NEIGHBOR_IP remote-as REMOTE_AS
neighbor NEIGHBOR_IP password BGP_PASS
neighbor NEIGHBOR_IP route-map filter-in in
ip prefix-list only-default seq 5 permit 0.0.0.0/0
route-map filter-in permit 10
match ip address prefix-list only-default
NOW, we are going to plug a NEW ISP and want to announce ONLY our NETWORK (4) above.
Meaning this ISP will only route that CLASS C. So they are announcing it on their end and I have to announce that I am routing this CLASS C on the new ISP in my device.
Can someone please provide EXACT configuration commands to put in my router in order to achieve this ??
As well, I told my new ISP to only route this Class C on their network. But what happens if I tell them to route ALL my IP's and I want ONLY this Class C to go through them, can this be achieved? or if they announce it then I cannot control incoming traffic since they are announcing it and therefore I can only control outgoing traffic ?? Can someone please detail this for me?
Waiting for an answer on both questions.