ZXR10 GER (V2.6.03) General Excellent Router User Manual Volume-I
238 Confidential and Proprietary Information of ZTE CORPORATION
TABLE 291 ACCESS-LIST COMMAND
Command Format
Command
Mode
Command Function
access-list
<number>
deny/permit
ip address
<ip address>
<network mask>
Global
This prevents certain
network prefix for
advertising into BGP
Result: This configures a prefix parameter for denying
certain network prefix.
E
ND OF STEPS
Example: As shown in Figure 98, R1 and R2 are mutually IBGP
peers, R1 and R3 are mutually EBGP peers, and R4 and R2 are
mutually EBGP peers.
FIGURE 98 ROUTE FILTERING BY MEANS OF NLRI
AS100
AS200 AS300
182.17.20.1/30
192.18.10.0/24
182.17.1.2/30
182.17.20.2/30
R3 R4
182.17.1.1/30
R1
R2
To prevent AS100 from playing the role of a transitional AS, the
network 192.18.10.0/24 from AS300 can be advertised to
AS200. R1 is configured with filtering function as follows:
ZXR10_R1(config)#router bgp 100
ZXR10_R1(config-router)#no synchronization
ZXR10_R1(config-router)#neighbor 182.17.1.2 remote-as 100
ZXR10_R1(config-router)#neighbor 182.17.20.1 remote-as 200
ZXR10_R1(config-router)#neighbor 182.17.20.1 route-map MAP1
out
ZXR10_R1(config)#route-map MAP1 permit 10
ZXR10_R1(config-route-map)#match ip address 1
ZXR10_R1(config)#access-list 1 deny 192.18.10.0 0.0.0.255
ZXR10_R1(config)#access-list 1 permit 0.0.0.0 255.255.255.255