Switch User Manual
ipv6 ospf areaid
25-22 OSPFv3 Configuration
Example
ThisexampleentersrouterinterfaceconfigurationmodeforVLAN7andthenenablesOSPFv3on
theinterface.
C3(su)->router(Config)# interface vlan 7
C3(su)->router(Config-if(Vlan 7))# ipv6 ospf enable
ipv6 ospf areaid
ThiscommandsetstheOSPFv3areatowhichtherouterinterfacebelongs.
Syntax
ipv6 ospf areaid areaid
no ipv6 ospf areaid areaid
Parameters
Defaults
None.
Mode
Routerinterfaceconfiguration:C3(su)‐>router(Config‐if(Vlan1))#
Usage
TheareaIDuniquelyidentifiestheareatowhichtheinterfaceconnects.AssigninganareaID
whichdoesnotexistonaninterfacecausestheareatobecreatedwithdefaultvalues.
Usethenoformofthiscommandtoremoveanareafromtheinterface.
Examples
ThisexampleassignsVLAN7toarea20,expressedindotted‐quadformat.
C3(su)->router(Config)# interface vlan 7
C3(su)->router(Config-if(Vlan 7))# ipv6 ospf areaid 0.0.0.20
ThisexampleassignsVLAN7toarea20,expressedasadecimalnumber.
C3(su)->router(Config-if(Vlan 7))# ipv6 ospf areaid 20
ipv6 ospf cost
ThiscommandconfiguresthecostofsendingapacketonanOSPFv3interface.
Syntax
ipv6 ospf cost cost
no ipv6 ospf cost cost
areaid SpecifiestheareaIDineither32‐bitdotted‐quadformatorasadecimal
numberbetween0and4294967295.