cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
479
Views
0
Helpful
2
Replies

Configuring 2 different vlans in 2 switches

Hi,

Please fine my topology attached. I am trying to communicate the between the hosts in 2 different vlans. But my interfaces are down between router and both the switches. Please lemme know the correct configuration. 

I have done the configuration in the router & switches as given below.

Router:

#interface gi0/0.1

#encapsulation dot1q 10

#ip address 192.168.1.1 255.255.255.0

#exit

#interface gi0/0.2

#encapsulation dot1q 20

#ip address 192.168.2.1 255.255.255.0

(got error as Ip address 192.168.0.0 overlaps)

#exit

#inter gi0/1.1

#encapsulation dot1q 10

#ip address 192.168.1.2 255.255.255.0

#exit

#inter gi0/1.2

#encapsulation 192.168.2.2 255.255.255.0  (got error as Ip address 192.168.0.0 overlaps)

#exit

Switch0 & Switch1:

# interface fa0/1

#switchport mode trunk

#exit

#inter fa0/2

#switchport mode access

#switchport access vlan10

#exit

#inter fa0/3

#switchport mode access

#switchport access vlan20

#exit

Thanks in Advance

2 Replies 2

Mark Malone
VIP Alumni
VIP Alumni

Hi

You have the same vlans in each switch 10 and 20 each connected to a routed port on same router but with 2 routed interfaces

your subnets will need to be different on each side or they will be overlapping and not work

as example vlan 10 in one port could be 192.168.10.x/24 but it cant be 192.168.10.x/24 on another port on same router that's a design problem

you will need to change the design physically or else change your subnet ranges one side of the routed ports

............................

other option is use a router with a switching module and have full trunks between router and switches and then just create vlan interfaces on the router instead of routed ports

yoann.wolf67
Level 1
Level 1

Maybe you could check the bvi function.

You can set gi0/0.1 and gi0/1.1 as the same bridge group and then set an ip address for the bridge interface 192.168.1.1 per example

As well for gi0/0.2 and gi0/1.2 in another bridge group and set an ip address for the bridge interface 192.168.2.1

Finally you'll have 2 bridge group and one subnet affected for each one.

Here you can find more information :

http://www.cisco.com/c/en/us/support/docs/lan-switching/integrated-routing-bridging-irb/17054-741-10.html#vlanrouting