XYZ company is a fast-growing business in Eastern Australia with more than 2 million customers globally. The company deals with the buying and selling of food items, which are primarily operated from the headquarters. The company intends to open a branch near the local village of Bonalbo. Therefore, the company requires young IT graduates to design the network for the branch. The network is intended to operate separately from the HQ network. Being a small network, the company has the following requirements for its implementation:
- One router and one switch to be used (all CISCO products).
- 3 departments (Admin/IT, Finance/HR and Customer service/Reception).
- Each department is required to be in different Vlans.
- Each department is required to have a wireless network for the users.
- Host devices in the network are required to obtain IPv4 address automatically.
- Devices in all the departments are required to communicate with each other.
Assume the ISP gave out a base network of 192.168.1.0, you as the young network engineer who has been hired, design and implement a network considering the above requirements.
Network Address: 192.168.1.0
Subnets needed: 3
- 2^x = Subnets needed
- 2^x = 3
- 2^1 = 2, this is less than 3, so we need to find a number greater than 2 but closer to 3
- 2^2 = 4, this is greater than 3 but not too far from it
- x = 2, so we have 2 as the number of ones in the last octet
- 11111111.11111111.11111111.11000000 = /26
- 255.255.255.192 = decimal
- 2^y-2 = Number of Hosts (y is the number of zeros in the last octet)
- 2^6-2 = (Subtract 2 for IP network and broadcast network)
- 64-2 = 62
- 256-last decimal of subnet mask = Subnet Block
- 256-128 = 64
- Subnet Number = 0, 64, 128
- Subnet Mask: 255.255.255.192
- Network Address: 192.168.1.0
- Min: 192.168.1.1 (network +1)
- Max: 192.168.1.62 (broadcast -1)
- Broadcast Address: 192.168.1.63 (0–63 range = 64 addresses)
- Subnet Mask: 255.255.255.192
- Network Address: 192.168.1.64 (previous subnet’s broadcast +1)
- Min: 192.168.1.65 (network +1)
- Max: 192.168.1.126 (broadcast -1)
- Broadcast Address: 192.168.1.127 (64–127 range = 64 addresses)
- Subnet Mask: 255.255.255.192
- Network Address: 192.168.1.128 (previous subnet’s broadcast +1)
- Min: 192.168.1.129 (network +1)
- Max: 192.168.1.190 (broadcast -1)
- Broadcast Address: 192.168.1.191 (128–191 range = 64 addresses)
Each VLAN gets 7 interfaces:
- VLAN 10 Admin/IT: Interfaces 2-8
- VLAN 20 Finance/HR: Interfaces 9-15
- VLAN 30 Customer-Service/Reception: Interfaces 16-22
- vlan (number) - Creates a new VLAN with the specified number
Example:vlan 10
creates VLAN 10 - name (vlan name) - Assigns a name to the newly created VLAN
Example:name Admin/IT
assigns the name "Admin/IT" to VLAN 10 - int range f0/..-.. - Enters interface configuration mode for a range of interfaces
Example:int range f0/2-8
configures interfaces FastEthernet 0/2 through 0/8 switchport mode access
- Configures the interface to operate in access mode
This sets the port to carry traffic for only one VLAN- switchport access vlan (vlan number) - Assigns the interface to a specific VLAN in access mode
Example:switchport access vlan 10
assigns the interface to VLAN 10 int f0/1
- Enters the configuration mode for interface FastEthernet 0/1switchport mode trunk
- Configures the interface to operate in trunk mode
A trunk port can carry traffic for multiple VLANs, typically used between switches