كود:
##############
[[ROUTER dsw1]]
##############
model=2620
mmap = True
slot1 = NM-16ESW
f1/1 = dsw2 f1/1
cnfg=C:\Program Files\Dynamips\sample_labs\HSRP\conf\dsw1.txt
###############
[[ROUTER dsw2]]
###############
model=2620
mmap = True
slot1 = NM-16ESW
cnfg=C:\Program Files\Dynamips\sample_labs\HSRP\conf\dsw2.txt
ملف إعدادت سويتش DSW1
كود:
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DSW1
!
!
memory-size iomem 15
ip subnet-zero
!
!
no ip domain lookup
!
!
!
!
voice call carrier capacity active
!
!
!
!
!
!
!
!
!
mta receive maximum-recipients 0
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
switchport mode trunk
no ip address
!
interface FastEthernet1/1
switchport mode trunk
no ip address
!
interface FastEthernet1/2
no ip address
shutdown
!
interface FastEthernet1/3
no ip address
shutdown
!
interface FastEthernet1/4
no ip address
shutdown
!
interface FastEthernet1/5
no ip address
shutdown
!
interface FastEthernet1/6
no ip address
shutdown
!
interface FastEthernet1/7
no ip address
shutdown
!
interface FastEthernet1/8
no ip address
shutdown
!
interface FastEthernet1/9
no ip address
shutdown
!
interface FastEthernet1/10
no ip address
shutdown
!
interface FastEthernet1/11
no ip address
shutdown
!
interface FastEthernet1/12
no ip address
shutdown
!
interface FastEthernet1/13
no ip address
shutdown
!
interface FastEthernet1/14
no ip address
shutdown
!
interface FastEthernet1/15
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
interface Vlan101
ip address 192.168.101.1 255.255.255.0
standby 1 ip 192.168.101.254
standby 1 priority 200
standby 1 track FastEthernet1/0 55
!
interface Vlan102
ip address 192.168.102.1 255.255.255.0
standby 2 ip 192.168.102.254
standby 2 priority 200
standby 2 preempt
standby 2 track FastEthernet1/0 5
!
interface Vlan103
ip address 192.168.103.1 255.255.255.0
standby 3 ip 192.168.103.254
standby 3 priority 200
standby 3 preempt
standby 3 track FastEthernet1/0
!
interface Vlan104
ip address 192.168.104.1 255.255.255.0
standby 4 ip 192.168.104.254
standby 4 priority 150
standby 4 preempt
standby 4 track FastEthernet1/0 1
!
interface Vlan105
ip address 192.168.105.1 255.255.255.0
standby 5 ip 192.168.105.254
standby 5 priority 150
standby 5 preempt
standby 5 track FastEthernet1/0 55
!
router eigrp 1
network 192.168.0.0 0.0.255.255
auto-summary
no eigrp log-neighbor-changes
!
ip classless
ip http server
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
ملف إعدادت سويتش DSW2
كود:
!
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DSW2
!
!
memory-size iomem 15
ip subnet-zero
!
!
no ip domain lookup
!
!
!
!
voice call carrier capacity active
!
!
!
!
!
!
!
!
!
mta receive maximum-recipients 0
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet1/0
switchport mode trunk
no ip address
!
interface FastEthernet1/1
switchport mode trunk
no ip address
!
interface FastEthernet1/2
no ip address
shutdown
!
interface FastEthernet1/3
no ip address
shutdown
!
interface FastEthernet1/4
no ip address
shutdown
!
interface FastEthernet1/5
no ip address
shutdown
!
interface FastEthernet1/6
no ip address
shutdown
!
interface FastEthernet1/7
no ip address
shutdown
!
interface FastEthernet1/8
no ip address
shutdown
!
interface FastEthernet1/9
no ip address
shutdown
!
interface FastEthernet1/10
no ip address
shutdown
!
interface FastEthernet1/11
no ip address
shutdown
!
interface FastEthernet1/12
no ip address
shutdown
!
interface FastEthernet1/13
no ip address
shutdown
!
interface FastEthernet1/14
no ip address
shutdown
!
interface FastEthernet1/15
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
interface Vlan101
ip address 192.168.101.2 255.255.255.0
standby 1 ip 192.168.101.254
standby 1 priority 150
standby 1 preempt
standby 1 track FastEthernet1/0
!
interface Vlan102
ip address 192.168.102.2 255.255.255.0
standby 2 ip 192.168.102.254
standby 2 priority 190
standby 2 preempt
standby 2 track FastEthernet1/0
!
interface Vlan103
ip address 192.168.103.2 255.255.255.0
standby 3 ip 192.168.103.254
standby 3 priority 190
standby 3 preempt
standby 3 track FastEthernet1/0 50
!
interface Vlan104
ip address 192.168.104.2 255.255.255.0
standby 4 ip 192.168.104.254
standby 4 priority 200
standby 4 preempt
standby 4 track FastEthernet1/0 55
!
interface Vlan105
ip address 192.168.105.2 255.255.255.0
standby 5 ip 192.168.105.254
standby 5 preempt
standby 5 track FastEthernet1/0
!
ip classless
ip http server
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
dial-peer cor custom
!
!
!
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
المفضلات