3com 5500G ユーザーズマニュアル

ページ / 336
104
C
HAPTER
 15: R
OUTING
 C
ONFIGURATION
 G
UIDE
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit 
Configure Switch C.
# Assign a router ID to Switch C.
<SwitchC> system-view
[SwitchC] router id 3.3.3.3 
# Configure an IP address for the VLAN interface.
[SwitchC] interface Vlan-interface 1
[SwitchC-Vlan-interface1] ip address 196.1.1.3 255.255.255.0 
# Assign a DR priority to the VLAN interface.
[SwitchC-Vlan-interface1] ospf dr-priority 2
[SwitchC-Vlan-interface1] quit 
# Enable OSPF and specify the VLAN interface to belong to area 0.
[SwitchC] ospf
[SwitchC-ospf-1] area 0
[SwitchC-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255 
Configure Switch D.
# Assign a router ID to Switch D.
<SwitchD> system-view
[SwitchD] router id 4.4.4.4 
# Configure an IP address for the VLAN interface.
[SwitchD] interface Vlan-interface 1
[SwitchD-Vlan-interface1] ip address 196.1.1.4 255.255.255.0
[SwitchD-Vlan-interface1] quit 
# Enable OSPF and specify the VLAN interface to belong to area 0.
[SwitchD] ospf
[SwitchD-ospf-1] area 0
[SwitchD-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255 
Complete Configuration
Perform the following configuration on Switch A.
#
router id 1.1.1.1
#
vlan 1
#
interface Vlan-interface 1
ip address 196.1.1.1 255.255.255.0
ospf dr-priority 100
#
ospf 1