cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
900
Views
0
Helpful
4
Replies

HSRP: subinterface on virtual interface

hi guys,

is it possible to provide a subinterface with dot1q encapsulation on the virtual interface? im planning to use hsrp to provide redundancy on my metro-e. the problem is im using subinterface and encapsulation dot1q. Is this possible using hsrp ?

thanks.

4 Replies 4

satish_zanjurne
Level 4
Level 4

Hi,

1.You can use HSRP with subinterface as well as SVI interface.

2.HSRP groups on subinterfaces must have a group number unique among all other groups on all subinterfaces on the same main interface. This is because subinterfaces do not receive a unique SNMP interface index. If you had two groups with the number N on different subinterfaces, then in the MIB, group N on sub-interface 1 and group N on sub-interface 2 would appear to be the same group.

3.I did not get your statement "is it possible to provide a subinterface with dot1q encapsulation on the virtual interface?"

HTH...rate if helpful..

Hi Satish,

My current setup is i have a subinterface configured on my router with dot1q where my metro-e clients used as gateway. if use hsrp will i configure this on the 2nd router?

can you provide me a sample.

thanks.

In the following example, there is a Voice and Data VLAN, they have been specifically given different priorities so that Router-A is the Active for the Data-VLAN and Standby for the Voice-VLAN, and the exact opposite for Router-B.

Router-A

interface FastEthernet0/0

no ip address

duplex auto

speed auto

no keepalive

!

interface FastEthernet0/0.1

description Data-VLAN

encapsulation dot1Q 10

ip address 192.168.1.2 255.255.255.0

standby 1 ip 192.168.1.1

standby 1 priority 115

standby 1 preempt

!

interface FastEthernet0/0.2

description Voice-VLAN

encapsulation dot1Q 20

ip address 192.168.2.2 255.255.255.0

standby 2 ip 192.168.2.1

standby 2 priority 105

standby 2 preempt

!

Router-B

interface FastEthernet0/0

no ip address

duplex auto

speed auto

no keepalive

!

interface FastEthernet0/0.1

description Data-VLAN

encapsulation dot1Q 10

ip address 192.168.1.3 255.255.255.0

standby 1 ip 192.168.1.1

standby 1 priority 105

standby 1 preempt

!

interface FastEthernet0/0.2

description Voice-VLAN

encapsulation dot1Q 20

ip address 192.168.2.3 255.255.255.0

standby 2 ip 192.168.2.1

standby 2 priority 115

standby 2 preempt

Hope this helps

Allan.

Pls rate helpful posts.

Hi Allan,

What will be the gateway address per vlan? Is it the standby ip address? How bout the peer ip address per vlan? Based on your config, it has different ip address per router and mostly i subnet my ip address.

tia.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: