Chapter 40 OSPF Commands
Ethernet Switch CLI Reference Guide
139
40.3  Command Examples
In this example, the Switch (A) is an Area Border Router (ABR) in an OSPF network. 
Figure 5   OSPF Network Example
area <area-id> virtual-link <router-id> 
message-digest-key <keyid> md5 <key>
Enables MD5 authentication and sets the 
key ID and key for the virtual link in the 
area. 
C13
no area <area-id> virtual-link <router-
id> message-digest-key
Resets the authentication settings on this 
virtual link.  
C13
area <area-id> virtual-link <router-id> 
name <name>
Sets a descriptive name for the virtual link 
for identification purposes. 
C13
exit Leaves the router OSPF configuration 
mode. 
C13
network <ip-addr/bits> area <area-id> Creates an OSPF area.  C 13
no network <ip-addr/bits> Deletes the OSPF network.  C 13
redistribute rip metric-type <1|2> metric 
<0-65535>
Sets the Switch to learn RIP routing 
information which will use the specified 
metric information. 
C13
no redistribute rip Sets the Switch not to learn RIP routing 
information. 
C13
redistribute static metric-type <1|2> 
metric <0-65535>
Sets the Switch to learn static routing 
information which will use the specified 
metric information. 
C13
no redistribute static Sets the Switch not to learn static routing 
information. 
C13
passive-iface <ip-addr/bits> Sets the interface to be passive. A passive 
interface does not send or receive OSPF 
traffic.
C13
no router ospf Disables OSPF on the Switch.  C 13
Table 92   OSPF Command Summary  (continued)
COMMAND DESCRIPTION M P
Area 0 
Backbone
Area 1
IP: 172.16.1.1
A