cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7032
Views
20
Helpful
12
Replies

Vlans and OSPF

Telim
Level 1
Level 1

Hi these is my Topology.   PASSWORD : console or telnet

I'm able to ping from pc(s) to pc(s), but when I tried to ping for pc 2 to 192.168.101.3 I can't and from Pc4 to 192.168.100.3 

I know my problem is between the switches.

Can someone please help me to understand what am I doing wrong

Thank you!!!

 

Build the following network using the following IP Addressing scheme:

1) Network address 192.168.100.0/24; host addressing requirement: 58 for 2 subnets; VLAN 10 to host IT Group. 

2) Network address 209.165.200.0/24; host addressing requirement is 110 for 2 subnets; VLAN 20 to host Students Group

3) Configure the serial interfaces on routers from the 209.165.200.0/24 address.

Topology:  2 Routers with minimum; 2 serial ports and 2 Ethernet ports;

2 2960 switches; 1 connected to each router.

2 end devices on each switch.

VLAN(s) - are on both sides of the topology;  one configuration of VLAN 10 on the left leg and one configuration of VLAN 10 on the right side of the leg.  Same for VLAN 20.

 


 

VLAN 10 (Left)
pc 192.168.100.2/26
gateway 192.168.100.1
switch vlan 10 192.168.100.3

VLAN 20 (left)
gateway 209.165.200.1/25
pc 209.165.200.2
vlan 20 switch 209.165.200.3

VLAN 10 (Right)
gateway 192.168.101.1/26
pc 192.168.101.2
vlan 10 switch 192.168.101.3

VLAN 20 (right)
gateway 209.165.201.1
pc 209.165.201.2
vlan 20 switch 209.165.201.3


Router 1 - s0/1/0 209.165.202.1 /24
Router 2 - s0/1/0 209.165.202.2
ospf 1
network 209.165.0.0 255.255.0.0 area 0
network 192.168.0.0 255.255.0.0 area 0

1 Accepted Solution

Accepted Solutions

Hello,

 

you are missing the default gateways on the switches.

 

On Switch 1, add:

 

ip default-gateway 192.168.100.1

 

And on Switch 2:

 

ip default-gateway 192.168.101.1

View solution in original post

12 Replies 12

Hello

Do you have ospf just on the routers?

Can you post

sh ip ospf route
sh ip ospf interfaces
sh ip ospf neighbours


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

Yes, i did just on the Routers

Router>en
Router#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

192.168.100.0/26 is subnetted, 1 subnets
C 192.168.100.0 is directly connected, FastEthernet0/0.10
192.168.101.0/26 is subnetted, 1 subnets
O 192.168.101.0 [110/65] via 209.165.202.2, 00:54:46, Serial0/1/0
209.165.200.0/25 is subnetted, 1 subnets
C 209.165.200.0 is directly connected, FastEthernet0/0.20
209.165.201.0/25 is subnetted, 1 subnets
O 209.165.201.0 [110/65] via 209.165.202.2, 00:54:46, Serial0/1/0
C 209.165.202.0/24 is directly connected, Serial0/1/0

Router#sh ip ospf interfaces
^
% Invalid input detected at '^' marker.

Router#sh ip ospf interface

FastEthernet0/0.10 is up, line protocol is up
Internet address is 192.168.100.1/26, Area 0
Process ID 1, Router ID 209.165.202.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 209.165.202.1, Interface address 192.168.100.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
FastEthernet0/0.20 is up, line protocol is up
Internet address is 209.165.200.1/25, Area 0
Process ID 1, Router ID 209.165.202.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 209.165.202.1, Interface address 209.165.200.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 0, Adjacent neighbor count is 0
Suppress hello for 0 neighbor(s)
Serial0/1/0 is up, line protocol is up
Internet address is 209.165.202.1/24, Area 0
Process ID 1, Router ID 209.165.202.1, Network Type POINT-TO-POINT, Cost: 64
Transmit Delay is 1 sec, State POINT-TO-POINT, Priority 0
No designated router on this network
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Index 3/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1 , Adjacent neighbor count is 1
Adjacent with neighbor 209.165.202.2
Suppress hello for 0 neighbor(s)
Router#
Router#
Router#
Router#sh ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
209.165.202.2 0 FULL/ - 00:00:37 209.165.202.2 Serial0/1/0

Hello

Can you post the config of the switches.

sh ip route
sh ip int brief
sh int trunK
sh valn brief


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


Switch 1
Switch#sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual up up
FastEthernet0/3 unassigned YES manual up up
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual up up
GigabitEthernet0/1 unassigned YES manual down down
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 unassigned YES manual administratively down down
Vlan10 192.168.100.3 YES manual up up
Vlan20 209.165.200.3 YES manual up up
Switch#
Switch#
Switch#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/3 on 802.1q trunking 1
Fa0/24 on 802.1q trunking 1

Port Vlans allowed on trunk
Fa0/3 1-1005
Fa0/24 1-1005

Port Vlans allowed and active in management domain
Fa0/3 1,10,20
Fa0/24 1,10,20

Port Vlans in spanning tree forwarding state and not pruned
Fa0/3 1,10,20
Fa0/24 1,10,20

Switch#sh vlan brief

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Gig0/1, Gig0/2
10 IT active Fa0/1
20 Students active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active


Switch#sh ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.100.3 - 0002.1763.B301 ARPA Vlan10
Internet 209.165.200.3 - 0002.1763.B302 ARPA Vlan20




Switch2
Switch>en
Switch#sh vtp status
VTP Version : 2
Configuration Revision : 5
Maximum VLANs supported locally : 255
Number of existing VLANs : 7
VTP Operating Mode : Server
VTP Domain Name :
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0xC2 0xCC 0x24 0x77 0x41 0xE5 0xBB 0xED
Configuration last modified by 192.168.101.3 at 3-2-93 22:43:13
Local updater ID is 192.168.101.3 on interface Vl10 (lowest numbered VLAN interface found)
Switch#
Switch#
Switch#
Switch#
Switch#sh interface trunk
Port Mode Encapsulation Status Native vlan
Fa0/3 on 802.1q trunking 1
Fa0/24 on 802.1q trunking 1

Port Vlans allowed on trunk
Fa0/3 1-1005
Fa0/24 1-1005

Port Vlans allowed and active in management domain
Fa0/3 1,10,20
Fa0/24 1,10,20

Port Vlans in spanning tree forwarding state and not pruned
Fa0/3 1,10,20
Fa0/24 1,10,20

Switch#

Switch#sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/2 unassigned YES manual up up
FastEthernet0/3 unassigned YES manual up up
FastEthernet0/4 unassigned YES manual down down
FastEthernet0/5 unassigned YES manual down down
FastEthernet0/6 unassigned YES manual down down
FastEthernet0/7 unassigned YES manual down down
FastEthernet0/8 unassigned YES manual down down
FastEthernet0/9 unassigned YES manual down down
FastEthernet0/10 unassigned YES manual down down
FastEthernet0/11 unassigned YES manual down down
FastEthernet0/12 unassigned YES manual down down
FastEthernet0/13 unassigned YES manual down down
FastEthernet0/14 unassigned YES manual down down
FastEthernet0/15 unassigned YES manual down down
FastEthernet0/16 unassigned YES manual down down
FastEthernet0/17 unassigned YES manual down down
FastEthernet0/18 unassigned YES manual down down
FastEthernet0/19 unassigned YES manual down down
FastEthernet0/20 unassigned YES manual down down
FastEthernet0/21 unassigned YES manual down down
FastEthernet0/22 unassigned YES manual down down
FastEthernet0/23 unassigned YES manual down down
FastEthernet0/24 unassigned YES manual up up
GigabitEthernet0/1 unassigned YES manual down down
GigabitEthernet0/2 unassigned YES manual down down
Vlan1 unassigned YES manual administratively down down
Vlan10 192.168.101.3 YES manual up up
Vlan20 209.165.201.3 YES manual up up
Switch#
Switch#
Switch#
Switch#


Switch#sh int trunk
Port Mode Encapsulation Status Native vlan
Fa0/3 on 802.1q trunking 1
Fa0/24 on 802.1q trunking 1

Port Vlans allowed on trunk
Fa0/3 1-1005
Fa0/24 1-1005

Port Vlans allowed and active in management domain
Fa0/3 1,10,20
Fa0/24 1,10,20

Port Vlans in spanning tree forwarding state and not pruned
Fa0/3 1,10,20
Fa0/24 1,10,20

Switch#sh vlan brief

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Gig0/1, Gig0/2
10 IT active Fa0/1
20 Students active Fa0/2
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#
Switch#sh ip arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.101.3 - 0060.2F89.4901 ARPA Vlan10
Internet 209.165.201.3 - 0060.2F89.4902 ARPA Vlan20
Switch#

What are the passwords for your devices ?

telnet or console

Hello,

 

you are missing the default gateways on the switches.

 

On Switch 1, add:

 

ip default-gateway 192.168.100.1

 

And on Switch 2:

 

ip default-gateway 192.168.101.1

Hello

I am now confused , Can you confirm are you not troubleshooting connectivity between end hosts?

 

@Georg Pauwen default gateway on the switch will not negate access for the end host , D/g on switch are only for remote access to the switch itself?



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

Hi, I'm able to ping from pc to pc and between all.
I'm pretty sure my problem is on the switches.

Attached the revised file. Each PC can ping each interface on both switches...

 

Then again, I share Paul's confusion: which IP address(es) cannot ping which IP address(es) ?

 

 

Yes, Everything works now after the ip default gateway.
Thanks a lot

Hello

 


@Telim wrote:
Yes, Everything works now after the ip default gateway.
Thanks a lot

I assume it’s the  default gateway of the end hosts- unless you were trying to access the switches remotely?

 

 


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
Review Cisco Networking products for a $25 gift card