Current configuration with HP Procurve 2848 switch at a colocation facility consists of using the ISP switchport as the default gateway. The current configuration is very basic with only 1 vlan assign to all switch ports. Routing is not currently enabled and the switch only functions at layer2 at the moment. There are 2 HP procurve switches connected together.
However I now need to configure HP switch to do the routing instead of using the ISP switchport as the default gateway.
The commands are similar to cisco commands but I can find the HP commands which relate. However, I just want to confirm I am thinking of this the best way.
I was going to configure a new vlan on an unsued access port and assign that Vlan with the IP of the /30 that is being configured to connect to the ISP switchport.
Then I was going to enable IP routing on the HP switch and assign our current IP subnet as well as new subnets to the current vlan, and statically route it to the new vlan that was configured with the /30 to connect to the ISP.
Which HP or Cisco commands might help achieve the above?
Also just to note, we statically assign private 192.168.1.0/24 IP addresses to some devices connected to the HP switches. There is no actual gateway or route configured for this /24.
- Servers are located in a colocation facility.
Right now HP switch functions only as a switch and utilizes the uplink port from the ISP(colocation facility) as the default gateway. So the ISP does the routing to my network.
In order to obtain new IP's, we need to configure our switch to begin routing. The ISP will assign us public IPs and put it to our HP switch via the /30 IP.
- I need to be able to move a cable from any switch port to another switchport and still allow it to communicate on the network. (Meaning the default way a switch works where any network can communicate from any port)
The end result should resemble something similar to this image:
UPDATE: Working Example Below - Note: Due to time constraints I performed the IP configurations on Vlan 1 since that is the default vlan that exists in both switches. The ISP went into Port 2 of the switch. HP Switch B connected to Port 1 of Switch A.
HP Switch A
config ip routing ip route 0.0.0.0 0.0.0.0 220.127.116.11 vlan 1 ip address 18.104.22.168 255.255.255.224 ip address 22.214.171.124 255.255.255.224 ip address 192.168.1.1 255.255.255.0 exit vlan 30 name ISP vlan 30 ip address 126.96.36.199 255.255.255.252 untagged 2 exit
HP Switch B
config ip default-gateway 188.8.131.52 vlan 1 ip address 184.108.40.206 255.255.255.224 exit