Sunteți pe pagina 1din 2

D L S 2 ( c o n fi g - i f) # ex i t D L S 2( c o n fi g ) # i n t e r f a c e v l a n

9 9 DLS2(confi g-if)#standby 1 ip
192.168.99.99D L S 2 ( c o n fi g - i f) # s t a n d b y 1
p re e m p t D L S 2 ( c o n fi g - i f ) # s t a n d b y 1
p r i o r i t y 1 5 0 D LS 2 ( c o n fi g - i f ) # ex i t
DLS1#showstandbybriefDLS2#showstandbybrief
// If you want to verify the configuration of HSRP
D L S 2 ( c o n fi g ) # i n t er f a c e r a n g e f a 0 / 7 - 1 2 D L S 2 ( c o n fi g i f- r a n g e ) # s h u t d o w n 1 2 > O n A L S 1 a n d A L S 2 c re a t e a n
S V I f o r M G M T V L A N 9 9 w i th a n I P a d d re s s f ro m t h e
VLAN 99 network assigned in Step
7 . ALS1(config)#interface vlan 99 ALS1(config-if)#ip address
192.168.99.3 255.255.255.0 ALS1(configif)#no shutdown ALS2(config)#interface vlan 99 ALS2(configif)#ip address 192.168.99.4 255.255.255.0 ALS2(configif)#no shutdown1 3 > Fo r A L S 1 a n d A L S 2, s p e c i fy th e H S R P
g a t e w a y a d d re s s o f V L A N 9 9 a s th e d e f a u l t
g a t e w a y. ALS1(config)#ipdefault-gateway192.168.99.99 ALS2(c
onfig)#ipdefault-gateway192.168.99.991 4 > E n a b l e
P o r t Fa s t o n a l l a c c e s s l a y e r
s w i t c h p o r t s . ALS1(config)# spanning-tree
portfast default ALS2(config)# spanning-tree
portfast default1 5 > P e r m i t t h e l i n k s b e t w e e n D L S 2 a n d
A L S 2 t o c a r r y t r a ffi c o n l y f o r t h e V L A N s c re a t e d
i n S t e p 7. ALS2(config)#(config)#interface range fa0/7 8 ALS2(config-if)#switchport trunk allowed
vlan10,20,30,99D LS 2 ( c o n fi g ) # i n t e r f a c e r a n g e f a 0 / 7 8 D L S 2 ( c o n fi g - i f) # s w i t c h p o r t t r u n k a l l o w e d
v l a n 1 0, 2 0 , 3 0 , 9 9 1 6 > E n a b l e Q o S g l o b a l l y o n a l l
switches.
ALS1(config)#mls qos ALS2(config)#mls qosD L S 1 ( c o n fi g ) # m
l s q o s D L S 2 ( c o n fi g ) # m l s q o s 1 7 > O n A L S 1 c o n fi g u re
Fa 0 / 6 a s a n a c c e s s p o r t i n C L I E N T V L A N 1 0 a n d
to trustCisco IP phones CoS using Auto QoS. Use
VO I C E V L A N 2 0 a s t h e v o i c e V L A N . ALS1(config)#interface

fa0/6 ALS1(config-if)#switchport mode access ALS1(configif)#switchport access vlan 10 ALS1(config-if)#switchport voice


vlan 20 ALS1(config-if)#mls qos trust device ciscophone ALS1(config-if)#auto qos voip cisco-phone
//verify configuration
ALS1#show mls qos interface fa0/15 ALS1#show runint
fa0/151 8 > O n A L S 1 , c o n fi g u r e p o r t Fa 0 / 6 w i t h p o r t
s e c u r i t y. A l l o w u p t o t w o M A C a d d r e s s e s t o b e
l ea rn ed fo r IP p h o n e s u p p o r t . En a b l e s t i c ky
learning. Shutdown t h e p o r t i f a v i o l a t i o n
o c c u r s . ALS1(config-if)#switchport port-security ALS1(configif)#switchport port-security maximum 2 ALS1(configif)#switchport port-security mac-address sticky ALS1(configif)#switchport port-security violation shutdown ALS1(configif)#exit1 9 > O n A L S 2 c o n fi g u re p o r t f a 0 / 6 a s a n
a c c e s s p o r t i n S E RV E R V L A N 3 0 . ALS2(config)#interface
fa0/6 ALS2(config-if)#switchport mode access ALS2(configif)#switchport access vlan
3020>Confi gureIProutingonDLS1andDLS2,anduseEIGRPtoad
vertise192.168.0.0/16w i t h a u t o m a t i c s u m m a r i z a t i o n
d i s a b l e d . D LS 1 ( c o n fi g ) # ro u t e r E I G R P 1 D L S 1 ( c o n fi g r o u t e r ) # n o a u t o - s u m m a r y D L S 1 ( co n fi g ro u t e r ) # n e t w o r k 1 9 2 . 1 6 8 . 0 . 0D L S 2 ( c o n fi g ) # ro u t e r E I G R P
1 D L S 2 ( c o n fi g - r o u t e r ) # n o a u t o s u m m a r y D LS 2 ( c o n fi g - ro u t e r ) # n e t w o r k 1 9 2 . 1 6 8 . 0. 0

S-ar putea să vă placă și