address
20-44 IPv4 Routing Protocol Configuration
address
UsethiscommandtoconfigureavirtualrouterIPaddress.Thenoformofthiscommandclears
theVRRPaddressconfiguration.
Syntax
address vlan vlan-id vrid ip-address owner
no address vlan vlan-id vrid ip-address owner
Parameters
Defaults
None.
Mode
Routerconfiguration:C2(su)‐>router(Config‐router)#
Usage
IfthevirtualrouterIPaddressisthesameastheinterface(VLAN)addressownedbyaVRRP
router,thentherouterowningtheaddressbecomesthemaster.Themastersendsan
advertisementtoallotherVRRProutersdeclaringitsstatusandassumesresponsibilityfor
forwar dingpacketsassociatedwithitsvirtual
routerID(VRID).
IfthevirtualrouterIPaddressisnotownedbyanyoftheVRRProuters,thentherouterscompare
theirprioritiesandthehigherpriorityownerbecomesthemaster.Ifpriorityvaluesarethesame,
thentheVRRProuterwiththehigherIPaddressisselectedmaster.
Fordetailsonusingthe
prioritycommand,referto“priority”onpage20‐45.
Example
Thisexampleshowshowtoconfigureavirtualrouteraddressof182.127.62.1ontheVLAN1
interface,VRID1,andtosettherouterconnectedtotheVLANviathisinterfaceasthemaster:
C2(su)->router(Config)#router vrrp
C2(su)->router(Config-router)#address vlan 1 1 182.127.62.1 1
vlanvlan‐id SpecifiesthenumberoftheVLANonwhichtoconfigureavirtualrouter
address.ThisVLANmustbeconfiguredforIProutingasdescribedin“Pre‐
RoutingConfigurationTasks”onpage18‐1.
vrid SpecifiesauniqueVirtualRouterID(VRID)associatedwiththerouting
interface.
ip‐address Specifies
thevirtualrouterIPaddresstoassociatewiththerouter.
owner SpecifiesavaluetoindicateiftherouterownstheIPaddressasoneofits
interfaces.Validvaluesare:
• 1toindicatetherouterownstheaddress.
• 0toindicatetherouterdoesnotowntheaddress.