Problem with reaching another router (VLAN)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 03:39 AM - edited 03-08-2019 01:41 AM
Hi guys,
I'm studying CCNA ICND1 for a few weeks now. So far, I've created several basic networks with the Cisco Packet Tracer software.
At this moment I'm stuck with the following problem, a computer can't ping an interface on the second router, see:
In more detail: PC0 want's to ping 10.0.1.2, but won't get any reply.
The PC-PT-PC0 is trying to ping Router2 at his interface [Serial2/0 10.0.1.2]
[The configuration of Switch1]
Vlan1 10.0.2.254 YES manual up up
interface FastEthernet0/1
switchport mode trunk
switchport port-security
interface Vlan1
ip address 10.0.2.254 255.255.255.0
ip default-gateway 10.0.2.1
[The configuration of Router1]
interface FastEthernet0/0
ip address 10.0.2.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 10.0.1.1 255.255.255.248
clock rate 2000000
ip route 10.0.1.0 255.255.255.248 10.0.1.2
[The configuration of PC0]
IP Address: 10.0.2.100
Subnet mask: 255.255.255.0
Default Gateway: 10.0.2.254
Could someone help me out? Thanks in advance!
- Labels:
-
LAN Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 05:22 AM
Why is the PC default gateway set to 10.0.2.254? Logically it should be set to the address of the router interface 10.0.2.1.
HTH
Rick
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 05:55 AM
Richard, thanks for the answer. I used the L3 GW's of the switches because I thought that was better.
So I configured the Default-GW of the switch as 10.0.2.1 ( so all the requests of the client will be forwarded to the router, which will forward the packets to the next hop/second router ).
But that won't work.
If I set the default GW to 10.0.2.1, the client CAN ping the second router. But that isn't the plan :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 06:00 AM
You have not supplied several details that are significant such as whether the switch is operating as a layer 2 switch or as a layer 3 switch. The behavior suggests that it is layer 2 but clarification of this point would be helpful.
You say that my suggestion isn't the plan. So can you clarify for us what the plan is?
HTH
Rick
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 06:24 AM
Oh, I'm sorry.
I wanted to use the switches as L3 switches. So the clients are able to communicate through the VLAN Gateways.
BTW: Is it possible that the switches from Cisco Packet Tracer can't handle L3 traffic? I've tried the 2960 and the Generic one's. But the command "ip routing" doesn't even work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 06:32 AM
If the ip routing command does not work then the switch is a layer 2 only switch. And that explains why the PC can not ping remote addresses if the PC default gateway points to the switch IP address.
I am not expert in Packet Tracer. So someone else would need to address how to get layer 3 switching in a switch in Packet Tracer.
HTH
Rick
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 06:37 AM
So I have to reconfigure the network, and use the new device. Then it should work.
Thanks for the help Richard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 06:27 PM
You are quite welcome.
Yes if you reconfigure to use switches that do support layer 3 processing then your plan should work.
HTH
Rick
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 08:14 AM
Hello
Is this topology simulating connecting two different sites?
if so try this:
Left side
Rtr 1
interface Serial2/0
description link to RTR2
ip address 10.0.1.1 255.255.255.248
Int fa0/0
no ip address
int fa0/0.1
description link to switch
encapsulation dot1Q 1
ip address 1.1.1.1 255.255.255.0
int fa0/0.10
description link to switch
encapsulation dot1Q 10
ip address 10.0.2.1 255.255.255.0
ip route 10.0.3.0 255.255.255.0 10.0.1.2
ip route 11.11.11.0 255.255.255.0 10.0.1.2
Switch
conf t
int vlan 1
description MGT VLAN for switches
1.1.1.254 255.255.255.0
exit
ip default-gateway 1.1.1.1
Vlan 10
exit
int fa0/1
description link to Rtr1
switchport mode trunk
int fax/x
description link to PC
switchport host
switchport access vlan 10
PC
ip address 10.0.2.100 255.255.255.0
subnet mask 255.255.255.0
Default-gateway 10.0.2.1
Right side
Rtr 2
interface Serial2/0
description link to RTR1
ip address 10.0.1.2 255.255.255.248
Int fa0/0
no ip address
int fa0/0.1
description link to switch
encapsulation dot1Q 1
ip address 11.11.11.1 255.255.255.0
int fa0/0.20
description link to switch
encapsulation dot1Q 20
ip address 10.0.3.1 255.255.255.0
ip route 10.0.2.0 255.255.255.0 10.0.1.1
ip route 1.1.1.0 255.255.255.0 10.0.1.1
Switch
conf t
int vlan 1
description MGT VLAN for switches
11.11.11.254 255.255.255.0
exit
ip default-gateway 11.11.11.1
Vlan 20
exit
int fa0/1
description link to Rtr1
switchport mode trunk
int fax/x
description link to PC
switchport host
switchport access vlan 20
PC
ip address 10.0.3.100 255.255.255.0
subnet mask 255.255.255.0
Default-gateway 10.0.3.1
res
Paul
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
