TXT

hsrp

By Nancy Sims,2014-11-09 22:39
6 views 0
2sw-1: Router>en Router#conf t Router(config)#hostname 2sw-1 2sw-1(config)#no ip do lo 2sw-1(config)#lin 0 2sw-1(config-line)#logg s 2sw-1(config-line)#exec-timeout 0 0 2sw-1(config-line)#exit 2sw-1(config)#end 2sw-1#vlan database 2sw-1(vlan)#v 2sw-1(vlan)#vl 2sw-1(vlan)#vlan 2 VLAN 2 added: Name: VLAN0002 2sw-1(vlan)#exit APPLY completed. Exiti..

2sw-1:

    Router>en

    Router#conf t

    Router(config)#hostname 2sw-1 2sw-1(config)#no ip do lo 2sw-1(config)#lin 0

    2sw-1(config-line)#logg s 2sw-1(config-line)#exec-timeout 0 0 2sw-1(config-line)#exit

    2sw-1(config)#end

    2sw-1#vlan database

    2sw-1(vlan)#v

    2sw-1(vlan)#vl

    2sw-1(vlan)#vlan 2

    VLAN 2 added:

     Name: VLAN0002

    2sw-1(vlan)#exit

    APPLY completed.

    Exiting....

    2sw-1#conf t

    Enter configuration commands, one per line. End with CNTL/Z.

    2sw-1(config)#int f0/2

    2sw-1(config-if)#switchport access vlan 2

    2sw-1(config-if)#exit

    2sw-1(config)#int range f0/8 - 9 2sw-1(config-if-range)#switchport mode trunk

    2sw-1(config-if-range)#exit

2sw-2

    Router>en

    Router#conf t

    Router(config)#hostname 2sw-2 2sw-2(config)#no ip do lo 2sw-2(config)#lin 0

    2sw-2(config-line)#logg s 2sw-2(config-line)#exec-timeout 0 0 2sw-2(config-line)#exit

    2sw-2(config)#end

2sw-2#

    2sw-2#vlan database

    2sw-2(vlan)#vl

    2sw-2(vlan)#vlan 3

    VLAN 3 added:

     Name: VLAN0003

    2sw-2(vlan)#vl

    2sw-2(vlan)#vlan 4

    VLAN 4 added:

     Name: VLAN0004

    2sw-2(vlan)#exit

    APPLY completed.

    Exiting....

    2sw-2#conf t

    Enter configuration commands, one per line. End with CNTL/Z.

    2sw-2(config)#int f0/3 2sw-2(config-if)#switchport ACcess vlan 3

    2sw-2(config-if)#int f0/4 2sw-2(config-if)#switchport access vlan 4

    2sw-2(config-if)#exit 2sw-2(config)#int ran 2sw-2(config)#int range f0/8 - 9

    2sw-2(config-if-range)#switchport mode trunk

    2sw-2(config-if-range)#exit 2sw-2(config)#

3sw-1:

    ????VLAN2??3??4

ÅäÖÃtrunk?º

    interface FastEthernet0/

     switchport mode trunk !

    interface FastEthernet0/

     switchport mode trunk !

    interface FastEthernet0/

     switchport mode trunk

ÅäÖÃÂ?ÓÉ?Ú

interface FastEthernet0/5

     no switchport

     ip address 5.1.1.10 255.0.0.0

ÅäÖÃÉú?ÉÊ?

    spanning-tree vlan 1 priority 8192 spanning-tree vlan 2 priority 8192 spanning-tree vlan 3 priority 16384 spanning-tree vlan 4 priority 16384

ÅäÖÃvlanµÄIPµØÖ?

    interface Vlan1

     ip address 1.1.1.10 255.0.0.0

!

    interface Vlan2

     ip address 2.1.1.10 255.0.0.0

!

    interface Vlan3

     ip address 3.1.1.10 255.0.0.0

!

    interface Vlan4

     ip address 4.1.1.10 255.0.0.0

ÅäÖÃhsrp?º

    interface Vlan1

     ip address 1.1.1.10 255.0.0.0

     standby 10 ip 1.1.1.100

     standby 10 priority 150

     standby 10 preempt

     standby 10 track FastEthernet0/5 100

     standby 10 track FastEthernet0/8 100 !

    interface Vlan2

     ip address 2.1.1.10 255.0.0.0

     standby 20 ip 2.1.1.100

     standby 20 priority 150

     standby 20 preempt

     standby 20 track FastEthernet0/5 100

     standby 20 track FastEthernet0/8 100 !

    interface Vlan3

     ip address 3.1.1.10 255.0.0.0

     standby 30 ip 3.1.1.100

     standby 30 preempt

    !

    interface Vlan4

     ip address 4.1.1.10 255.0.0.0

     standby 40 ip 4.1.1.100

     standby 40 preempt

3sw-2:

    ????VLAN2??3??4

ÅäÖÃtrunk?º

    interface FastEthernet0/

     switchport mode trunk

    !

    interface FastEthernet0/

     switchport mode trunk

    !

    interface FastEthernet0/

     switchport mode trunk

ÅäÖÃÂ?ÓÉ?Ú

    interface FastEthernet0/6

     no switchport

     ip address 6.1.1.10 255.0.0.0

ÅäÖÃÉú?ÉÊ?

    spanning-tree vlan 1 priority 16384 spanning-tree vlan 2 priority 16384 spanning-tree vlan 3 priority 8192 spanning-tree vlan 4 priority 8192

ÅäÖÃvlanµÄIPµØÖ?

    interface Vlan1

     ip address 1.1.1.20 255.0.0.0

!

    interface Vlan2

     ip address 2.1.1.20 255.0.0.0

!

interface Vlan3

     ip address 3.1.1.20 255.0.0.0

!

    interface Vlan4

     ip address 4.1.1.20 255.0.0.0

ÅäÖÃhsrp?º

    interface Vlan1

     ip address 1.1.1.20 255.0.0.0

     standby 10 ip 1.1.1.100

     standby 10 preempt

    !

    interface Vlan2

     ip address 2.1.1.20 255.0.0.0

     standby 20 ip 2.1.1.100

     standby 20 preempt

    !

    interface Vlan3

     ip address 3.1.1.20 255.0.0.0

     standby 30 ip 3.1.1.100

     standby 20 priority 150

     standby 30 preempt

     standby 30 track FastEthernet0/5 100

     standby 30 track FastEthernet0/8 100

    !

    interface Vlan4

     ip address 4.1.1.20 255.0.0.0

     standby 40 ip 4.1.1.100

     standby 40 preempt

     standby 40 priority 150

     standby 40 track FastEthernet0/5 100

     standby 40 track FastEthernet0/8 100

Report this document

For any questions or suggestions please email
cust-service@docsford.com