JunOS VRRP configuration

--------------------------JunOS VRRP configuration----------------------------------------

R1配置:------VRRP 配置

[edit interfaces fe-0/0/0]

lab@r1# vlan-tagging

lab@r1# set unit 520 family inet address10.1.1.2/24

lab@r1# set unit 520 vlan-id 520

lab@r1# edit unit 520 family inet address10.1.1.2/24

[edit interfaces fe-0/0/0 unit 520 familyinet address 10.1.1.2/24]

lab@r1# set vrrp-group 1 virtual-address 10.1.1.1

lab@r1# set vrrp-group 1 accept-data

lab@r2# set vrrp-group 1 priority 110

lab@r1# set vrrp-group 1authentication-type md5                    vrrp MD5认证

lab@r1# set vrrp-group 1 authentication-keyjni                        vrrp 密钥

lab@r1# set track interface fe-0/0/1priority-cost 30     vrrp-track 服务优先级,默认100

-------------------------------------

R2配置:------VRRP 配置

[edit interfaces fe-0/0/0]

lab@r2# vlan-tagging

lab@r2# set unit 520 family inet address 10.1.1.3/24

lab@r2# set unit 520 vlan-id 520

lab@r2# edit unit 520 family inet address10.1.1.3/24

[edit interfaces fe-0/0/0 unit 520 familyinet address 10.1.1.3/24]

lab@r2# set vrrp-group 1 virtual-address 10.1.1.1

lab@r2# set vrrp-group 1 accept-data

lab@r2# set vrrp-group 1authentication-type md5

lab@r2# set vrrp-group 1 authentication-keyjni