显示标签为“huawei router configuration”的博文。显示所有博文
显示标签为“huawei router configuration”的博文。显示所有博文

2014年7月17日星期四

How to Configure NQA for Static IPv4 Routes



Applicability
This example applies to all versions and Huawei wireless routers.

Networking Requirements
NQA for static IPv4 routes can quickly detect network faults and control advertisement of static routes. As shown in Figure 1, RouterA connects to RouterB through GE2/0/0 and connects to RouterC through GE1/0/0. Two links are available from RouterA to RouterD: RouterA-->RouterB-->RouterD (primary link) and RouterA-->RouterC-->RouterD (backup link).Configure an NQA ICMP test intance on RouterA to detect the active link. When the active link becomes faulty, packets sent from RouterA to RouterD are switched to the standby link.
Figure 1 Networking diagram of configuring NQA for static IPv4 routes 

Procedure
1. Configure RouterA.
#
 sysname RouterA
#
interface GigabitEthernet1/0/0
 ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet2/0/0
 ip address 192.168.4.1 255.255.255.0
#
interface GigabitEthernet3/0/0
 ip address 192.168.6.1 255.255.255.0
#
ip route-static 192.168.2.0 255.255.255.0 192.168.1.2
ip route-static 192.168.3.0 255.255.255.0 192.168.4.2
ip route-static 192.168.5.0 255.255.255.0 192.168.1.2 preference 100  //Set the preference of static routes to 100 so that the static routes can be used as backup routes.
ip route-static 192.168.5.0 255.255.255.0 GigabitEthernet2/0/0 192.168.4.2 track nqa admin icmp  //Configure a static route to associate it with an NQA test instance.
#
nqa test-instance admin icmp  //Configure an NQA test instance named admin icmp.
 test-type icmp  //Set the test type to ICMP.
 destination-address ipv4 192.168.3.1  //Set the destination address of the NQA test instance to 192.168.3.1.
 frequency 10  //Set the interval between two NQA tests to 10s.
 probe-count 2  //Set the number of test probes of an NQA test instance to 2.
 start now  //Start the NQA test instance immediately.
#

2. Configure RouterB.
#
 sysname RouterB
#
interface GigabitEthernet1/0/0
 ip address 192.168.3.2 255.255.255.0
#
interface GigabitEthernet2/0/0
 ip address 192.168.4.2 255.255.255.0
#
ip route-static 192.168.5.0 255.255.255.0 192.168.3.1
ip route-static 192.168.6.0 255.255.255.0 192.168.4.1
#

3. Configure RouterC.
#
 sysname RouterC
#
interface GigabitEthernet1/0/0
 ip address 192.168.1.2 255.255.255.0
#
interface GigabitEthernet2/0/0
 ip address 192.168.2.1 255.255.255.0
#
ip route-static 192.168.5.0 255.255.255.0 192.168.2.2
ip route-static 192.168.6.0 255.255.255.0 192.168.1.1

4. Configure RouterD.
#
 sysname RouterD
#
interface GigabitEthernet1/0/0
ip address 192.168.3.1 255.255.255.0
#
interface GigabitEthernet2/0/0
ip address 192.168.2.2 255.255.255.0
#
interface GigabitEthernet3/0/0
ip address 192.168.5.1 255.255.255.0
#
ip route-static 192.168.1.0 255.255.255.0 192.168.2.1
ip route-static 192.168.4.0 255.255.255.0 192.168.3.2
ip route-static 192.168.6.0 255.255.255.0 192.168.3.2
ip route-static 192.168.6.0 255.255.255.0 192.168.2.1
#

5. Verify the configuration.
Run the display nqa results test-instance admin icmp command on RouterA to view the NQA test result. The command output displays "Lost packet ratio: 0 %", indicating that the link status is normal. Run the display ip routing-table command on RouterA to view the IP routing table. The routing table contains the static route with destination network segment 192.168.5.0/24 and next-hop address 192.168.4.2. There is no static route with preference 100 in the routing table.
Run the shutdown command in the view of GE1/0/0 or GE2/0/0 on RouterB to simulate a link failure. Run the display nqa results test-instance admin icmp command on RouterA to view the NQA test result. The command output displays "Completion:failed" and "Lost packet ratio: 100 %, indicating that a link failure has been detected. Then run the display ip routing-table command on RouterA to view the IP routing table. The routing table contains the static route with preference 100. There is no static route with destination network segment 192.168.5.0/24 and next-hop address 192.168.4.2. 

Configuration Notes
  • The static route associated with an NQA test instance is deleted from the routing table only when the NQA test fails. You can run the display nqa results command to view the NQA test result.
  • Before modifying the configuration of an NQA test instance, stop the NQA test instance.
  • If the static route associated with one NQA test instance is associated with another NQA test instance, the association between the static route and the former NQA test instance is removed.
  • Only the NQA ping test instance is used so that RouterA switches services based on the test result. There is no requirement for the peer device configuration.

The more information about technical support you can consult with our technician - Bill, and his e-mail address is as below:  
bill@huanetwork.com


More relate:

 



2014年6月16日星期一

How to Configure IS-IS IPv6 for Huawei Routers



Applicability
This example applies to all Huawei AR routers of V200R002C00 and later versions.
Networking Requirements
As shown in Figure 1:
  • RouterA, RouterB, RouterC, and RouterD belong to the same AS. The four routers need to run IS-IS to implement IPv6 interworking.
  • RouterA, RouterB, and RouterC belong to Area 10, and RouterD belongs to Area 20.
  • RouterA and RouterB are Level-1 routers, RouterC is a Level-1-2 router, and RouterD is a Level-2 router.
Figure 1 Networking diagram of configuring IS-IS IPv6
 

Procedure
1. Configure RouterA.
#
 sysname RouterA
#
 ipv6  //Enable IPv6 unicast forwarding.
#
isis 1  //Enable IS-IS process 1.
 is-level level-1  //Set the router as a Level-1 router.
 network-entity 10.0000.0000.0001.00  //Set the NET for IS-IS process 1.
 #
 ipv6 enable topology standard  //Enable the IPv6 capability for IS-IS process 1.
 #
#
interface GigabitEthernet1/0/0
 ipv6 enable  //Enable IPv6 on the interface.
 ipv6 address 10:1::2/64  //Configure a global unicast IPv6 address for the interface.
 isis ipv6 enable 1  //Enable the IPv6 capability for IS-IS process 1 on the interface.
#
Return

2. Configure RouterB.
#
 sysname RouterB
#
 ipv6
#
isis 1
 is-level level-1
 network-entity 10.0000.0000.0002.00  //Set the NET for IS-IS process 1.
 #
 ipv6 enable topology standard
 #
#
interface GigabitEthernet1/0/0
 ipv6 enable
 ipv6 address 10:2::2/64  //Configure a global unicast IPv6 address for the interface.
 isis ipv6 enable 1
#
return

3. Configure RouterC.

#
 sysname RouterC
#
 ipv6
#
isis 1
 network-entity 10.0000.0000.0003.00  //Set the NET for IS-IS process 1.
 #
 ipv6 enable topology standard
 #
#
interface GigabitEthernet0/0/0
 ipv6 enable
 ipv6 address 30::1/64  //Configure a global unicast IPv6 address for the interface.
 isis ipv6 enable 1
 isis circuit-level level-2  //Set the circuit type as Level-2, allowing only Level-2 adjacencies to be established on the interface.
#
interface GigabitEthernet1/0/0
 ipv6 enable
 ipv6 address 10:1::1/64  //Configure a global unicast IPv6 address for the interface.
 isis ipv6 enable 1
#
interface GigabitEthernet2/0/0
 ipv6 enable
 ipv6 address 10:2::1/64  //Configure a global unicast IPv6 address for the interface.
 isis ipv6 enable 1
#
return

4. Configure RouterD.

#
 sysname RouterD
#
 ipv6
#
isis 1
 is-level level-2  //Set the router as a Level-2 router.
 network-entity 20.0000.0000.0004.00  //Set the NET for IS-IS process 1.
 #
 ipv6 enable topology standard
 #
#
interface GigabitEthernet1/0/0
 ipv6 enable
 ipv6 address 30::2/64  //Configure a global unicast IPv6 address for the interface.
 isis ipv6 enable 1
#
interface GigabitEthernet2/0/0
 ipv6 enable
 ipv6 address 20::1/64  //Configure a global unicast IPv6 address for the interface.
 isis ipv6 enable 1
#
return

5. Verify the configuration.
Run the display isis route command on each router to view IS-IS routes.
Interfaces on RouterA, RouterB, RouterC, and RouterD can successfully ping each other.
Configuration Notes
  • IPv6 must be enabled in the system view and interface view.
  • The IPv6 capability must be enabled for IS-IS on interfaces.
  • When using the network-entity command to set a NET for an IS-IS process, configure the same area ID for routers in an area.

The more information about technical support you can consult with our technician - Bill, and his e-mail address is as below:  
bill@huanetwork.com

More related:

Example for Configuring the SNMP Function to Implement Communication Between the Device and the NMS
Example for Connecting Intranet Users to the Internet in Easy IP Mode
Example for Configuring the Device as a PPPoE Client to Connect Users to the Internet
How to Configure the PPPoE Client on Huawei AR1200?
Example for Connecting Intranet Users to the Internet in NAT Address Pool Mode


 

2014年5月23日星期五

Example for Configuring Communication Between VLANs Using VLANIF Interfaces



Huawei AR150&160&200&1200&2200&3200 Series Enterprise Routers Configuration Guide - Example for Configuring Communication Between VLANs Using VLANIF Interfaces

Networking Requirements
As shown in Figure 1, Ethernet 2/0/1 of the Router is connected to the uplink interface of SwitchA.
On SwitchA, the downlink interface Ethernet 2/0/1 is added to VLAN 10 and the downlink
interface Ethernet 2/0/2 is added to VLAN 20.
PC1 in VLAN 10 and PC2 in VLAN 20 need to communicate with each other

Figure 1 Network diagram for communication between VLANs through VLANIF interfaces

Configuration Roadmap
The configuration roadmap is as follows:
1. Add Ethernet interfaces to the VLAN.
2. Configure VLANIF interfaces.

Procedure
Step 1 Configure the Router.
# Create VLANs.
<Huawei> system-view
[Huawei] sysname Router
[Router] vlan batch 10 20
# Add interfaces to the VLANs.
[Router] interface ethernet 2/0/1
[Router-Ethernet2/0/1] port link-type trunk
[Router-Ethernet2/0/1] port trunk allow-pass vlan 10 20
[Router-Ethernet2/0/1] quit
# Assign IP addresses to the VLANIF interfaces.
[Router] interface vlanif 10
[Router-Vlanif10] ip address 10.10.10.1 24
[Router-Vlanif10] quit                   
[Router] interface vlanif 20
[Router-Vlanif20] ip address 20.20.20.1 24
[Router-Vlanif20] quit

Step 2 Configure SwitchA.
# Create VLANs.
<Huawei> system-view
[Huawei] sysname SwitchA
[SwitchA] vlan batch 10 20
# Add interfaces to the VLANs.
[SwitchA-Ethernet2/0/1] port link-type access
[SwitchA-Ethernet2/0/1] port default vlan 10
[SwitchA-Ethernet2/0/1] quit
[SwitchA] interface ethernet 2/0/2
[SwitchA-Ethernet2/0/2] port link-type access
[SwitchA-Ethernet2/0/2] port default vlan 20
[SwitchA-Ethernet2/0/2] quit
[SwitchA] interface ethernet 2/0/3
[SwitchA-Ethernet2/0/3] port link-type trunk
[SwitchA-Ethernet2/0/3] port trunk allow-pass vlan 10 20
[SwitchA-Ethernet2/0/3] quit

Step 3 Verify the configuration.
On PC1 in VLAN 10, configure the default gateway address as the IP address of VLANIF 10 (in this example: 10.10.10.1/24).
On PC2 in VLAN 20, configure the default gateway address as the IP address of VLANIF 20 (in this example: 20.20.20.1/24).
After the configuration is complete, PC1 in VLAN 10 can communicate with PC2 in VLAN 20.
----End

Configuration Files
Configuration file of the Router
#
sysname Router
#
vlan batch 10 20
#
interface Vlanif10
ip address 10.10.10.1 255.255.255.0
#
interface Vlanif20
ip address 20.20.20.1 255.255.255.0
#
interface Ethernet2/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
return
Configuration file of SwitchA
#
sysname SwitchA
#
vlan batch 10 20
#
interface Ethernet2/0/1
port link-type access
port default vlan 10
#
interface Ethernet2/0/2
port link-type access
port default vlan 20
#
interface Ethernet2/0/3
port link-type trunk
port trunk allow-pass vlan 10 20
#
Return

More related: