cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1449
Views
0
Helpful
11
Replies

Same VLANs on different interfaces (Router, L3 Switch)

janic
Level 1
Level 1

RLconnection.png

I have a couple of questions about this network.

 

This is a part of configuration finishing with the error that stopped me.

S1(config)#vlan 10
S1(config-vlan)#name vlan10
S1(config-vlan)#exit
S1(config)#vlan 20
S1(config-vlan)#name vlan20
S1(config-vlan)#exit

S1#show vlan brief

S1(config)#int fa0/11
S1(config-if)#switchport access vlan 10
S1(config)#int fa0/12
S1(config-if)#switchport access vlan 20

Switch(config)#hostname S2
S2(config)#vlan 20
S2(config-vlan)#name vlan20
S2(config)#interface fa0/11
S2(config-if)#switchport access vlan 20


Switch>en
Switch#config t
Switch(config)#hostname S3
S3(config)#vlan 10
S3(config-vlan)#name vlan10
S3(config-vlan)#exit
S3(config)#vlan 20
S3(config-vlan)#name vlan20
S3(config-vlan)#exit
S3(config)#int fa0/12
S3(config-if)#switchport access vlan 10
S3(config)#int fa0/11
S3(config-if)#switchport access vlan 20

Switch>en
Switch#config
Switch(config)#hostname S4
S4(config)#vlan 20
S4(config-vlan)#name vlan20
S4(config-vlan)#exit
S4(config)#int fa0/11
S4(config-if)#switchport access vlan 20

Switch(config)#hostname L3
L3(config)#vlan 20
L3(config-vlan)#name vlan20
L3(config-vlan)#exit
L3(config)#interface fa0/2
L3(config-if)#switchport access vlan 20
L3(config-if)#exit

L3(config-if)#switchport trunk encapsulation dot1q
L3(config-if)#interface fa0/1
L3(config-if)#switchport mode trunk


Router>en
Router#config t
Router(config)#hostname R1
R1(config)#

R1(config-if)#interface fa0/1.10
R1(config-subif)#encapsulation dot1q 10
R1(config-subif)#ip add 192.168.0.1 255.255.255.0
R1(config-subif)#no shutdown
R1(config-subif)#exit
R1(config)#interface fa0/1.20
R1(config-subif)#encapsulation dot1q 20
R1(config-subif)#ip add 192.168.1.1 255.255.255.0
R1(config-subif)#no shutdown
R1(config-subif)#exit
R1(config)#interface fa0/0.10
R1(config-subif)#encapsulation dot1q 10
R1(config-subif)#ip add 192.168.0.2 255.255.255.0
% 192.168.0.0 overlaps with FastEthernet0/1.10
R1(config-subif)#

 

I tried to make two subinterfaces on each interface of the router, one for vlan10, one for vlan 20.

1. If that is not possible, should I make subinterfaces on fa0/1 of L3, and make a new connection between router and L3 switch?

2. I configured as trunk ports: fa0/24 of S1, fa0/24 of L3, fa0/24 of S3. Is that right? What about fa0/1 of S3 and fa0/24 of S4?

3. The given IP range was 192.168.0.0/23, so I made vlan10 192.168.0.0/24 and vlan20 192.168.1.0/24, cause I needed classfull network for ripv1 routing. Was that right?

 

I attached picture and packet tracer file. If I forgot to explain or mention something, ask me. Any help would be great, but be sure to explain it to me like I'm an idiot cause I'm new to this. This was an exam problem.

11 Replies 11

MBeaumont
Level 1
Level 1

No shut the interface fa0/1 on R1 (without going in to the sub interface),

Let me know if it works