ex10a_HRSP_VLAN

ex10a_HRSP_VLAN

Router

First do it on everyone Router

1
2
3
4
5
enable
erase startup-config
################# do it one by one ################# do it one by one ################# do it one by one #################
reload
################# do it one by one ################# do it one by one ################# do it one by one #################

RC

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
enable
configure terminal
hostname RC
interface FastEthernet 0/0
ip address 192.168.255.249 255.255.255.252
no shutdown
interface FastEthernet 0/1
ip address 192.168.255.253 255.255.255.252
no shutdown
interface Ethernet0/1/0
ip address 100.100.1xy.1 255.255.255.0
no shutdown
exit
router ospf 5xy
network 100.100.1xy.0 0.0.0.255 area 5
network 192.168.255.252 0.0.0.3 area 5
network 192.168.255.248 0.0.0.3 area 5
exit
exit
copy running-config startup-config

R1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
enable
configure terminal
hostname R1
interface FastEthernet 0/0
no shutdown
interface FastEthernet 0/0.1xy
encapsulation dot1Q 1xy
ip address 192.168.1xy.2 255.255.255.0
standby 1xy ip 192.168.1xy.254
standby 1xy priority 50
standby 1xy preempt
interface FastEthernet 0/0.2xy
encapsulation dot1Q 2xy
ip address 192.168.2xy.2 255.255.255.0
standby 2xy ip 192.168.2xy.254
standby 2xy priority 150
standby 2xy preempt
interface FastEthernet0/1
ip address 192.168.255.250 255.255.255.252
no shutdown
exit
router ospf 5xy
network 192.168.1xy.0 0.0.0.255 area 5
network 192.168.2xy.0 0.0.0.255 area 5
network 192.168.255.248 0.0.0.3 area 5
exit
exit
copy running-config startup-config

R2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
enable
configure terminal
hostname R2
interface FastEthernet 0/0
no shutdown
interface FastEthernet 0/0.1xy
encapsulation dot1Q 1xy
ip address 192.168.1xy.3 255.255.255.0
standby 1xy ip 192.168.1xy.254
standby 1xy priority 150
standby 1xy preempt
interface FastEthernet 0/0.2xy
encapsulation dot1Q 2xy
ip address 192.168.2xy.3 255.255.255.0
standby 2xy ip 192.168.2xy.254
standby 2xy priority 50
standby 2xy preempt
interface FastEthernet0/1
ip address 192.168.255.254 255.255.255.252
no shutdown
exit
router ospf 5xy
network 192.168.1xy.0 0.0.0.255 area 5
network 192.168.2xy.0 0.0.0.255 area 5
network 192.168.255.252 0.0.0.3 area 5
exit
exit
copy running-config startup-config

Switch

First do it on everyone Switch

1
2
3
4
5
6
7
enable
erase startup-config
################# do it one by one ################# do it one by one ################# do it one by one #################
delete vlan.dat
################# do it one by one ################# do it one by one ################# do it one by one #################
reload
################# do it one by one ################# do it one by one ################# do it one by one #################

SWA

1
2
3
4
5
6
7
8
9
10
11
12
13
14
enable
configure terminal
hostname SWA
interface range FastEthernet0/1-5
switchport access vlan 1xy
interface range FastEthernet0/11-15
switchport access vlan 2xy
interface FastEthernet0/23
switchport mode trunk
interface FastEthernet0/24
switchport mode trunk
exit
exit
copy running-config startup-config
文章目錄
  1. 1. Router
  2. 2. First do it on everyone Router
    1. 2.1. RC
    2. 2.2. R1
    3. 2.3. R2
  3. 3. Switch
  4. 4. First do it on everyone Switch
    1. 4.1. SWA
,