Huawei router switch VLAN configuration instance
Configuration Description: use four PCs, the Huawei router R2621), and the switch S3026e). Create a VLAN to connect the virtual network to the physical network. Implement firewall policies and access control ACLs ).
Router BGP protocol configuration command
A name = "4.10.1 bgp default local-preference"> 4.10.1 bgp default local-preference
Configure the local priority.
Bgp default local-preference localpref
No bgp default local-preference
Parameter description]
Localpref is the default local priority configured. The value range is 0 ~ 4294967295.
Default condition]
The default local priority is 100. You can use the no bgp default local-preference command to restore the default local priority.
Command mode]
BGP protocol Configuration Mode
User Guide]
Different local priorities can be configured to affect BGP Route Selection.
Example]
The RTA and RTB routers in the same Autonomous Region are connected to the external autonomous region by using the X.25 and FrameRelay Protocols respectively. You can use this command to set the default local priority of RTB to 200. When the same route is used both through RTA and RTB, the routes that pass through RTB are prioritized.
Quidway (config-router-bgp) # bgp default local-preference 200
4.10.2 clear ip bgp
After the BGP policy or Protocol configuration changes, reset the BGP connection and the new policy takes effect.
Clear ip bgp {* | neighbor-address}
Parameter description]
The '*' parameter indicates all BGP connections. You can also specify the address neighbor-address of the BGP peer to reset the connection with a specific BGP peer.
Command mode]
Privileged user mode
Example]
After the new Keepalive interval and Holdtime interval are configured with the timer command, you need to clear all BGP connections for the new configuration to take effect.
Quidway # clear ip bgp *
4.10.3 default-information originate
Configure the BGP protocol to generate the default route.
[No] default-information originate
Default condition]
By default, no default route is generated for the BGP protocol.
Command mode]
BGP protocol Configuration Mode
Example]
Configure the BGP protocol to generate the default route.
Quidway (config-router-bgp) # default-information originate
4.10.4 default-metric
Configure the system's default metric.
Default-metric
No default-metric
Parameter description]
Metric is the specified MED, range: 1 ~ 4294967295.
Default condition]
The default metric is 100. You can use the no default-metric command to restore the system's default metirc.
Command mode]
BGP protocol Configuration Mode
User Guide]
When other conditions are the same, the system preferentially selects a smaller MED route as the external route of the autonomous system.
Example]
Routers RTA and RTB belong to AS100, and routers RTC belong to AS200. RTC is a partner of RTA and RTB. The network between RTA and RTC is X.25, and the network between RTB and RTC is Ethernet. You can configure the rtb med to 10. So that RTC selects the route sent by RTB first.
Quidway (config-router-bgp) # default-metric 10
4.10.5 ip address as-path access-list
Configure an AS regular expression.
Ip as-path access-list-number {permit | deny} as-regular-expression
No ip as-path access-list-number
Parameter description]
List-number is the number of the AS expression, range: 1 ~ 200;
As-regular-expression is an AS regular expression.
Command mode]
Global Configuration Mode
User Guide]
The configured AS regular expression can be used for BGP policies.
Example]
Configure an AS expression.
Quidway (config) # ip as-path access-list 10 permit 200,300
4.10.6 match as-path
Specifies the serial number of the AS regular expression matched in Routemap.
[No] match as-path list-number
Parameter description]
List-number is the number of the AS regular expression.