![Huawei S6700 Series Скачать руководство пользователя страница 160](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517160.webp)
l
Configuration file of Switch C
#
sysname SwitchC
#
router id 3.3.3.3
#
vlan batch 20 40
#
interface Vlanif20
ip address 192.168.1.2 255.255.255.0
#
interface Vlanif40
ip address 172.16.1.1 255.255.255.0
#
interface XGigabitEthernet0/0/1
port trunk allow-pass vlan 20
#
interface XGigabitEthernet0/0/2
port trunk allow-pass vlan 40
#
ospf 1
area 0.0.0.1
network 192.168.1.0 0.0.0.255
network 172.16.1.0 0.0.0.255
#
return
l
Configuration file of Switch D
#
sysname SwitchD
#
router id 4.4.4.4
#
vlan batch 30 50
#
interface Vlanif30
ip address 192.168.2.2 255.255.255.0
#
interface Vlanif50
ip address 172.17.1.1 255.255.255.0
#
interface XGigabitEthernet0/0/1
port trunk allow-pass vlan 30
#
interface XGigabitEthernet0/0/2
port trunk allow-pass vlan 50
#
ospf 1
area 0.0.0.2
network 192.168.2.0 0.0.0.255
network 172.17.1.0 0.0.0.255
#
return
l
Configuration file of Switch E
#
sysname SwitchE
#
router id 5.5.5.5
#
vlan batch 40
#
interface Vlanif40
ip address 172.16.1.2 255.255.255.0
#
interface XGigabitEthernet0/0/1
port trunk allow-pass vlan 40
#
ospf 1
area 0.0.0.1
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
4 OSPF Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
141