cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4561
Views
0
Helpful
10
Replies

VLANS with 2 routers and 2 switches

Telim
Level 1
Level 1

 Tracer 

I'm using Tracer and I'm doing a VLANS, sub interface but I cannot ping the computers, I can ping the computer to router and to switch but not btw computer. 

I need to know what I'm doing wrong please help. 

LEG A:  VLAN 10 and 20 are developed from 209.165.190.0/24.

LEB B: VLANs 30, 40 are developed from 192.168.100.0/24. 

Serial port addresses on router are from the 209 address.

Create VLAN(s) 10,20,30,40

Configure sub-interfaces on Router

Configure VLAN(s) on Switches

 

 

 

 

 

Router 1

Current configuration : 1383 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R1

!

no logging console

!

!

!

!

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

interface FastEthernet0/0

ip address 209.165.190.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 209.165.10.2 255.255.255.0

!

interface FastEthernet0/0.20

encapsulation dot1Q 20

ip address 209.165.20.4 255.255.255.0

!

interface FastEthernet0/0.30

encapsulation dot1Q 30

ip address 192.168.30.2 255.255.255.0

!

interface FastEthernet0/0.40

encapsulation dot1Q 40

ip address 192.168.40.4 255.255.255.0

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface GigabitEthernet0/3/0

no ip address

shutdown

!

interface Serial1/0

ip address 209.165.195.1 255.255.255.0

clock rate 1000000

!

interface Serial1/1

no ip address

clock rate 2000000

shutdown

!

interface Serial1/2

no ip address

clock rate 2000000

shutdown

!

interface Serial1/3

no ip address

clock rate 2000000

shutdown

!

interface Vlan1

no ip address

shutdown

!

ip classless

ip route 192.168.100.0 255.255.255.0 209.165.195.2

!

ip flow-export version 9

!

!

!

no cdp run

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

password telnet

login

!

!

!

end

 

ROUTER 2

R2#show running-config

Building configuration...

 

Current configuration : 1317 bytes

!

version 12.4

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname R2

!

!

!

!

!

!

!

!

no ip cef

no ipv6 cef

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

interface FastEthernet0/0

ip address 192.168.100.1 255.255.255.0

duplex auto

speed auto

!

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 209.165.10.2 255.255.255.0

!

interface FastEthernet0/0.20

encapsulation dot1Q 20

ip address 209.165.20.4 255.255.255.0

!

interface FastEthernet0/0.30

encapsulation dot1Q 30

ip address 192.168.30.2 255.255.255.0

!

interface FastEthernet0/0.40

encapsulation dot1Q 40

ip address 192.168.40.4 255.255.255.0

!

interface FastEthernet0/1

no ip address

duplex auto

speed auto

!

interface GigabitEthernet0/3/0

no ip address

shutdown

!

interface Serial1/0

ip address 209.165.195.2 255.255.255.0

!

interface Serial1/1

no ip address

clock rate 2000000

!

interface Serial1/2

no ip address

clock rate 2000000

shutdown

!

interface Serial1/3

no ip address

clock rate 2000000

shutdown

!

interface Vlan1

no ip address

shutdown

!

ip classless

ip route 209.165.190.0 255.255.255.0 209.165.195.1

!

ip flow-export version 9

!

!

!

no cdp run

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

end

 

SWITCH 1

Current configuration : 1809 bytes

!

version 12.2(37)SE1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname S1

!

no logging console

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/1

switchport trunk encapsulation dot1q

switchport mode trunk

switchport nonegotiate

!

interface FastEthernet0/2

!

interface FastEthernet0/3

spanning-tree portfast

!

interface FastEthernet0/4

!

interface FastEthernet0/5

switchport access vlan 10

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/6

switchport access vlan 20

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

switchport access vlan 30

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/11

switchport access vlan 40

switchport mode access

switchport nonegotiate

shutdown

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

interface Vlan10

mac-address 0001.6320.4e01

ip address 209.165.10.2 255.255.255.0

!

interface Vlan20

mac-address 0001.6320.4e02

ip address 209.165.20.4 255.255.255.0

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

password console

!

line aux 0

!

line vty 0 4

password telnet

login

line vty 5 15

password telnet

login

!

!

!

end

SWITCH 2

Current configuration : 1662 bytes

!

version 12.2(37)SE1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname S2

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/1

switchport mode trunk

switchport nonegotiate

!

interface FastEthernet0/2

!

interface FastEthernet0/3

!

interface FastEthernet0/4

!

interface FastEthernet0/5

switchport access vlan 10

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/6

switchport access vlan 20

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

switchport access vlan 30

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/11

switchport access vlan 40

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

interface Vlan30

mac-address 0001.636b.1501

ip address 192.168.30.2 255.255.255.0

!

interface Vlan40

mac-address 0001.636b.1502

ip address 192.168.40.4 255.255.255.0

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

password telnet

login

!

!

!

end

10 Replies 10

Hi

The problem here is you have the gateway for the same VLANs on the both routers, so you should use HSRP or other FHRP to avoid this behavior, so your config could be:

 

(Assuming we are keeping the same default gateway for each network)

 

ROUTER 1

 

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 209.165.10.253 255.255.255.0

standby 10 ip 209.165.10.2

standby 10 preempt

standby 10 priority 105

!

interface FastEthernet0/0.20

encapsulation dot1Q 20

ip address 209.165.20.253 255.255.255.0

standby 20 ip 209.165.20.4

standby 20 preempt

standby 20 priority 105

!

interface FastEthernet0/0.30

encapsulation dot1Q 30

ip address 192.168.30.253 255.255.255.0

standby 30 ip 192.168.30.2

standby 30 preempt

standby 30 priority 105

!

interface FastEthernet0/0.40

encapsulation dot1Q 40

ip address 192.168.40.253 255.255.255.0

standby 40 ip 192.168.40.4

standby 40 preempt

standby 40 priority 105

 

You can use a routing protocol to interconnect both routers or if you are already using VLANs through the switches it can work

 

router ospf 100

network 0.0.0.0 255.255.255.255 area 0

 

 

ROUTER 2

 

interface FastEthernet0/0.10

encapsulation dot1Q 10

ip address 209.165.10.254 255.255.255.0

standby 10 ip 209.165.10.2

standby 10 priority 100

!

interface FastEthernet0/0.20

encapsulation dot1Q 20

ip address 209.165.20.254 255.255.255.0

standby 20 ip 209.165.20.4

standby 20 priority 100

!

interface FastEthernet0/0.30

encapsulation dot1Q 30

ip address 192.168.30.254 255.255.255.0

standby 30 ip 192.168.30.2

standby 30 priority 100

!

interface FastEthernet0/0.40

encapsulation dot1Q 40

ip address 192.168.40.254 255.255.255.0

standby 40 ip 192.168.40.4

standby 40 priority 100

 

router ospf 100

network 0.0.0.0 255.255.255.255 area 0

 

* also you could verify the spanning tree protocol to be aligned with the primary HSRP router (higher priority)

 

Hope it is useful

:-)




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

I continue to have problems with it. I cannot ping them. 

I know I'm doing something wrong. 

Hello,

 

I have made some changes to your config. All PCs can now ping each other. That said, as stated by the other posts, what is your requirement ?

What I try to accomplish is:

 

Create VLAN(s) 10,20,30,40

Configure sub-interfaces on Routers

Configure VLAN(s) on Switches

Pinging from end to end

With this ip address

Topology  2 Routers, 2 Switches and end devices.

LEG A:  VLAN 10 and 20 are developed from 209.165.190.0/24.

LEB B: VLANs 30, 40 are developed from 192.168.100.0/24. 

Serial port addresses on router are from the 209 address.

 

Hello

I agree with @Julio E. Moisa

 

You have not only the same vlans on either leg but the same ip addressing, you need to redesign this topology but first can you explain what you trying to accomplish


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

What I try to accomplish is:

Serial port addresses on router are from the 209 address

Create VLAN(s) 10,20,30,40

Configure sub-interfaces on Routers

Configure VLAN(s) on Switches

Pinging from end to end

With this ip address

LEG A:  VLAN 10 and 20 are developed from 209.165.190.0/24.

LEB B: VLANs 30, 40 are developed from 192.168.100.0/24. 

Hello,

 

what do you mean by 'developed'...do you mean reachable ?

 

LEG A: VLAN 10 and 20 are developed from 209.165.190.0/24.

LEB B: VLANs 30, 40 are developed from 192.168.100.0/24.

Yes, like this is the addressing plan developed for accessing networking devices.

Did you open the revised file I sent ? There should be full connectivity, I only took the IP addresses off the FastEthernet0/0 interfaces because I didn't know what they were for. Add them back and you should meet your requirements...

Yes, I did. It is not pinging from end to end

Review Cisco Networking for a $25 gift card