Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual

Page 570

Advertising
background image

538

Network OS NETCONF Operations Guide

53-1003231-02

VRRP basic configuration example

35

7. Assign Router 2 to the same VRRP group as Router 1 and give the group the same virtual IP

address.

The assignment is done in the <vrrp> node in the urn:brocade.com:mgmt:brocade-vrrp
namespace. The group is identified by group number in the <vrid> element, and the virtual
router IP address in the <virtual-ip>/<virtual-ipaddr> element.

For VRRP, the physical router IP address and the virtual router group IP address are different.
Thus Router 2 is not the master.

<interface xmlns="urn:brocade.com:mgmt:brocade-interface">

<tengigabitethernet>

<vrrp xmlns="urn:brocade.com:mgmt:brocade-vrrp">

<vrid>1</vrid>

<virtual-ip>

<virtual-ipaddr>192.53.5.1</virtual-ipaddr>

</virtual-ip>

</vrrp>

<vrrp xmlns="urn:brocade.com:mgmt:brocade-vrrp">

<vrid>1</vrid>

<virtual-ip>

<virtual-ipaddr>192.53.5.1</virtual-ipaddr>

</virtual-ip>

</vrrp>

The following example configures the basic backup router shown in

Figure 8

on page 534

<?xml version="1.0" encoding="UTF-8"?>

<rpc message-id="3401" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<edit-config>

<target>

<running/>

</target>

<config>

<vcsmode xmlns="urn:brocade.com:mgmt:brocade-vcs">

<vcs-mode>true</vcs-mode>

<vcs-cluster-mode>false</vcs-cluster-mode>

</vcsmode>

<rbridge-id xmlns="urn:brocade.com:mgmt:brocade-rbridge">

<rbridge-id>102</rbridge-id>

<protocol xmlns="urn:brocade.com:mgmt:brocade-interface">

<hide-vrrp-holder xmlns="urn:brocade.com:mgmt:brocade-vrrp">

<vrrp/>

</hide-vrrp-holder>

</protocol>

</rbridge-id>

<interface xmlns="urn:brocade.com:mgmt:brocade-interface">

<tengigabitethernet>

<name>102/1/5</name>

<ip>

<ip-config

xmlns="urn:brocade.com:mgmt:brocade-ip-config">

<address>

<address>192.53.5.3</address>

</address>

</ip-config>

</ip>

<vrrp xmlns="urn:brocade.com:mgmt:brocade-vrrp">

<vrid>1</vrid>

<virtual-ip>

<virtual-ipaddr>192.53.5.1</virtual-ipaddr>

Advertising