Huawei ENSP command Daquan

Experiments command ___ENSP

 

First, Spanning Tree STP

NOTE: The smaller the bridge priority value, the higher the priority is, by arranging the priority (cost of cost) may control the root bridge election. When the root bridge failure will be a new root bridge election, the root bridge when recovery re-election. By setting port priority will change the role of the port-side switch. When the non-root root switch port fails another port becomes a root port automatically

1, stp enable enable stp

2, STP stp

3, stp root primary as the root bridge

4, stp root secondary minor (root bridge)

5, display stp brief view stp information

6, display stp interface command to view the port STP state

7, display stp view the root bridge information

8, stp priority 8192 set a priority

9, stp por priority 16 Port Priority Review

10, display stp interface GigabitEthernet 0/0/9 view port information, priority, etc. ....

11, stp port priority 32 disposed port priority

12, display current-configuration View main configuration

13, stp cost 200000 modify the port cost value

 

Second, Spanning Tree RSTP

Note: the user terminal port is an edge port. RSTP port edge transition is calculated directly from the Discarding state to Forwarding state without passing through.

The edge port is directly connected with the user terminal, receives a BPDU will not under normal circumstances. However, if an attacker transmits forged BPDU packets to an edge port of a switch, the switch will automatically non-edge ports edge ports, and recalculates the spanning tree, so that network flapping. BPDU protection on the switch, you can prevent such attacks.

Network running RSTP protocol, by receiving a BPDU from the upstream apparatus and to maintain the root port Alternate port state switch. If link congestion or link failure, the switch can not receive a BPDU from the upstream device, the switch selects a root port. The original root port becomes a designated port and the blocked ports turn to the forwarding state, which will cause network loops. You can configure loop guard on the switch, to avoid this from happening.

 

1, stp mode rstp open rstp

2, display stp brief view of information rstp

3、        stp edged-port enable

4, stp bpdu-protection opening edge port protection

5, display stp brief view stp port information

6, stp loop-protection ring protection configuration

 

Third, routing configuration

NOTE: When a link fails, the communication link will not be achieved, if the static route is the network backup configuration is not affected. Note that, if the link is intact backup route in the routing table entries do not exist, only when the link fails to appear in the routing table backup route. Backup route priority must be lower than the priority of the link, otherwise it will reduce efficiency.

1, display ip interface brief view interface configuration

2, display ip routing-table routing table

3, ip route-static 10.0.23.0 24 10.0.13.3 configured static route (destination address / next hop)

4, ip route-static 10.0.3.0 24 10.0.12.1 preference 80 and back up static routes to configure the priority 80

5, ip route-static 0.0.0.0 0.0.0.0 10.0.23.2 preference 80 configured default route

 

Fourth, configure RIPv1 and RIPv2

1, rip 1 start rip protocol

2, network 10.0.0.0 network segment to rip the agreement

3, debugging rip 1 RIP commissioning open function, attention can execute the debugging command in the user view

4, display debugging Commissioning view the current information (user view)

5, terminal debugging debug opening function information displayed on the terminal screen

6, undo debugging rip <process-id> or undo debugging all closed transfer dynamometer

7, (rip 1) version 2 Configuration Protocol RIPv2

 

Five, RIPv2 route summarization and certification

1, rip 1 start rip protocol

2, [Huawei-rip-1] version 2 protocol start ripv2

3, rip summary-address IPadd 255.255.0.0 summary address (in the input interface configuration, adjacent routers view)

4, rip authentication-mode simple Huawei plain text authentication configuration

5, reset prior to clearing the password is wrong routing information learned ip routing-table statistics protocol rip (user mode)

6, rip authentication-mode md5 usual Huawei open MD5 authentication

Six single experiment 4-4 OSPF area configuration

1, ospf 1 router-id 10.0.1.1 configured router id enter ospf1

2, area 0 divided areas

3, network 10.0.1.0 0.0.0.255 notice

4, display ospf peer to check the neighbor state

5, display ospf peer brief summary of the neighbor state to view information

6, display ospf interface GigabitEthernet 0/0/0 to view the interface information (hello, dead time parameter)

7, ospf timer hello / dead 15 packets into the interface modification time

8, ip route-static 0.0.0.0 0.0.0.0 LoopBack 2 creates a default route

9, default-route-advertise the default routes into ospf

10, ospf dr-priority 100 dr modify the port priority (priority control modification dr / bdr elections)

 

Guess you like

Origin www.cnblogs.com/dfQi/p/11794920.html