Routing – Reconfiguring Layer3 Switch to enable IP routing and become the default gateway

cisco-commandshp-procurverouting

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.

Summary:

  1. Servers are located in a colocation facility.
  2. 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.

  3. 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.

  4. 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:

enter image description here

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 192.224.10.9

vlan 1
ip address 192.127.16.193 255.255.255.224
ip address 192.224.16.193 255.255.255.224
ip address 192.168.1.1 255.255.255.0
exit

vlan 30 name ISP
vlan 30
ip address 192.224.10.10 255.255.255.252
untagged 2
exit

HP Switch B

config
ip default-gateway 192.127.16.193
vlan 1
ip address 192.127.16.194 255.255.255.224
exit

Best Answer

I tried to upload a visio picture that shows what I think you are trying to accomplish, but I guess I need more reputation! You basically need to enable IP routing on the HP switch that will be the gateway, and add a default route. I definitely recommend using separate VLANs for your different networks. You will also need to make sure that your ISP router has a route back to your HP switch for your 192.168.1.0/24 network:

ISP Router

Int fa0/0    
Ip address X.X.X.1 255.255.255.252    
Ip route 192.168.1.0 255.255.255.0 X.X.X.2  

HP Switch 1

Ip routing  
Vlan 10 name ISP  
Ip address X.X.X.2 255.255.255.252  
Untagged 1  
Vlan 20 name LAN  
Ip address 192.168.1.1 255.255.255.0  
Untagged 2-48  
Ip route 0.0.0.0 0.0.0.0 X.X.X.1  

HP Switch 2

Ip default-gateway 192.168.1.1  
Vlan 20 name LAN  
Ip address 192.168.1.2 255.255.255.0  
Untagged 1-48