09-14-2023 11:56 PM
Hi,
I have configured a small topology with 2 x RTRs and 2 x SWs and have 2 ISPs and have configured HSRP for failover. I have connected ISP 1 to RTR 1 and ISP 2 to RTR 2, now vlan 10(ISP 1) that is for ISP 1 is working perfectly fine in SW 1 while not working in SW 2 and same for vlan 20 (ISP 2 vlan) which is working in SW-2 but now in SW-2.
I am giving default route towards the ISPs gateway for both RTRs, .
Below config for your reference and Topology attached
ip dhcp excluded-address 192.168.10.1 192.168.10.10
ip dhcp excluded-address 192.168.20.1 192.168.20.10
!
ip dhcp pool Treasury_ETI
network 192.168.10.0 255.255.255.0
default-router 192.168.10.2
dns-server 213.42.20.20
!
ip dhcp pool Treasury_DU
network 192.168.20.0 255.255.255.0
default-router 192.168.20.2
dns-server 91.74.74.74
!
track 1 ip sla 1
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
description *** ETI_Vlan-10 LAN_INT***
encapsulation dot1Q 10
ip address 192.168.10.2 255.255.255.0
ip nat inside
ip virtual-reassembly in
standby 1 ip 192.168.10.1
standby 1 priority 110
standby 1 track 1 decrement 20
!
interface GigabitEthernet0/0.20
description *** DU-Vlan-20 LAN_INT***
encapsulation dot1Q 20
ip address 192.168.20.2 255.255.255.0
ip nat inside
ip virtual-reassembly in
standby 2 ip 192.168.20.1
standby 2 preempt
!
interface GigabitEthernet0/1
description *** WAN - CONNECTED-TO-ETISALAT-ONT***
ip address dhcp
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip virtual-reassembly in
shutdown
duplex auto
speed auto
!
ip nat inside source list NAT_LIST interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 192.168.100.1
!
ip access-list standard NAT_LIST
permit 192.168.10.0 0.0.0.255
permit 192.168.20.0 0.0.0.255
!
ip sla 1
icmp-echo 2.49.8.1
frequency 5
ip sla schedule 1 life forever start-time now
09-15-2023 07:44 AM
Hello @asfandyar779514494 ,
>> have configured a small topology with 2 x RTRs and 2 x SWs and have 2 ISPs and have configured HSRP for failover. I have connected ISP 1 to RTR 1 and ISP 2 to RTR 2, now vlan 10(ISP 1) that is for ISP 1 is working perfectly fine in SW 1 while not working in SW 2
have you interconnected the two switches with a trunk that carries both VLANs 10 and 20 ?
We see only config of Router 1. Is router 2 configured in a symmetric way with higher HSRP priority on subif gi0/0.20 ?
Hope to help
Giuseppe
09-15-2023 09:39 PM
Hi,
Yes both switches have been connected using trunk carrying both vlans, moreover RTR 2 configuration is identical to RTR 1 and priority is higer for subif gig0/0.20
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide