- VSLM setup: LAN2 -> LAN1 -> LAN3 -> LAN4 -> R/1 to R/2
Given 192.168.5.0/24…
LAN2 first.
- LAN2 requires 64 hosts, consider 6 borrowed bits means 2^6 - 2 = 62 hosts… not enough.
- Consider 7 borrowed bits on the host side, 2^7 - 2 = 126 hosts
- That means 1 borrowed bits on network side = /25;
- Given that this is the first subnet, it’ll be 192.168.5.0/26.
- Next, consider the broadcast address.
- 192.168.5.0/25 is 11000000.10101000.00000101.(0)0000000
- Change the bits to 1’s. 11000000.10101000.00000101.(0)1111111 = 192.168.5.127
- Network address: 192.168.5.0/25
- Broadcast address: 192.168.5.127/25
- First usable address: 192.168.5.1/25
- Last usable address: 192.168.5.126/25
- Number of host (usable addresses): 126 host
LAN 1 (45 Host)
- Network address is the next subsequent number after the prior broadcast request.
- 192.168.5.128
- Prefix length is likely 6 host bits; 2^6 - 2 = 62 host
- So 2 network bits means /26
- 192.168.5.128/26
- 192.168.5.128
- Broadcast Address is xxxxxxxx.xxxxxxxx.00000101.(10)111111
- which is 192.168.5.191/26
- Network address: 192.168.5.128/26
- Broadcast address: 192.168.5.191/26
- First usable address: 192.168.5.129/26
- Last usable address: 192.168.5.191/26
- Number of host (usable addresses): 62 host
LAN 3 (14 host)
- Network address is the next subsequent number after the prior broadcast request.
- 192.168.5.192
- Prefix length is determined by 14 hosts, so about 4 host bits is required.
- 4^2 -2 = 14 host (exactly the right amount)
- 4 host bits means 4 network bits. 24 + 4 = /28
- Network address: 192.168.5.192/28
- Prefix length is determined by 14 hosts, so about 4 host bits is required.
- 192.168.5.192
- Network address is the next subsequent number after the prior broadcast request.
- Broadcast address is determined as follows:
- xxxxxxxx.xxxxxxxx.xxxxxxxx.(1100)0000 (192.168.5.192/28)
- xxxxxxxx.xxxxxxxx.xxxxxxxx.(1100)1111 (192.168.5.207/28)
- Broadcast address = 192.168.5.207/28
- Network address: 192.168.5.192/28
- Broadcast address: 192.168.5.207/28
- First usable address: 192.168.5.193/28
- Last usable address: 192.168.5.206/28
- Number of host (usable addresses): 14 host
LAN 4 (9 Host)
- Network address: 192.168.5.208/28
- Broadcast address: xxxxxxxx.xxxxxxxx.xxxxxxxx.(1101)0000 => (1101)1111 => 223 => 192.168.5.223/28
- First usable address: 192.168.5.209/28
- Last usable address: 192.168.5.222/28
- Number of host (usable addresses): 14
Point-to-Point
- Network address: 192.168.5.224 (can be /30 or /31) — we will use /30
- Broadcast address: xxxxxxxx.xxxxxxxx.xxxxxxxx.(111000)00 => (111000)11 => 192.168.5.227/30
- First usable address: 192.168.5.225/30 => (R1)
- Last usable address: 192.168.5.226/30 => (R2)
- Number of host (usable addresses): 2
Configuration ——————
LAN 2
Router 1’s interface configuration
1 | R1> |
PC2
- Configure the default gateway to R1 g0/1, which was set to 192.168.5.126.
- Configure FastEthernet0:
IP address: 192.168.5.1 Subnet: 255.255.255.128
LAN 1 Configuration
- Network address: 192.168.5.128/26
- Broadcast address: 192.168.5.191/26
- First usable address: 192.168.5.129/26
- Last usable address: 192.168.5.191/26
- Number of host (usable addresses): 62 host
R1 Configuration for LAN 1
1 | R1(config-if)# |
PC2’s Configuration
- Configure the default gateway to R1 g0/0, which was set to 192.168.5.190.
- Configure FastEthernet0:
IP address: 192.168.5.129 Subnet: 255.255.255.192
LAN 3
- Network address: 192.168.5.192/28
- Broadcast address: 192.168.5.207/28
- First usable address: 192.168.5.193/28
- Last usable address: 192.168.5.206/28
- Number of host (usable addresses): 14 host
R2 Configuration for LAN 3
1 | R2> |
PC3’s Configuration
- Configure the default gateway to R2 g0/0, which was set to 192.168.5.206
- Configure FastEthernet0:
IP address: 192.168.5.193 Subnet: 255.255.255.240
LAN 4 Configuration
- Network address: 192.168.5.208/28
- Broadcast address: xxxxxxxx.xxxxxxxx.xxxxxxxx.(1101)0000 => (1101)1111 => 223 => 192.168.5.223/28
- First usable address: 192.168.5.209/28
- Last usable address: 192.168.5.222/28
- Number of host (usable addresses): 14
R2 Config
1 | R2#show ip int brief |
PC4 Config
Default gateway: 192.168.5.222
FastEth0:
- IP: 192.168.5.209
- Subnet: 255.255.255.240
Point-to-Point Connection
- Network address: 192.168.5.224 (can be /30 or /31) — we will use /30
- Broadcast address: xxxxxxxx.xxxxxxxx.xxxxxxxx.(111000)00 => (111000)11 => 192.168.5.227/30
- First usable address: 192.168.5.225/30 => (R1)
- Last usable address: 192.168.5.226/30 => (R2)
- Number of host (usable addresses): 2
R1 Config
1 | R1>en |
R2 Config
1 | R2(config-if)# |
Configure Static Routes
Configuring R2
- Configure what happens when R2 attempts to send data to LAN 1 and LAN 2.
ip route (destination IP) (subnet mask) (next-hop)
- next hop is the P2P connection at G0/0/0.
1 | R2>en |
Configuring R1
- Configure what happens when R1 attempts to send data to LAN 3 and LAN 4.
ip route (destination IP) (subnet mask) (exit-int)
1 | R1>en |
Ping PC1 to PC4 to check
1 | Cisco Packet Tracer PC Command Line 1.0 |
Works.