Subnet 10.0.0.0/8 into 1024 networks • Configure IPv6 alongside IPv4
Imagine you are a network engineer at a large Internet Service Provider (ISP). Your company has been allocated the Class A network 10.0.0.0/8 and needs to divide it into 1024 subnets to serve different regions and customers. Each subnet must support thousands of hosts. Additionally, the company is rolling out IPv6 alongside IPv4 (dual-stack) to future-proof the infrastructure.
In this practical you will calculate the subnets, build a topology in Packet Tracer using the first 3 subnets, and configure both IPv4 and IPv6 addressing on the router, switch, and PCs. This builds on the Class B subnetting concepts from Practical 5 and introduces IPv6 dual-stack configuration.
You have been assigned the Class A network:
10.0.0.0255.0.0.0 (/8)How many host bits must you borrow to create at least 1024 subnets?
11111111.11111111.11000000.00000000Work out the following from the /18 subnet mask:
| Question | Your Answer |
|---|---|
| Remaining host bits | |
| Total addresses per subnet (2?) | |
| Usable hosts per subnet (2? − 2) |
Fill in the details for the first 4 subnets and the last subnet (1024th). With 1024 subnets we cannot list them all — but the pattern is the same throughout.
| Subnet | Network Address | First Usable Host | Last Usable Host | Broadcast Address |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 1024 |
We will build a topology using the first 3 subnets only (subnets 1, 2, and 3). This keeps the lab manageable while demonstrating the same concepts. We use a Router-on-a-Stick design with VLANs, just like Practical 5.
Click on the Switch, go to the CLI tab, and enter the following configuration. This creates 3 VLANs (one per subnet), assigns PC ports to the correct VLAN, and sets up a trunk link to the router.
enable
configure terminal
hostname ISP-Switch
vlan 10
name Subnet_1
vlan 20
name Subnet_2
vlan 30
name Subnet_3
vlan 10 — creates VLAN 10 for Subnet 1 (10.0.0.0/18).name Subnet_1 — gives the VLAN a readable label.interface range FastEthernet0/1-2
switchport mode access
switchport access vlan 10
!
interface range FastEthernet0/3-4
switchport mode access
switchport access vlan 20
!
interface range FastEthernet0/5-6
switchport mode access
switchport access vlan 30
interface range FastEthernet0/1-2 — selects both ports for Subnet 1 PCs.switchport mode access — sets the port as an access port (single VLAN).switchport access vlan 10 — assigns these ports to VLAN 10.interface GigabitEthernet0/1
switchport mode trunk
end
write memory
Click on the Router, go to the CLI tab, and create 3 sub-interfaces — one per VLAN — with IPv4 addresses. Each sub-interface acts as the default gateway for its subnet.
enable
configure terminal
hostname ISP-Router
!
interface GigabitEthernet0/0
no shutdown
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 10.0.0.1 255.255.192.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 10.0.64.1 255.255.192.0
!
interface GigabitEthernet0/0.30
encapsulation dot1Q 30
ip address 10.0.128.1 255.255.192.0
encapsulation dot1Q 10 — maps this sub-interface to VLAN 10 (802.1Q tagging).ip address 10.0.0.1 255.255.192.0 — assigns the first usable host address in Subnet 1 as the gateway. PCs in Subnet 1 will use 10.0.0.1 as their default gateway.end
write memory
Now we add IPv6 addresses to the same router sub-interfaces that already have IPv4 addresses. This is called dual-stack — both protocols run simultaneously on the same interfaces. Devices can communicate using either IPv4 or IPv6.
| VLAN | IPv6 Network | Router Gateway (::1) |
|---|---|---|
| 10 (Subnet 1) | 2001:DB8:ACAD:1::/64 | 2001:DB8:ACAD:1::1 |
| 20 (Subnet 2) | 2001:DB8:ACAD:2::/64 | 2001:DB8:ACAD:2::1 |
| 30 (Subnet 3) | 2001:DB8:ACAD:3::/64 | 2001:DB8:ACAD:3::1 |
By default, Cisco routers do not route IPv6 traffic. You must enable it first:
enable
configure terminal
ipv6 unicast-routing
ipv6 unicast-routing — enables the router to forward IPv6 packets between interfaces. Without this command, the router will accept IPv6 addresses on interfaces but will not route traffic between them.interface GigabitEthernet0/0.10
ipv6 address 2001:DB8:ACAD:1::1/64
!
interface GigabitEthernet0/0.20
ipv6 address 2001:DB8:ACAD:2::1/64
!
interface GigabitEthernet0/0.30
ipv6 address 2001:DB8:ACAD:3::1/64
ipv6 address 2001:DB8:ACAD:1::1/64 — assigns an IPv6 address to the sub-interface. Notice this is in addition to the IPv4 address that was already configured — both coexist.::1 at the end means the interface ID is 0000:0000:0000:0001 — we use ::1 as the gateway by convention, similar to .1 in IPv4.end
write memory
show ipv6 interface brief on the router to confirm all three sub-interfaces show their IPv6 addresses and are in “up/up” status.
Assign both IPv4 and IPv6 static addresses to each PC. Go to each PC → Desktop → IP Configuration.
| PC | Subnet | IPv4 Address | Subnet Mask | Default Gateway | Switch Port |
|---|---|---|---|---|---|
| PC1 | 1 | 10.0.0.2 | 255.255.192.0 | 10.0.0.1 | Fa0/1 |
| PC2 | 1 | 10.0.0.3 | 255.255.192.0 | 10.0.0.1 | Fa0/2 |
| PC3 | 2 | 10.0.64.2 | 255.255.192.0 | 10.0.64.1 | Fa0/3 |
| PC4 | 2 | 10.0.64.3 | 255.255.192.0 | 10.0.64.1 | Fa0/4 |
| PC5 | 3 | 10.0.128.2 | 255.255.192.0 | 10.0.128.1 | Fa0/5 |
| PC6 | 3 | 10.0.128.3 | 255.255.192.0 | 10.0.128.1 | Fa0/6 |
On the same IP Configuration screen, scroll down to the IPv6 Configuration section. Select Static and enter:
| PC | IPv6 Address | Prefix Length | IPv6 Gateway |
|---|---|---|---|
| PC1 | 2001:DB8:ACAD:1::10 | /64 | 2001:DB8:ACAD:1::1 |
| PC2 | 2001:DB8:ACAD:1::11 | /64 | 2001:DB8:ACAD:1::1 |
| PC3 | 2001:DB8:ACAD:2::10 | /64 | 2001:DB8:ACAD:2::1 |
| PC4 | 2001:DB8:ACAD:2::11 | /64 | 2001:DB8:ACAD:2::1 |
| PC5 | 2001:DB8:ACAD:3::10 | /64 | 2001:DB8:ACAD:3::1 |
| PC6 | 2001:DB8:ACAD:3::11 | /64 | 2001:DB8:ACAD:3::1 |
::10 and ::11 (hexadecimal 16 and 17 in decimal) for PCs to leave room for other infrastructure addresses like ::1 (router), ::2 (future server), etc. Any valid host address in the /64 subnet would work.
Open the Command Prompt on PC1 and ping PC2 (same subnet):
ping 10.0.0.3
This should succeed immediately — both PCs are in the same VLAN.
From PC1 (Subnet 1), ping PC3 in Subnet 2:
ping 10.0.64.2
This traffic goes: PC1 → Switch (VLAN 10) → Router → Switch (VLAN 20) → PC3.
ping 10.0.128.2 (Subnet 1 → Subnet 3)ping 10.0.128.3 (Subnet 2 → Subnet 3)ping 10.0.0.2 (Subnet 3 → Subnet 1)From PC1, ping PC2 using IPv6:
ping 2001:DB8:ACAD:1::11
From PC1 (Subnet 1), ping PC3 in Subnet 2 using IPv6:
ping 2001:DB8:ACAD:2::10
More IPv6 cross-subnet tests:
ping 2001:DB8:ACAD:3::10 (Subnet 1 → Subnet 3)ping 2001:DB8:ACAD:3::11 (Subnet 2 → Subnet 3)On the router CLI, run both commands:
show ip interface brief
show ipv6 interface brief
You should see all 3 sub-interfaces with status up/up and their correct IPv4 and IPv6 addresses.
ipconfig (IPv4) and ipconfig /all (IPv6)show vlan brief to confirm port-to-VLAN mappingshow ip interface brief and show ipv6 interface briefipv6 unicast-routing is enabled (run show running-config | include ipv6)ipv6 unicast-routing? What happens if you forget it?In this practical you have:
ping for both IPv4 and IPv6