lefko Posted May 16, 2012 Posted May 16, 2012 Hi, I have recently started working woth L3 HP switches and I would like ask for your advice. We have to core switches directly connected which support multiple vlans, routing and ospf. We are planning to set up a 3rd new switch which will support vlans with ip addresses that are a subset of the ip addresses of one of the existing vlans i.e. sw1- several vlans sw2- vlans with ip addresses 10.32.0.0 255.255.224.0 sw3- vlans with ip addresses 10.32.160.0 255.255.252.0 sw2 and sw3 connected to sw1 how can I create a static route so that sw1 will decide the correct route in each case: something is destined to 10.32.160.3 will go to sw3 something destined to 10.32.0.3 will go to sw2 thank you in advance
glennda Posted May 16, 2012 Posted May 16, 2012 If they are connected together and the vlan's are setup correctly it will route it by itself.
apeman Posted May 16, 2012 Posted May 16, 2012 if you are using ospf on all the switches you wouldn't need a static route for this, the switches would work it out on its own
lefko Posted May 17, 2012 Author Posted May 17, 2012 Hi again, I've been trying to work this out with ospf and I am doing some tests with spare switches we have but so far the results are not the expected. I cannot ping ip addresses on the 2 switches sharing the same subnets, the main switch does not seem to know the route. Below, I am copying the ospf settings on the 3 switches hoping you will see anything wrong and help me. The main and the second switch they communicate fine already. main switch: router ospf area 10.8.0.0 range 10.8.0.0 255.255.0.0 type summary area 10.10.0.0 range 10.10.0.0 255.255.0.0 type summary area 10.12.0.0 range 10.12.0.0 255.255.0.0 type summary area 10.14.0.0 range 10.14.0.0 255.255.0.0 type summary area 10.16.0.0 range 10.16.0.0 255.255.0.0 type summary area 10.18.0.0 range 10.18.0.0 255.255.0.0 type summary area 172.20.0.0 area 172.20.12.0 range 172.20.12.0 255.255.255.0 type summary area 172.20.14.0 range 172.20.14.0 255.255.255.0 type summary area 172.20.16.0 range 172.20.16.0 255.255.255.0 type summary area 172.20.18.0 range 172.20.18.0 255.255.255.128 type summary area 172.20.20.0 range 172.20.20.0 255.255.255.0 type summary area 172.20.21.0 area 192.168.1.0 area backbone redistribute connected redistribute static exit router pim rp-address 192.168.255.254 224.0.0.0 240.0.0.0 rp-candidate rp-candidate source-ip-vlan 901 rp-candidate group-prefix 224.0.0.0 240.0.0.0 rp-candidate hold-time 150 priority 200 exit interface loopback 1 ip address 192.168.255.254 ip ospf 192.168.255.254 area backbone exit vlan 80 ip ospf 10.8.10.1 area 10.8.0.0 ip pim-sparse ip-addr any exit exit vlan 81 ip pim-sparse ip-addr any exit exit vlan 90 ip pim-sparse ip-addr any exit exit ........ several vlans ..... vlan 901 ip ospf 192.168.255.1 area backbone ip pim-sparse ip-addr any exit exit vlan 902 ip ospf 192.168.255.5 area backbone ip pim-sparse ip-addr any exit exit vlan 903 ip ospf 192.168.255.9 area backbone ip pim-sparse ip-addr any exit exit vlan 904 ip ospf 192.168.255.13 area backbone ip pim-sparse ip-addr any exit exit vlan 905 ip ospf 192.168.255.17 area backbone ip ospf 192.168.255.17 priority 100 ip pim-sparse ip-addr any exit exit vlan 906 ip ospf 192.168.255.21 area backbone ip ospf 192.168.255.21 priority 100 ip pim-sparse ip-addr any exit exit vlan 907 ip ospf 192.168.255.25 area backbone ip ospf 192.168.255.25 priority 100 ip pim-sparse ip-addr any exit exit vlan 908 ip ospf 192.168.255.29 area backbone ip ospf 192.168.255.29 priority 100 ip pim-sparse ip-addr any exit exit second switch: router ospf area 172.20.32.0 area backbone redistribute connected exit router pim exit vlan 905 ip ospf area backbone exit vlan 906 ip ospf area backbone exit new switch: router ospf area 172.20.33.0 area 172.22.18.0 area backbone redistribute connected exit interface loopback 1 ip address 192.168.255.252 ip ospf 192.168.255.252 area backbone exit vlan 902 ip ospf 192.168.255.6 area backbone exit vlan 903 ip ospf 192.168.255.10 area backbone exit
apeman Posted May 17, 2012 Posted May 17, 2012 (edited) Hi can i ask why you have so many areas?? i would only expect to see something like this in the a fairly simple config, just change the router id and ip addresses Vlan 10 name "data" untagged a1-a24 ip helper-address 10.10.1.1 ip address 10.10.10.254 255.255.255.0 exit Vlan 20 name "voice" tagged a1-a24 ip helper-address 10.10.1.1 ip address 10.10.20.254 255.255.255.0 exit ip router-id 1.1.1.1 router ospf area backbone redistribute connected enable exit Vlan 10 ip ospf 10.10.10.254 area backbone exit Vlan 20 ip opsf 10.10.20.254 area backbone exit Edited May 17, 2012 by apeman
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now