📄 ospfd.texi
字号:
@node OSPFv2, OSPFv3, RIPng, Top@comment node-name, next, previous, up@chapter OSPFv2 OSPF version 2 is a routing protocol which described in@asis{RFC2328} - @cite{OSPF Version 2}. OSPF is IGP (Interior GatewayProtocols). Compared with RIP, OSPF can provide scalable networksupport and faster convergence time. OSPF is widely used in largenetworks such as ISP backbone and enterprise networks.@menu* Configuring ospfd:: * OSPF router:: * OSPF area:: * OSPF interface:: * Redistribute routes to OSPF:: * Showing OSPF information:: * Debugging OSPF:: @end menu@node Configuring ospfd, OSPF router, OSPFv2, OSPFv2@comment node-name, next, previous, up@section Configuring ospfdThere is no @command{ospfd} specific options. Common options can bespecified (@pxref{Common Invocation Options}) to @command{ospfd}.@command{ospfd} needs interface information from @command{zebra}. Soplease make it sure @command{zebra} is running before invoking@command{ospfd}.Like other daemons, @command{ospfd} configuration is done in OSPFspecific configuration file @file{ospfd.conf}.@node OSPF router, OSPF area, Configuring ospfd, OSPFv2@comment node-name, next, previous, up@section OSPF routerTo start OSPF process you have to specify the OSPF router. As of thiswriting, @command{ospfd} does not support multiple OSPF processes.@deffn Command {router ospf} {}@deffnx Command {no router ospf} {}Enable or disable the OSPF process. @command{ospfd} does not yetsupport multiple OSPF processes. So you can not specify an OSPF processnumber.@end deffn@deffn {OSPF Command} {ospf router-id @var{a.b.c.d}} {}@deffnx {OSPF Command} {no ospf router-id} {}@end deffn@deffn {OSPF Command} {ospf abr-type @var{type}} {}@deffnx {OSPF Command} {no ospf abr-type @var{type}} {}@var{type} can be cisco|ibm|shortcut|standardMore information regarding the behaviour controlled by this command canbe found in draft-ietf-ospf-abr-alt-05.txt. Quote: "Though the definition of the Area Border Router (ABR)in the OSPF specification does not require a router with multipleattached areas to have a backbone connection, it is actuallynecessary to provide successful routing to the inter-area andexternal destinations. If this requirement is not met, all trafficdestined for the areas not connected to such an ABR or out of theOSPF domain, is dropped. This document describes alternative ABRbehaviors implemented in Cisco and IBM routers."@end deffn@deffn {OSPF Command} {ospf rfc1583compatibility} {}@deffnx {OSPF Command} {no ospf rfc1583compatibility} {}This rfc2328, the sucessor to rfc1583, suggests according to sectionG.2 (changes) in section 16.4 a change to the path preferencealgorithm that prevents possible routing loops that were possible inthe old version of OSPFv2. More specificly it demands that inter-areapaths and intra-area path are now of equal preference but still bothpreferred to external paths.@end deffn@deffn {OSPF Command} {passive interface @var{interface}} {}@deffnx {OSPF Command} {no passive interface @var{interface}} {}@end deffn@deffn {OSPF Command} {timers spf <0-4294967295> <0-4294967295>} {}@deffnx {OSPF Command} {no timers spf} {}@end deffn@deffn {OSPF Command} {refresh group-limit <0-10000>} {}@deffnx {OSPF Command} {refresh per-slice <0-10000>} {}@deffnx {OSPF Command} {refresh age-diff <0-10000>} {}@end deffn@deffn {OSPF Command} {auto-cost refrence-bandwidth <1-4294967>} {}@deffnx {OSPF Command} {no auto-cost refrence-bandwidth} {}@end deffn@deffn {OSPF Command} {network @var{a.b.c.d/m} area @var{a.b.c.d}} {}@deffnx {OSPF Command} {network @var{a.b.c.d/m} area @var{<0-4294967295>}} {}@deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{a.b.c.d}} {}@deffnx {OSPF Command} {no network @var{a.b.c.d/m} area @var{<0-4294967295>}} {}This command specifies the OSPF enabled interface. If the interface hasan address of 10.0.0.1/8 then the command below provides networkinformation to the ospf routers@example@grouprouter ospf network 10.0.0.0/8 area 0@end group@end examplethe network command's mask length should be the same as the interfaceaddress's mask.@end deffn@node OSPF area, OSPF interface, OSPF router, OSPFv2@comment node-name, next, previous, up@section OSPF area@deffn {OSPF Command} {area @var{a.b.c.d} range @var{a.b.c.d/m}} {}@deffnx {OSPF Command} {area <0-4294967295> range @var{a.b.c.d/m}} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} range @var{a.b.c.d/m}} {}@deffnx {OSPF Command} {no area <0-4294967295> range @var{a.b.c.d/m}} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX suppress} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX suppress} {}@deffnx {OSPF Command} {area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} range IPV4_PREFIX substitute IPV4_PREFIX} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {}@deffnx {OSPF Command} {area <0-4294967295> virtual-link @var{a.b.c.d}} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} virtual-link @var{a.b.c.d}} {}@deffnx {OSPF Command} {no area <0-4294967295> virtual-link @var{a.b.c.d}} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} shortcut} {}@deffnx {OSPF Command} {area <0-4294967295> shortcut} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} shortcut} {}@deffnx {OSPF Command} {no area <0-4294967295> shortcut} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} stub} {}@deffnx {OSPF Command} {area <0-4294967295> stub} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} stub} {}@deffnx {OSPF Command} {no area <0-4294967295> stub} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} stub no-summary} {}@deffnx {OSPF Command} {area <0-4294967295> stub no-summary} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} stub no-summary} {}@deffnx {OSPF Command} {no area <0-4294967295> stub no-summary} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} default-cost <0-16777215>} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} default-cost <0-16777215>} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} export-list NAME} {}@deffnx {OSPF Command} {area <0-4294967295> export-list NAME} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} export-list NAME} {}@deffnx {OSPF Command} {no area <0-4294967295> export-list NAME} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} import-list NAME} {}@deffnx {OSPF Command} {area <0-4294967295> import-list NAME} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} import-list NAME} {}@deffnx {OSPF Command} {no area <0-4294967295> import-list NAME} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} authentication} {}@deffnx {OSPF Command} {area <0-4294967295> authentication} {}@deffnx {OSPF Command} {no area @var{a.b.c.d} authentication} {}@deffnx {OSPF Command} {no area <0-4294967295> authentication} {}@end deffn@deffn {OSPF Command} {area @var{a.b.c.d} authentication message-digest} {}@deffnx {OSPF Command} {area <0-4294967295> authentication message-digest} {}@end deffn@node OSPF interface, Redistribute routes to OSPF, OSPF area, OSPFv2@comment node-name, next, previous, up@section OSPF interface@deffn {Interface Command} {ip ospf authentication-key AUTH_KEY} {}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -