214 CHAPTER 6: USING ROUTING PROTOCOL COMMANDS
peer Syntax
peer
ip_address
[ dr-priority
dr
_
priority
_
number
]
undo peer
ip
_
address
View
OSPF View
Parameter
ip_address
Enter the IP address of the neighboring router.
dr_priority_number
Enter the priority value that represents the corresponding
priority value of the network neighbor. The range is from 0 to 255. The default
value is 1.
Description
Using the peer command, you can configure the neighboring point if a router is
connected to a network of NBMA type. Using the
undo peer command, you can
cancel the configured neighboring point.
Example
To configure the IP address of the neighboring router to 10.1.1.1, enter the
following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]router id 1.1.1.1
[SW5500]ospf
[SW5500-ospf-1]peer 10.1.1.1
preference Syntax
preference [ ase ]
value
undo preference [ ase ]
View
OSPF View
Parameter
value
Enter the OSPF protocol route preference, ranging from 1 to 255.
ase Enter to indicate the preference of an imported external route of the AS.
Description
Using the preference command, you can configure the OSPF protocol route
preference.
Using the undo preference command, you can restore the default value of the
OSPF protocol route. By default, the preference of an OSPF protocol internal route
is 10 and the preference of an external route is 150.