I have two HP L3 switches, that need to act as gateway of the internal network to two different external networks.
The internal network belongs to a single vlan (VLAN 1), so the traffic will be routed based on the packets' destination networks.
For example
external network #1 = 172.30.1.0/24
external network #2 = 192.168.1.0/24.
Let's also assume that the router interfaces connected to the switches are 172.30.1.1/24 and 192.168.1.1/24.
the two switches will have VLAN1 ip addresses
SW1: *.*.*.1/24 and
SW2: *.*.*.2/24,
where *.*.*.0/24 is the internal network's address.
The other Router will connect to Switch1 and the other to Switch2
What are the needed configurations on the L3 switches to handle routing to the external networks?
I know it's something like this but I need some help:
ip routing
ip route 172.30.1.0 0.0.0.255 172.30.1.1
ip route 192.168.1.0 0.0.0.255 192.168.1.1
Do I need to add an additional ip address to both switches, so that they can connect to the Routers?