08-02-2016 06:04 AM - edited 03-10-2019 01:09 PM
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
08-02-2016 06:27 AM
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
08-02-2016 06:58 AM
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 :
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide