cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
360
Views
9
Helpful
3
Replies

VLAN issue

alwahidi22
Level 1
Level 1

Hi Experts,

I'm at the first step to learn VLANs so i have this topology:

Router---TrunkLink---Sw1---TrunkLink--Sw2

I made VLAN2 and VLAN3 on both Switch no.1 and Switch no.2 with the following IP Address:

VLAN2 192.168.1.16/28

VLAN3 192.168.1.32/28

The two switches are Cisco 2950.

So 1)What should be the IP address,default-gateway and where to configure them for both switches to connect each other.

2)What should be the IP address of the router fe0/0.

Regards,

Ibrahim ALwahidi

3 Replies 3

bjornarsb
Level 4
Level 4

Hi,

I believe the implementation you are looking for is : router on a stick.

Keep in mind that vlan interface on 2950 is only for management of the switch. The switch just care for layer 2 (mac.adr)

The configuration on the router would be something like this:

Router:

int fe0/0

duplex auto

speed auto

int fe0/0.2

description *******management vlan****

ip add 192.168.1.1 255.255.255.0

encapsulation dot.q 2

int fe0/0.100

description *******users****

ip add 10.0.1.1 255.255.255.0

encapsulation dot.q 100.

HTH

if it does check the scroll box at the bottom right :)

Switch:

int fe0/24

switchport mode trunk

BR,

Bjornarsb

Give ur pc's in vlan 2 the range of ips 192.168.1.16/28,with default gateway

as one of the ip from this range..

and for vlan3 the range 192.168.1.32/28 and default gateway

as one of the ip from this range..

create two sub-interface in routers interface fa0/0 and assign the address of

default gateway(configured on pc for each vlan) on each sub-interface.

do the trunk configuration properly allowing both the vlans....

regards

arun :)

mohammedmahmoud
Level 11
Level 11

Hi Ibrahim,

First of all your switches are Layer 2 switches, thus they will not be able to do Inter-VLAN routing, and thus you'll have to do the Inter-VLAN routing on the router (router-on-a stick), please see Bjornar suggestion above.

The default-gateway on the switches will be used in the case of management only (as the L2 switches are unable to do packet routing for its ports, it just do Layer 2 switching), it should be the ip address of the subinterface on the router that belongs to the management VLAN (VLAN1 by default).

The ip addresses that you should use on the router, are the default gateway for any hosts in this VLAN, in order to be able to reach hosts on the other VLANs (Inter-VLAN routing).

HTH, please do rate all helpful replies,

Mohammed Mahmoud.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card