0% found this document useful (0 votes)
4 views6 pages

Scenario

This document outlines the steps to configure inter-VLAN routing on a router and set up DHCP for three VLANs (HR, IT, Finance) on a switch. It includes commands for creating VLANs, assigning ports, configuring trunk ports, and enabling routing along with DHCP pools for each VLAN. The final section emphasizes the importance of verifying the configuration to ensure proper communication and IP address allocation within the network.

Uploaded by

Karim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views6 pages

Scenario

This document outlines the steps to configure inter-VLAN routing on a router and set up DHCP for three VLANs (HR, IT, Finance) on a switch. It includes commands for creating VLANs, assigning ports, configuring trunk ports, and enabling routing along with DHCP pools for each VLAN. The final section emphasizes the importance of verifying the configuration to ensure proper communication and IP address allocation within the network.

Uploaded by

Karim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

### Scenario: Creating Inter-VLAN Routing and Configuring DHCP for Each VLAN

In this scenario, you are setting up inter-VLAN routing on a router and configuring DHCP for each VLAN
on a switch.

#### Network Setup

- **Router**: Inter-VLAN Routing

- **Switch**: VLAN Configuration and DHCP Service

- **VLANs**:

- VLAN 10: HR Department

- VLAN 20: IT Department

- VLAN 30: Finance Department

#### Assumptions

- The router's model supports inter-VLAN routing.

- The switch supports DHCP service.

- VLANs have been created on the switch.

### Step-by-Step Commands

#### 1. Configure VLANs on the Switch

```plaintext

Switch> enable

Switch# configure terminal

! Create VLAN 10

Switch(config)# vlan 10

Switch(config-vlan)# name HR
Switch(config-vlan)# exit

! Create VLAN 20

Switch(config)# vlan 20

Switch(config-vlan)# name IT

Switch(config-vlan)# exit

! Create VLAN 30

Switch(config)# vlan 30

Switch(config-vlan)# name Finance

Switch(config-vlan)# exit

```

#### 2. Assign Ports to VLANs

```plaintext

! Assign ports to VLANs (example with ports 1-3)

Switch(config)# interface range ethernet 1/0/1-1/0/3

Switch(config-if-range)# switchport mode access

Switch(config-if-range)# switchport access vlan 10

Switch(config-if-range)# exit

! Assign ports to VLANs (example with ports 4-6)

Switch(config)# interface range ethernet 1/0/4-1/0/6

Switch(config-if-range)# switchport mode access

Switch(config-if-range)# switchport access vlan 20

Switch(config-if-range)# exit

! Assign ports to VLANs (example with ports 7-9)


Switch(config)# interface range ethernet 1/0/7-1/0/9

Switch(config-if-range)# switchport mode access

Switch(config-if-range)# switchport access vlan 30

Switch(config-if-range)# exit

```

#### 3. Configure Trunk Port Between Switch and Router

```plaintext

! Configure trunk port (example with port 10)

Switch(config)# interface ethernet 1/0/10

Switch(config-if)# switchport mode trunk

Switch(config-if)# switchport trunk allowed vlan 10,20,30

Switch(config-if)# exit

```

#### 4. Configure Inter-VLAN Routing on the Router

```plaintext

Router> enable

Router# configure terminal

! Create sub-interfaces for each VLAN on the router's trunk port (e.g., GigabitEthernet0/1)

Router(config)# interface GigabitEthernet0/1.10

Router(config-subif)# encapsulation dot1Q 10

Router(config-subif)# ip address 192.168.10.1 255.255.255.0

Router(config-subif)# exit

Router(config)# interface GigabitEthernet0/1.20


Router(config-subif)# encapsulation dot1Q 20

Router(config-subif)# ip address 192.168.20.1 255.255.255.0

Router(config-subif)# exit

Router(config)# interface GigabitEthernet0/1.30

Router(config-subif)# encapsulation dot1Q 30

Router(config-subif)# ip address 192.168.30.1 255.255.255.0

Router(config-subif)# exit

```

#### 5. Enable Routing

```plaintext

Router(config)# ip routing

Router(config)# exit

```

#### 6. Configure DHCP Pools on the Switch

```plaintext

Switch> enable

Switch# configure terminal

! Configure DHCP for VLAN 10

Switch(config)# ip dhcp pool VLAN10

Switch(dhcp-config)# network 192.168.10.0 255.255.255.0

Switch(dhcp-config)# default-router 192.168.10.1

Switch(dhcp-config)# dns-server 8.8.8.8

Switch(dhcp-config)# exit
! Configure DHCP for VLAN 20

Switch(config)# ip dhcp pool VLAN20

Switch(dhcp-config)# network 192.168.20.0 255.255.255.0

Switch(dhcp-config)# default-router 192.168.20.1

Switch(dhcp-config)# dns-server 8.8.8.8

Switch(dhcp-config)# exit

! Configure DHCP for VLAN 30

Switch(config)# ip dhcp pool VLAN30

Switch(dhcp-config)# network 192.168.30.0 255.255.255.0

Switch(dhcp-config)# default-router 192.168.30.1

Switch(dhcp-config)# dns-server 8.8.8.8

Switch(dhcp-config)# exit

```

#### 7. Verify Configuration

```plaintext

! Verify VLAN configuration

Switch# show vlan brief

! Verify trunk port configuration

Switch# show interfaces trunk

! Verify DHCP pools

Switch# show ip dhcp pool

! Verify sub-interface configuration on the router


Router# show ip interface brief

```

### Summary

In this scenario, you've configured inter-VLAN routing on a router and set up DHCP for each VLAN on a
switch. By following these steps, you ensure that devices in each VLAN can communicate with each
other through the router and obtain IP addresses dynamically via DHCP.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy