Wired Intelligent Edge (Campus Switching and Routing)

Reply
Highlighted
New Contributor

Setting a Vlan with a dedicated Gateway

We have an Aruba 2350-48 switch, we are creating a VLAN, but would like to set a dedicate gateway for it, without using the default gateway from the switch, can this be done? I'm using CLI interface, I'm not to familiar with it and not familiar in creating VLAN. thank you in advanced.
Highlighted
MVP Guru

Re: Setting a Vlan with a dedicated Gateway


@hectorh wrote: ...we are creating a VLAN, but would like to set a dedicate gateway for it, without using the default gateway from the switch...

What does it mean?

When you create a VLAN id you can eventually assign to that VLAN id an IP Address...that IP Address is the gateway for that VLAN Id (and it is the Gateway address the hosts members of that VLAN id should use).

Highlighted
Occasional Contributor II

Re: Setting a Vlan with a dedicated Gateway

Please note that the 2530 is not a layer 3 switch so it's not able to route traffic from clients. The default gateway option you can set on the switch is just for management traffic. So you can set a default gateway to make the management reachable from remote networks.

@hectorh It would be the best if you provide some details about the things you want to achieve. What do you want to route (management traffic, traffic from hosts,...)? Why you want to set it per VLAN and not globally via ip default gateway?
Highlighted

Re: Setting a Vlan with a dedicated Gateway

Hi Hector,

 

As JKLs says, 2530 is not a L3 switch, so you need an external device that performs vlan routing.

If you have a router, you can try a "router on a stick" deployment.

 

More info here:

https://community.spiceworks.com/how_to/55605-how-to-configure-router-on-a-stick

 

Basically, vlans should be created on HPE switch and then you should set the uplink to the router as a trunk , then, configure the router physical interface using virtual interfaces and 802.1q (see the link above for a Cisco router configuration)

 

Regards

 

 


PS: If you feel this information is useful and solved your question or problem, please do not forget to mark it as a solution and give me some kudos.
Highlighted
MVP Guru

Re: Setting a Vlan with a dedicated Gateway

Hi, I agree with you all that Aruba 2530 doesn't provide any Layer 3 feature...I just replied about the strange OP statement I quoted.

Since OP is working with an ArubaOS-Switch based Switch Series...I suggest to exchange the term "trunk" used above with "tagged member of various VLAN IDs" that need to be transported to the external router...otherwise...the OP will erroneously induced to create a port aggregation "Trk" (probably with one member interface only).