Pages

network cisco ccna gns3 certification arteq

network cisco ccna gns3 certification arteq
a network runs through it

Search insearchofthecert

Sunday, April 22, 2012

hsrp lab...

note for vlan 30 and 40... the command is standby 1 priority 100, which is the default and doesn't show in the output... also note the logical groupings of  vlans to ip's throughout... a real time saver and a way to keep shit straight...

on dls1...


interface Vlan1                                                                
 ip address 172.16.1.3 255.255.255.0                                           
 standby 1 ip 172.16.1.1                                                       
 standby 1 priority 150                                                        
 standby 1 preempt                                                             
!                                                                              
interface Vlan10                                                               
 ip address 172.16.10.3 255.255.255.0                                          
 standby 1 ip 172.16.10.1                                                      
 standby 1 priority 150                                                        
 standby 1 preempt                                                             
!                                                                              
interface Vlan20                                                               
 ip address 172.16.20.3 255.255.255.0                                          
 standby priority 150                                                          
 standby 1 ip 172.16.20.1                                                      
 standby 1 priority 150                                                        
 standby 1 preempt                                                             
!                                                                              
interface Vlan30                                                               
 ip address 172.16.30.3 255.255.255.0                                          
 standby 1 ip 172.16.30.1                                                      
 standby 1 preempt                                                             
!                                                                              
interface Vlan40                                                               
 ip address 172.16.40.3 255.255.255.0                                          
 standby 1 ip 172.16.40.1                                                      
 standby 1 preempt                        

on dls2...

interface Vlan1                                                                
 ip address 172.16.1.4 255.255.255.0                                           
 standby 1 ip 172.16.1.1                                                       
 standby 1 preempt                                                             
!                                                                              
interface Vlan10                                                               
 ip address 172.16.10.4 255.255.255.0                                          
 standby 1 ip 172.16.10.1                                                      
 standby 1 preempt                                                             
!                                                                              
interface Vlan20                                                               
 ip address 172.16.20.4 255.255.255.0                                          
 standby 1 ip 172.16.20.1                                                      
 standby 1 preempt                                                             
!                                                                              
interface Vlan30                                                               
 ip address 172.16.30.4 255.255.255.0                                          
 standby preempt                                                               
 standby 1 ip 172.16.30.1                                                      
 standby 1 priority 150                                                        
 standby 1 preempt                                                             
!                                                                              
interface Vlan40                                                               
 ip address 172.16.40.4 255.255.255.0                                          
 standby 1 ip 172.16.40.1                                                      
 standby 1 priority 150                                                        
 standby 1 preempt                       

this command is your lifesaver...

dls1#sh standby brief                                                          
                     P indicates configured to preempt.                        
                     |                                                         
Interface   Grp Prio P State    Active          Standby         Virtual IP     
Vl1         1   150  P Active   local           172.16.1.4      172.16.1.1     
Vl10        1   150  P Active   local           172.16.10.4     172.16.10.1    
Vl20        1   150  P Active   local           172.16.20.4     172.16.20.1    
Vl30        1   100  P Standby  172.16.30.4     local           172.16.30.1    
Vl40        1   100  P Standby  172.16.40.4     local           172.16.40.1    
dls1#

dls2#sh standby brie                                                           
                     P indicates configured to preempt.                        
                     |                                                         
Interface   Grp Prio P State    Active          Standby         Virtual IP     
Vl1         1   100  P Standby  172.16.1.3      local           172.16.1.1     
Vl10        1   100  P Standby  172.16.10.3     local           172.16.10.1    
Vl20        1   100  P Standby  172.16.20.3     local           172.16.20.1    
Vl30        1   150  P Active   local           172.16.30.3     172.16.30.1    
Vl40        1   150  P Active   local           172.16.40.3     172.16.40.1    
dls2#

and this one will get you every time...

dls2#sh ip route                                                               
Default gateway is not set                                                     
                                                                               
Host               Gateway           Last Use    Total Uses  Interface         
ICMP redirect cache is empty                                                   
dls2#config t                                                                  
Enter configuration commands, one per line.  End with CNTL/Z.                  
dls2(config)#ip routing                                                        
dls2(config)#end                                                               
dls2#sh ip route                                                               
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP                 
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area          
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2          
       E1 - OSPF external type 1, E2 - OSPF external type 2                    
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2   
       ia - IS-IS inter area, * - candidate default, U - per-user static route 
       o - ODR, P - periodic downloaded static route                           
                                                                               
Gateway of last resort is not set                                              
                                                                               
     172.16.0.0/24 is subnetted, 5 subnets                                     
C       172.16.40.0 is directly connected, Vlan40                              
C       172.16.30.0 is directly connected, Vlan30                              
C       172.16.20.0 is directly connected, Vlan20                              
C       172.16.10.0 is directly connected, Vlan10                              
C       172.16.1.0 is directly connected, Vlan1                                
dls2#

shut all the links on dls1...


No comments:

Post a Comment