Wired Intelligent Edge

last person joined: yesterday 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of your switching devices, and find ways to improve security across your network to bring together a mobile-first solution
Expand all | Collapse all

default gateway for IDF switches

This thread has been viewed 2 times
  • 1.  default gateway for IDF switches

    Posted Nov 09, 2018 12:55 PM

    I have CoreSw1 with below vlan and ip address:

    vlan 1 -> 10.1.1.1

    vlan 2 -> 10.1.2.1

    vlan 3 -> 10.1.3.1

    vlan 4 -> 10.1.4.1

     

    I have IDF1 and IDF2 connected to the CoreSw1. Both switch have only one ip address for vlan1 as:

    IDF1 -> 10.1.1.2

    IDF2 -> 10.1.1.3

     

    Can I set ip default-gateway for both IDF switches to any vlan ip address of the CoreSw1?



  • 2.  RE: default gateway for IDF switches

    EMPLOYEE
    Posted Nov 09, 2018 01:02 PM

    Greetings!

     

    You would set the default gateway to the IP address in the same subnet as the IP on the switch you're configuring (so, presuming that these are /24 subnets, you would set the default gateways on IDF1 and IDF2 to 10.1.1.1). 



  • 3.  RE: default gateway for IDF switches

    Posted Nov 09, 2018 01:57 PM

    Hi Matt,

     

    So why I cannot set 10.1.2.1 or 10.1.3.1 or 10.1.4.1?



  • 4.  RE: default gateway for IDF switches

    MVP GURU
    Posted Nov 10, 2018 11:51 AM

    @Nick IT wrote:

    Hi Matt,

     

    So why I cannot set 10.1.2.1 or 10.1.3.1 or 10.1.4.1?


    No, need to be on the same subnet



  • 5.  RE: default gateway for IDF switches

    Posted Nov 12, 2018 09:06 AM

    What will happen if it set to different vlan ip address as def. gateway?

     

    Also if give ip address to vlan 3 on the IDF switches, can I set def. gateway for the vlan?



  • 6.  RE: default gateway for IDF switches

    Posted Nov 13, 2018 09:33 AM

    Maybe you are allowed to add those default routes, but IDF1/2 will think: whatever network I have to reach, throw the packet to default gateway 10.1.3.1, but where is that IP address?, does it belong to a network where I have a virtual interface?, the answer is: No, I only have a virtual interface on 10.1.1.0/24, I do not have a virtual interface in network 10.1.3.0/24, so I cannot throw the packet to next hop 10.1.3.1, so the packet is discarded.
    Hope this helps you. Please give some extra kudos.
    Pedro