Rip, Static Route, And Routing Policy Configuration Example - H3C LS-5100-16P-SI-OVS-H3 Configuration

Low-end ethernet switches
Table of Contents

Advertisement

Routing
H3C Low-End Ethernet Switches Configuration Examples
# Advertise networks 196.1.3.0 and 196.2.3.0.
[S400-bgp] network 196.1.3.0
[S400-bgp] network 196.2.3.0
# Set the preferences of EBGP routes, IBGP routes, and local routes to 200.
[S400-bgp] preference 200 200 200

3.2.4 RIP, Static Route, and Routing Policy Configuration Example

I. Network requirements
As shown in
routes learned by S300_B through RIP, allow S300_B to advertise routes to S300_A
and forbid S300_B to receive routes advertised by S300_A. Packets from S300_B to
S300_A are forwarded through the default route.
II. Network diagram
Device
S300_A
S300_B
Figure 3-6 Network diagram for RIP, static route, and routing policy configuration
III. Configuration procedure
# Create ACL 2000 and deny all packets.
<S300_B> system-view
[S300_B] acl number 2000
[S300_B-acl-basic-2000] rule deny source any
[S300_B-acl-basic-2000] quit
# Apply ACL 2000 to incoming RIP routes.
[S300_B] rip
[S300_B-rip] filter-policy 2000 import
Figure
3-6, RIPv2 runs on S300_A/S300_B. To control the number of
Interface
Vlan-int 662
Vlan-int 662
Vlan-int 623
Vlan-int 624
3-12
Chapter 3 Comprehensive Configuration
IP address
166.1.2.1/24
166.1.2.2/24
162.1.3.1/24
162.1.4.1/24
Example

Advertisement

Table of Contents
loading

Table of Contents