Networking requirements
Figure 9-43 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 9-43 Configuring IPv6 static routes
Configuration Roadmap
The configuration
roadmap is as follows:
- Create VLANs, add interfaces to the VLANs, and assign IPv6 addresses
to VLANIF interfaces so that neighboring devices can communicate with
each other.
- 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
- Configure VLANs to which interfaces belong. The following
example configures SwitchA. The configurations of SwitchB and SwitchC
are similar to the configuration of SwitchA.
- Choose . Click Connect to PC.
- 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 9-44. You do not need to configure other
parameters under Step 3: Configure Interface.
Figure 9-44 Connecting an interface to a PC
- Click Apply. In the dialog box
that is displayed, click OK.
- 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 9-45. You do not need to configure other parameters
under Step 3: Configure Interface.
Figure 9-45 Connecting an interface to a switch
- Click Apply. In the dialog box
that is displayed, click OK.
- 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.
- Choose in the navigation tree to open the VLAN configuration
page.
- Click Create and set parameters,
as shown in Figure 9-46.
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 9-46 Configuring a VLANIF interface
- Set the parameters and click OK.
- 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.
- Configure static routes. The following example configures
SwitchA. The configurations of SwitchB and SwitchC are similar to
the configuration of SwitchA.
- Choose and click the IPv6 Static Routes tab.
- Click Add and set parameters
according to Table 9-2, as shown in Figure 9-47.
Table 9-2 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 9-47 Configuring static routes
- 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.
Choose to view routing information, as shown
in Figure 9-48.
Figure 9-48 Displaying routing information
- PC1 can communicate with PC2 and PC3.