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!
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
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 :)
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
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.
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
09-08-2015 06:37 AM
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
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
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