cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
243
Views
0
Helpful
3
Replies

2 interface, 2 default gateway

danny62
Level 1
Level 1

Hi I have a 2960 switch, i need to set ip my 2 interface with 2 different gateway For example: Gig 1/0/23 10.10.10.10/24 default gateway : 10.10.10.1 Gig 1/0/24 20.20.20.20/24 default gateway 20.20.20.1 How can i set default gateway for each interface? Thanks

3 Replies 3

default gateway for SW or GW for PC connect to SW?

M02@rt37
VIP
VIP

Hello @danny62,

Could you please more elaborate?

IP default-gateway is for the switch, not interfaces. And it can be only one.

The "ip default-gateway" command is indeed used to set the default gateway for the entire switch, not for individual interfaces. On Cisco Catalyst switches, the "ip default-gateway" command is used when the switch itself needs to reach networks outside of its directly connected networks.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Martin L
VIP
VIP

2 interface with 2 different gateway ? not possible for L2 switch; you need L3 switch with vlan and SVI where SVI performs as default gateway, plus at least 1 host per vlan so that SVI stays up;

Regards, ML
**Please Rate All Helpful Responses **