Hi, I am preparing new IPs I have received for BGP and am wondering if my configuration is correct.
I have a single /22 IPv4 which i have split into four separate /24's.
For the example this will be x.x.160.0/22
so the /24's are:
x.x.160.0/24
x.x.161.0/24
x.x.162.0/24
x.x.163.0/24
I am going to be peering using a BGP session connected over the vlan Default which already has IP's routed to it from our datacentre.
I have created four loopback VLAN's for the four /24's:
---------------------------------------------------------------------------------------Name VID Protocol Addr Flags Proto Ports Virtual
Active router
/Total
---------------------------------------------------------------------------------------
Default 1 x.x.x.x /26 -f---------T----------- ANY 11/18 VR-Default
vlan_LB 4089 x.x.160.1 /24 -fL-------------------- ANY 0 /0 VR-Default
vlan_LB2 4087 x.x.161.1 /24 -fL-------------------- ANY 0 /0 VR-Default
vlan_LB3 4086 x.x.162.1 /24 -fL-------------------- ANY 0 /0 VR-Default
vlan_LB4 4085 x.x.163.1 /24 -fL-------------------- ANY 0 /0 VR-Default
as you can see, ipforwarding is enabled on all VLAN's.
show iproute:
Ori Destination Gateway Mtr Flags VLAN Duration
#d x.x.x.x/26 x.x.x.x 1 U------um--f Default 0d:1h:40m:16s
#d x.x.160.0/24 x.x.160.1 1 U------um--f vlan_LB 0d:0h:22m:8s
#d x.x.161.0/24 x.x.161.1 1 U------um--f vlan_LB2 0d:1h:25m:1s
#d x.x.162.0/24 x.x.162.1 1 U------um--f vlan_LB3 0d:1h:24m:9s
#d x.x.163.0/24 x.x.163.1 1 U------um--f vlan_LB4 0d:1h:23m:56s
I have servers currently connected to the Default VLAN and will be intending to use these new IP's on these servers.
I have set the IPs on one of the servers to x.x.160.100 with the gateway x.x.160.1 which is the vlan_LB gateway IP. However the gateway is unreachable and cannot be pinged:
[root@localhost ~]# ping 185.53.160.1
PING 185.53.160.1 (185.53.160.1) 56(84) bytes of data.
--- 185.53.160.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1830ms
Is my configuration correct to add the gateway's to separate VLAN's?
I did a test and added the gateway x.x.160.1 IP as a secondary IP to the Default VLAN and I can ping the gateway x.x.160.1 from the test server.
Should I be adding the gateway's as IP's on their own loopback VLAN's, or add them as secondary IP's on the Default VLAN where they are going to be used?
for BGP I will use the below to peer:
configure bgp routerid x.x.160.2
configure bgp add network x.x.160.0/24
configure bgp add network x.x.161.0/24
configure bgp add network x.x.162.0/24
configure bgp add network x.x.163.0/24
Thanks.