---
# System prepended metadata

title: ゼミ物理HSRP(VRRP)検証設定メモ
tags: [メモ, ネットワーク]

---

###### tags: `メモ` `ネットワーク`

# ゼミ物理HSRP(VRRP)検証設定メモ

## トポロジ図
![](https://i.imgur.com/lfHTNQi.png)


## R1
```
en
conf t
ip route 0.0.0.0 0.0.0.0 g0/0/0
int g0/0/0
ip address 172.16.10.1 255.255.255.0
no shutdown
exit
```


## divSwitch
```
en
conf t
vlan 10
exit

(パケトレ)
int f0/1
switchport mode access
switchport access vlan 10
exit
int f0/3
switchport mode access
switchport access vlan 10
exit
int f0/4
switchport mode access
switchport access vlan 10
exit

(実機)
int g1/0/1
switchport mode access
switchport access vlan 10
exit
int g1/0/3
switchport mode access
switchport access vlan 10
exit
int g1/0/4
switchport mode access
switchport access vlan 10
exit
```

## dupSwitch1
```
en
conf t
ip routing

vlan 10
exit
int vlan 10
ip address 172.16.10.18 255.255.255.0
standby 1 ip 172.16.10.254
standby 1 priority 10
standby 1 preempt
exit

vlan 20
exit
int vlan 20
ip address 172.16.20.1 255.255.255.0
standby 2 ip 172.16.20.254
standby 2 priority 10
standby 2 preempt
exit

(パケトレ)
int f0/2
switchport mode access
switchport access vlan 10
exit
int f0/24
switchport mode access
switchport access vlan 10
exit
int f0/12
switchport mode access
switchport access vlan 20
exit

(実機)
int f1/0/2
switchport mode access
switchport access vlan 10
exit
int f1/0/24
switchport mode access
switchport access vlan 10
exit
int f1/0/12
switchport mode access
switchport access vlan 20
exit
```

## dupSwitch2
```
en
conf t
ip routing

vlan 10
exit
int vlan 10
ip address 172.16.10.36 255.255.255.0
standby 1 ip 172.16.10.254
standby 1 priority 9
exit

vlan 20
exit
int vlan 20
ip address 172.16.20.2 255.255.255.0
standby 2 ip 172.16.20.254
standby 2 priority 9
exit

(パケトレ)
int f0/2
switchport mode access
switchport access vlan 10
exit
int f0/24
switchport mode access
switchport access vlan 10
exit
int f0/12
switchport mode access
switchport access vlan 20
exit

(実機)
int f1/0/2
switchport mode access
switchport access vlan 10
exit
int f1/0/24
switchport mode access
switchport access vlan 10
exit
int f1/0/12
switchport mode access
switchport access vlan 20
exit
```

## accessSwitch
```
en
conf t
vlan 20
exit

(パケトレ)
int f0/2
switchport mode access
switchport access vlan 20
exit
int f0/12
switchport mode access
switchport access vlan 20
exit
int f0/24
switchport mode access
switchport access vlan 20
exit

(実機)
int g1/0/2
switchport mode access
switchport access vlan 20
exit
int g1/0/12
switchport mode access
switchport access vlan 20
exit
int g1/0/24
switchport mode access
switchport access vlan 20
exit
```

## Server
```
en
conf t

ip route 0.0.0.0 0.0.0.0 g0/0/0

int g0/0/0
ip address 172.16.20.3 255.255.255.0
no shutdown
exit
```