Huawei S6700 Series Configuration Manual page 165

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
l
l
l
Issue 01 (2012-03-15)
stub no-summary
#
return
NOTE
Configuration files of SwitchB and SwitchF are the same as the configuration file of SwitchA, and
are not mentioned here.
Configuration file of SwitchC
#
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
stub
#
return
Configuration file of SwitchD
#
sysname SwitchD
#
vlan batch 30 50
#
router id 4.4.4.4
#
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
import-route static type 1
area 0.0.0.2
network 192.168.2.0 0.0.0.255
network 172.17.1.0 0.0.0.255
#
ip route-static 200.0.0.0 255.0.0.0 NULL0
#
return
Configuration file of SwitchE
#
sysname SwitchE
#
router id 5.5.5.5
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
4 OSPF Configuration
146

Advertisement

Table of Contents
loading

Table of Contents