< Home

Example for Configuring IPv6 Static Routes

Networking requirements

Figure 1 shows an IPv6 network. PC1, PC2, and PC3 are on different network segments, and are connected through SwitchA, SwitchB, and SwitchC. Any two PCs must be connected using static routes to communicate with each other without using dynamic routing protocols.
Figure 1 Configuring IPv6 static routes

Configuration Roadmap

The configuration roadmap is as follows:

  1. Create VLANs, add interfaces to the VLANs, and assign IPv6 addresses to VLANIF interfaces so that neighboring devices can communicate with each other.
  2. Configure an IPv6 default gateway on each PC, and configure IPv6 static routes or default static routes on each Switch so that any two PCs on different network segments can communicate with each other.

Procedure

  1. Configure VLANs to which interfaces belong. The following example configures SwitchA. The configurations of SwitchB and SwitchC are similar to the configuration of SwitchA.
    1. Choose Configuration > Basic Services > Interface Settings > Service Interface Setting. Click Connect to PC.
    2. Select GE0/0/2 under Step 2: Select Interface, and set Interface Status and Default VLAN under Step 3: Configure Interface to ON and 10, as shown in Figure 2. You do not need to configure other parameters under Step 3: Configure Interface.

      Figure 2 Connecting an interface to a PC

    3. Click Apply. In the dialog box that is displayed, click OK.
    4. Click Connect to Switch, select GE0/0/1 under Step 2: Select Interface, and set Interface Status, Allowed VLANs, and Auto VLAN Creation under Step 3: Configure Interface to ON, 20, and OFF, as shown in Figure 3. You do not need to configure other parameters under Step 3: Configure Interface.

      Figure 3 Connecting an interface to a switch

    5. Click Apply. In the dialog box that is displayed, click OK.
  2. Configure an IP address for each VLANIF interface. The following example configures SwitchA. The configurations of SwitchB and SwitchC are similar to the configuration of SwitchA.
    1. Choose Configuration > Basic Services > VLAN in the navigation tree to open the VLAN configuration page.
    2. Click Create and set parameters, as shown in Figure 4.

      Configure GE0/0/2:

      • Set VLAN ID to 10.
      • Select Create VLANIF.
      • Set IPv6 address/Prefix length to fc00:0:0:2001::1/64.
      • Click Add Interface, click Select Interface to open the Add Interface page, select GE0/0/2, and click OK.

      Configure GE0/0/1:

      • Set VLAN ID to 20.
      • Select Create VLANIF.
      • Set IPv6 address/Prefix length to fc00:0:0:2010::1/64.
      • Click Add Interface, click Select Interface to open the Add Interface page, select GE0/0/1, and click OK.
      Figure 4 Configuring a VLANIF interface



    3. Set the parameters and click OK.
  3. Configure IPv6 addresses for the PCs and default gateway addresses.

    Assign IPv6 addresses to the PCs, and set the default gateway address of PC1, PC2, and PC3 to fc00:0:0:2001::1, fc00:0:0:2002::1, and fc00:0:0:2003::1 respectively.

  4. Configure static routes. The following example configures SwitchA. The configurations of SwitchB and SwitchC are similar to the configuration of SwitchA.
    1. Choose Configuration > Basic Services > Static Routes and click the IPv6 Static Routes tab.
    2. Click Add and set parameters according to Table 1, as shown in Figure 5.

      Table 1 Static route list

      Switch

      Destination IPv6 Address

      Destination IPv6 Prefix Length

      Next Hop Address

      SwitchA

      ::

      0

      fc00:0:0:2010::2

      SwitchB

      fc00:0:0:2001::

      64

      fc00:0:0:2010::1

      SwitchB

      fc00:0:0:2003::

      64

      fc00:0:0:2020::2

      SwitchC

      ::

      0

      fc00:0:0:2020::1

      Figure 5 Configuring static routes

    3. Set the parameters and click .

Operation Result

The following example displays the configuration of SwitchA. You can also use this method to view the configurations of SwitchB and SwitchC.

  1. Choose Configuration > Basic Services > Static Routes > IPv6 Static Routes to view routing information, as shown in Figure 6.

    Figure 6 Displaying routing information

  2. PC1 can communicate with PC2 and PC3.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >