当前位置:网站首页>OSPF configuration command of Huawei equipment
OSPF configuration command of Huawei equipment
2022-07-06 05:47:00 【Python's path to immortality】
[Huawei]ospf 1 // start-up OSPF process , Get into OSPF View
[Huawei]ospf 1 router-id 10.1.1.1 // dynamic OSPF process , Get into OSPF View , Manual input router-id
[Huawei-ospf-1]area 0 // Create and enter OSPF Area view ( Backbone area )
[Huawei-ospf-1-area-0.0.0.0]network 10.0.1.0 0.0.0.255 // Configure the network segments contained in the area
[Huawei-GigabitEthernet0/0/1]ospf enable 1 area 0 // Enable... On the interface OSPF
[Huawei-ospf-1-area-0.0.0.0]vlink-peer 10.1.1.2 // Create and configure virtual connections , You also need to configure this command at the other end of the virtual connection
[Huawei-ospf-1]flooding-control number 50 timer-interval 30 // The configuration is right OSPF to update LSA Flood limit , Default flooding update LSA The default value for the number of is 50, Flood update LSA The time interval is 30 second .
[Huawei]display ospf peer // see OSPF Neighbor information
[Huawei]display ospf interface // see OSPF Interface information
[Huawei]display ospf routing // see OSPF Routing table information
[Huawei]display ospf lsdb // see OSPF Of LSDB Information
[Huawei-ospf-1]retransmission-limit 30 // To configure OSPF Retransmission restriction function
[Huawei-GigabitEthernet0/0/1]ospf mtu-enable // Enable interface sending DD Fill in the message MTU value , At the same time, it will also check the neighbors DD The message carries MTU Whether it exceeds the local MTU value , The default interface sends DD The message MTU The value is 0
[Huawei]display ospf retrans-queue // see OSPF Retransmit list
[Huawei-GigabitEthernet0/0/1]ospf network-type broadcast // To configure OSPF The network type of the interface , The network type of the default Ethernet interface is broadcast
[Huawei-GigabitEthernet0/0/1]ospf network-type nbma
[Huawei-GigabitEthernet0/0/1]ospf network-type p2mp
[Huawei-GigabitEthernet0/0/1]ospf network-type p2p
[Huawei-GigabitEthernet0/0/1]ospf network-type p2mp -ospf p2mp-mask-ignore // Configure in P2MP Ignore the check of netmask on the network
[Huawei-ospf-1]filter-lsa-out peer 10.1.1.1 all // Configure in P2MP Send to in the network LSA To filter
[Huawei-GigabitEthernet0/0/1]ospf network-type nbma -ospf timer poll 120 // stay NBMA Configure the time interval for sending polling messages on the interface , Default is 120 second
[Huawei-ospf-1]peer 10.1.1.1 // To configure NBMA Network neighbors
[Huawei]display ospf nexthop // see OSPF Next hop information
[Huawei]display ospf routing router-id 10.0.1.1 // see OSPF Routing table information for
[Huawei]display ospf interface all // see OSPF Interface information
[Huawei-ospf-1-area-0.0.0.1]stub // Configure the current area as STUB Area
[Huawei-ospf-1-area-0.0.0.1]stub no-summary // Configure the current area as STUB Area , prohibit ABR towards Stub Send in the area Type-3 LSA(Summary LSA)
[Huawei-ospf-1-area-0.0.0.1]stub -default-cost 1 // Configuration sent to Stub The cost of region default routing , The default value is 1
[Huawei]display ospf abr-asbr // see OSPF ABR And ASBR Information
[Huawei-ospf-1-area-0.0.0.2]nssa // Configure the current area as NSSA Area
[Huawei-ospf-1-area-0.0.0.2]nssa default-route-advertise // stay ASBR The configuration on the generates the default Type7 LSA To NSSA Area
[Huawei-ospf-1-area-0.0.0.2]nssa flush-waiting-timer 1 // The generation aging time is set to the maximum (3600 second ) Of Type5 LSA, This LSA You can clear the useless on other switches in time Type5 LSA
[Huawei-ospf-1-area-0.0.0.2]nssa no-import-route // When ASBR At the same time ABR when , send OSPF adopt import-route The external route introduced by the command is not announced to NSSA Area
[Huawei-ospf-1-area-0.0.0.2]nssa no-summary // prohibit ABR towards NSSA Send in the area Summary LSA(Type3 LSA)
[Huawei-ospf-1-area-0.0.0.2]nssa set-n-bit // The exchange opportunity is synchronized with the neighbor switch at DD Set in the message N-bit The sign of bit
[Huawei-ospf-1-area-0.0.0.2]nssa translator-always // When NSSA There are more than one in the area ABR when , The system will automatically select one according to the rules ABR As a converter ( Usually NSSA Area selection Router ID The largest equipment ), take Type7 LSA Convert to Type5 LSA. This command can change a ABR Specify as converter . If you need to specify two ABR Load sharing , Can be configured by translator-always To specify that two converters work at the same time . If you need a fixed converter , Prevent... Caused by converter changes LSA Re flooding , You can use this command to specify .
[Huawei-ospf-1-area-0.0.0.2]nssa translator-interval 100 // Used for converter switching process , Ensure smooth switching , The default interval of the parameter should be greater than the flooding time
[Huawei-ospf-1-area-0.0.0.2]default-cost 1 // To configure ABR Send to NSSA Regional Type3 LSA The cost of the default route , Default is 1
[Huawei-GigabitEthernet0/0/1]ospf cost 1 // Set up OSPF The cost value of the interface
[Huawei-ospf-1]bandwidth-reference 100 // Configure bandwidth reference value
[Huawei-ospf-1]maximum load-balancing 8 // Configure the maximum number of equivalent routes
[Huawei-ospf-1]nexthop 10.1.1.1 weight 1 // To configure OSPF Load sharing priority ,weight The smaller the value. , The higher the routing priority ,weight The default value of is 255, Indicates load sharing between equivalent routes , Don't prioritize
[Huawei-ospf-1]undo rfc1583 compatible // take RFC1583 configure RFC2328, To configure OSPF Routing rules of domain , The default switch supports RFC1583 Routing rules for
[Huawei-ospf-1]import-route *** // To configure OSPF Introduce routing of other protocols
[Huawei-ospf-1]default *** // To configure OSPF Relevant parameters when introducing routing , OSPF The default metric for introducing external routes is 1, The type of external route introduced is Type2, Set the default tag value to 1
[Huawei-ospf-1]default-route-advertise // Advertise the default route to OSPF Routing area
[Huawei-ospf-1]default-route-advertise always // Whether or not there is an active non native OSPF The default route of the process , Will generate and publish a LSA
[Huawei-ospf-1]default-route-advertise permit-calculate-other // After publishing the default route , It is still allowed to calculate the default routes published by other switches
[Huawei-ospf-1-area-0.0.0.0]abr-summary 10.1.1.0 255.255.0.0 // To configure OSPF Of ABR Route aggregation
[Huawei-ospf-1]asbr-summary 10.1.1.0 255.255.0.0 // To configure OSPF Of ASBR Route aggregation
[Huawei-ospf-1]filter-policy 2000 import // Configure to filter the received routes
[Huawei-ospf-1]filter-policy ip-prefix 16 import
[Huawei-ospf-1]filter-policy acl-name A1 import
[Huawei-ospf-1]filter-policy 2000 export // Configure filtering for published routes
[Huawei-ospf-1]filter-policy ip-prefix 16 export
[Huawei-ospf-1]filter-policy acl-name A1 export
[Huawei-GigabitEthernet0/0/1]ospf filter-lsa-out all // Configure the LSA To filter
[Huawei-ospf-1]mesh-group enable // Can make Mesh-Group characteristic , When there is a parallel link between the switch and the neighbor , Can make Mesh-Group characteristic , It can reduce the pressure of the link
[Huawei-ospf-1]lsdb-overflow-limit 100 // To configure LSDB in External LSA Maximum number of
[Huawei]display ospf asbr-summary // see OSPF ASBR Aggregate information
[Huawei]bfd // Configure global BFD Function and enter the overall situation BFD View
[Huawei-ospf-1]bfd all-interfaces enable // open OSPF BFD Characteristic switch , establish BFD conversation
[Huawei-ospf-1]bfd all-interfaces min-rx-interval 10 min-tx-interval 10 detect-multiplier 10 // Specify that you need to create BFD The parameter values of the session
[Huawei-GigabitEthernet0/0/1]ospf bfd block // Prevent interfaces from being created dynamically BFD conversation
[Huawei-GigabitEthernet0/0/1]ospf bfd enable // Open the interface BFD Characteristic switch , establish BFD conversation
[Huawei-GigabitEthernet0/0/1]ospf bfd min-rx-interval 10 min-tx-interval 10 detect-multiplier 10 // Appoint BFD The parameter value of the session
[Huawei]display ospf bfd session all // see OSPF And BFD Linked session information
[Huawei-ospf-1]frr // Get into OSPF IP FRR View
[Huawei-ospf-1-frr]loop-free-alternate // Can make OSPF IP FRR characteristic , Generate an acyclic backup link
[Huawei-ospf-1-frr]frr-policy route a1 // To configure OSPF IP FRR Filtering strategy
[Huawei-ospf-1]bfd all-interfaces frr-binding // To configure OSPF Under the process IP FRR and BFD binding
[Huawei-GigabitEthernet0/0/1]ospf bfd frr-binding // Configure IP FRR and BFD binding
[Huawei-GigabitEthernet0/0/1]ospf frr block // Prohibit on the specified interface OSPF IP FRR function
[Huawei-ospf-1]prefix-priority critical ip-prefix 1 // To configure OSPF Convergence priority of routing
[Huawei-ospf-1]prefix-priority high ip-prefix 1
[Huawei-ospf-1]prefix-priority medium ip-prefix 1
[Huawei-GigabitEthernet0/0/1]ospf timer hello 10 // Configure the interface to send Hello Time interval of message . default ,P2P、Broadcast Interface type Hello The value of the time interval of the message is 10 second ;P2MP、NBMA Interface type Hello The value of the time interval of the message is 30 second ; And the failure time of neighbors on the same interface is Hello At intervals 4 times
[Huawei-GigabitEthernet0/0/1]ospf timer dead 40 // Set the failure time of adjacent neighbors , default ,P2P、Broadcast Type interface OSPF The neighbor failure time is 40 second ,P2MP、NBMA Type interface OSPF The neighbor failure time is 120 second ; And the failure time on the same interface is Hello At intervals 4 times
[Huawei-GigabitEthernet0/0/1]ospf smart-discover // Configuration interface Smart-discover function , Neighbor status in the network , perhaps DR、BDR When something changes , Equipment does not have to wait Hello When the timer arrives, you can immediately take the initiative to send it to your neighbors Hello message . So as to improve the speed of building neighbors , Achieve the goal of rapid network convergence
[Huawei-ospf-1]lsa-originate-interval intelligent-timer 5000 500 1000 other-type 5 // To configure LSA Update interval
[Huawei-ospf-1]lsa-arrival-interval 10 // To configure LSA Time interval of reception
[Huawei-ospf-1]lsa-arrival-interval intelligent-timer 1000 500 500 // To configure LSA Time interval of reception , Enable intelligent timer intelligent-timer
[Huawei-ospf-1]spf-schedule-interval 1 // Set up SPF Calculation interval
[Huawei-ospf-1]spf-schedule-interval intelligent-timer 10000 500 1000 // Set up SPF Calculation interval , Enable intelligent timer intelligent-timer
[Huawei-ospf-1]opaque-capability enable // Can make opaque-LSA characteristic , because OSPF Pass through Type-9 class LSA Yes OSPF GR Support , So you need to enable it first OSPF Of opauqe-LSA characteristic
[Huawei-ospf-1]graceful-restart // Can make OSPF GR characteristic
[Huawei-ospf-1]graceful-restart period 120 // To configure Restarter End GR The cycle of , Default is 120 second
[Huawei-ospf-1]graceful-restart planned-only // To configure Restarter Only support Planned GR, Default support Planned GR and Unplanned GR
[Huawei-ospf-1]graceful-restart partial // To configure Restarter Support Partial GR, Default support Totally GR
[Huawei-ospf-1]graceful-restart helper-role acl-name A1 // To configure Helper End GR Of acl Filtering strategy
[Huawei-ospf-1]graceful-restart helper-role ip-prefix 16 // To configure Helper End GR Of ip-prefix Filtering strategy
[Huawei-ospf-1]graceful-restart helper-role ignore-external-lsa // To configure Helper Not external to the autonomous system LSA(AS-external LSA) Inspection
[Huawei-ospf-1]graceful-restart helper-role planned-only // Used to configure Helper Only support Planned GR
[Huawei-ospf-1]graceful-restart helper-role never // Configuration switch does not support Helper Pattern
[Huawei]display ospf graceful-restart // see OSPF GR Information
[Huawei-ospf-1]preference 10 // To configure OSPF Priority of the agreement , Default is 10
[Huawei-ospf-1]preference ase 150 // Set up AS-External The priority of the route , Default is 150
[Huawei-ospf-1]preference route-policy 1 // Set the priority of a specific route through the routing policy
[Huawei-GigabitEthernet0/0/1]ospf trans-delay 1 // Configure interface transmission LSA Delay time , Default is 1 second
[Huawei-GigabitEthernet0/0/1]ospf timer retransmit 5 // Set adjacent switch retransmission LSA The interval of , Default is 5 second
[Huawei-ospf-1]stub-router // To configure Stub Router , The default is Stub The time interval of the router is 500 second
[Huawei-ospf-1]silent-interface all // prohibit OSPF The interface sends and receives protocol messages , It only works on interfaces that have been enabled by this process , Interfaces to other processes do not work
[Huawei]ospf valid-ttl-hops 255 // To configure OSPF GTSM Functions and what needs to be tested TTL value
[Huawei-ospf-1-area-0.0.0.0]authentication-mode simple cipher [email protected] // To configure OSPF Verification mode of area ( Simple verification )
[Huawei-ospf-1-area-0.0.0.0]authentication-mode hmac-md5 // To configure OSPF Verification ciphertext mode of region
[Huawei-ospf-1-area-0.0.0.0]authentication-mode keychain a1 // To configure OSPF Regional Keychain Verification mode
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode simple cipher [email protected] // To configure OSPF Verification mode of interface ( Simple verification )
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode hmac-md5 // To configure OSPF Verification ciphertext mode of interface
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode null // incorrect OSPF Interface to verify
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode keychain a1 // To configure OSPF Interface Keychain Verification mode
[Huawei]display ospf request-queue // see OSPF Request list
[Huawei]display ospf retrans-queue // see OSPF Retransmit list
[Huawei]display ospf error // see OSPF Error messages for
[Huawei]ospf mib-binding 1 // To configure OSPF MIB binding
[Huawei]snmp-agent trap enable feature-name ospf // open OSPF Alarm switch of the module
[Huawei-ospf-1]enable log // Enable log information
[Huawei]display ospf brief // see OSPF MIB The binding information
[Huawei]display snmp-agent trap feature-name ospf all // Command view OSPF All alarm information of the module
reset ospf 1 counters // eliminate OSPF Counter
reset ospf 1 counters neighbor eliminate OSPF Counter and information of neighbors on the specified interface
reset ospf redistribution // Reintroduce routing
reset ospf process // restart OSPF process
边栏推荐
- Text classification still stays at Bert? The dual contrast learning framework is too strong
- 自建DNS服务器,客户端打开网页慢,解决办法
- Note the various data set acquisition methods of jvxetable
- Some easy-to-use tools make your essay style more elegant
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- Classes and objects (I) detailed explanation of this pointer
- [QNX hypervisor 2.2 user manual]6.3.3 using shared memory (shmem) virtual devices
- First knowledge database
- The digital economy has broken through the waves. Is Ltd a Web3.0 website with independent rights and interests?
- How can large websites choose better virtual machine service providers?
猜你喜欢
无代码六月大事件|2022无代码探索者大会即将召开;AI增强型无代码工具推出...
Easy to understand IIC protocol explanation
Market development prospect and investment risk assessment report of China's humidity sensor industry from 2022 to 2028
Station B Liu Erden softmx classifier and MNIST implementation -structure 9
28io stream, byte output stream writes multiple bytes
Embedded interview questions (IV. common algorithms)
类和对象(一)this指针详解
大型网站如何选择比较好的云主机服务商?
Yunxiaoduo software internal test distribution test platform description document
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
随机推荐
Self built DNS server, the client opens the web page slowly, the solution
Sequoiadb Lake warehouse integrated distributed database, June 2022 issue
Rustdesk builds its own remote desktop relay server
First knowledge database
P2802 go home
Station B Liu Erden - linear regression and gradient descent
[Tang Laoshi] C -- encapsulation: classes and objects
通讯录管理系统链表实现
Classes and objects (I) detailed explanation of this pointer
Note the various data set acquisition methods of jvxetable
B站刘二大人-线性回归 Pytorch
Text classification still stays at Bert? The dual contrast learning framework is too strong
ArcGIS application foundation 4 thematic map making
Go language -- language constants
Construction of yolox based on paste framework
JS array list actual use summary
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
清除浮动的方式
Demander le Code de texte standard correspondant à un centre de travail dans l'ordre de production
[string] palindrome string of codeup