H3C LS-5100-16P-SI-OVS-H3 Configuration page 149

Low-end ethernet switches
Table of Contents

Advertisement

Routing
H3C Low-End Ethernet Switches Configuration Examples
Run OSPF in AS 200 to realize network interconnection.
Run IBGP between Switch D and Switch B as well as between Switch D and
Switch C.
Apply a routing policy on Switch A to modify the MED attribute of the route to be
advertised to AS 200, making the data forwarding path from Switch D to AS 100 as
Switch D – Switch C – Switch A.
Apply a routing policy on Switch C to modify the LOCAL_PREF attribute of the
route to be advertised to Switch D, making the data forwarding path from AS 200
to AS 100 as Switch D – Switch C – Switch A.
II. Configuration procedure
1)
Configure Switch A.
# Configure the VLAN interface IP addresses.
<SwitchA> system-view
[SwitchA] interface Vlan-interface 2
[SwitchA-Vlan-interface2] ip address 192.1.1.1 255.255.255.0
[SwitchA-Vlan-interface2] quit
[SwitchA] interface Vlan-interface 3
[SwitchA-Vlan-interface3] ip address 193.1.1.1 255.255.255.0
[SwitchA-Vlan-interface3] quit
[SwitchA] interface Vlan-interface 101
[SwitchA-Vlan-interface101] ip address 1.1.1.1 255.0.0.0
[SwitchA-Vlan-interface101] quit
# Enable BGP.
[SwitchA] bgp 100
# Advertise network 1.0.0.0/8.
[SwitchA-bgp] network 1.0.0.0
# Configure BGP peers.
[SwitchA-bgp] group ex192 external
[SwitchA-bgp] peer 192.1.1.2 group ex192 as-number 200
[SwitchA-bgp] group ex193 external
[SwitchA-bgp] peer 193.1.1.2 group ex193 as-number 200
[SwitchA-bgp] quit
# Define ACL 2000 to permit the routes destined for 1.0.0.0/8.
[SwitchA] acl number 2000
[SwitchA-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255
[SwitchA-acl-basic-2000] rule deny source any
[SwitchA-acl-basic-2000] quit
Chapter 2 Configuration Examples
2-15

Advertisement

Table of Contents
loading

Table of Contents