2 configuration examples of ipv6 – PLANET XGS3-24042 User Manual

Page 202

Advertising
background image

22-39

address 192.168.2.1 255.255.255.0 in VLAN2.

3. Configure two VLANs on Switch2, respectively VLAN2 and VLAN3.

4. Configure IPv4 address 192.168.2.2 255.255.255.0 in VLAN2 of Switch2, and configure IPv4

address 192.168.3.1 255.255.255.0 in VLAN3.

5. The IPv4 address of PC1 is 192.168.1.100 255.255.255.0, and the IPv4 address of PC2 is

192.168.3.100 255.255.255.0.

6. Configure static routing 192.168.3.0/24 on Switch1, and configure static routing 192.168.1.0/24 on

Switch2.

7. Ping each other among PCs.

Note: First make sure PC1 and Switch1 can access each other by ping, and PC2 and Switch2 can access

each other by ping.

The configuration procedure is as follows:

Switch1(config)#interface vlan 1

Switch1(Config-if-Vlan1)#ip address 192.168.1.1 255.255.255.0

Switch1(config)#interface vlan 2

Switch1(Config-if-Vlan2)#ip address 192.168.2.1 255.255.255.0

Switch1(Config-if-Vlan2)#exit

Switch1(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2

Switch2(config)#interface vlan 2

Switch2(Config-if-Vlan2)#ip address 192.168.2.2 255.255.255.0

Switch2(config)#interface vlan 3

Switch2(Config-if-Vlan3)#ip address 192.168.3.1 255.255.255.0

Switch2(Config-if-Vlan3)#exit

Switch2(config)#ip route 192.168.1.0 255.255.255.0 192.168.2.1

22.2.3.2 Configuration Examples of IPv6

Example 1:

Figure 22-2 IPv6 configuration example

The user’s configuration requirements are: Configure IPv6 address of different network segments on Switch1

and Switch2, configure static routing and validate reachability using ping6 function.

Switch2

Switch1

PC2

PC1

Advertising
This manual is related to the following products: