Ping to router doesn't work

in CCNA & CCENT
CCNA QUESTION
Hello everybody. I am preparing myself as a network professional and maybe one day I'll sit a CISCO CCNA or a CCNP. I've got this configuration. The switch works fine but the router doesn't answer to my ping tests. I am using CISCO packet tracer and here's my configuration:
I have three networks 192.168.1.0/24; 172.16.1.0/24 and finally 10.1.1.0/32. I also have two VLANs: VLAN 10; and VLAN 20.The network 192.168.1.0 belongs to VLAN 10 and the network 172.16.1.0 belongs to VLAN 20. The ip addresses on each switch connected interfaces are as follow.
Interface
ip address and VLAN (if any)
Fast Ethernet 0/1
192.168.1.1/24 VLAN 10
Fast Ethernet 0/2
172.16.1.1/24 VLAN 20
Gigabit Ethernet 0/1
10.1.1.1/32 No VLAN
Here is the configuration of my SW1
Switch SW1 CONFIGURATION FIRST PART
Switch SW1 CONFIGURATION SECOND PART AND FINAL
Now my router configuration
Router 1 CONFIGURATION
NOW MY QUESTION I PING FROM 192.168.1.2 to 172.16.1.2 and I have an answer, but I ping 10.1.1.2, the interface on the router and I have no answer.
HERE IS MY QUESTION, WHY I DON'T HAVE ANY ANSWER FROM ROUTER 1?
I have logged in the Switch 1 and I have an answer from the router, but I can't have an answer from the router if I ping from any of my computers. WHY?
I CAN'T UPLOAD MORE IMAGES. I HOPE YOU UNDERSTAND WHAT I AM ASKING.
THANKS IN ADVACED
MERLINUS
Hello everybody. I am preparing myself as a network professional and maybe one day I'll sit a CISCO CCNA or a CCNP. I've got this configuration. The switch works fine but the router doesn't answer to my ping tests. I am using CISCO packet tracer and here's my configuration:
I have three networks 192.168.1.0/24; 172.16.1.0/24 and finally 10.1.1.0/32. I also have two VLANs: VLAN 10; and VLAN 20.The network 192.168.1.0 belongs to VLAN 10 and the network 172.16.1.0 belongs to VLAN 20. The ip addresses on each switch connected interfaces are as follow.
Interface
ip address and VLAN (if any)
Fast Ethernet 0/1
192.168.1.1/24 VLAN 10
Fast Ethernet 0/2
172.16.1.1/24 VLAN 20
Gigabit Ethernet 0/1
10.1.1.1/32 No VLAN
Here is the configuration of my SW1
Switch SW1 CONFIGURATION FIRST PART
Switch SW1 CONFIGURATION SECOND PART AND FINAL
Now my router configuration
Router 1 CONFIGURATION
NOW MY QUESTION I PING FROM 192.168.1.2 to 172.16.1.2 and I have an answer, but I ping 10.1.1.2, the interface on the router and I have no answer.
HERE IS MY QUESTION, WHY I DON'T HAVE ANY ANSWER FROM ROUTER 1?
I have logged in the Switch 1 and I have an answer from the router, but I can't have an answer from the router if I ping from any of my computers. WHY?
I CAN'T UPLOAD MORE IMAGES. I HOPE YOU UNDERSTAND WHAT I AM ASKING.
THANKS IN ADVACED
MERLINUS
Comments
I would check your default-gateway config in your L3 switch. The computers need the gateway IP address, which should be on the same subnet as the router to reach it.
CCIE Routing and Switching Written Exam v. 5.1
CCIE Routing and Switching 5.0 OCG, Vol. I
Cisco Lan Switching
MSCA [ ] 70-410 [ ] 70-411 [ ] 70-412
CCNA [X] 100-101 [ ] 200-101
SW1#pingProtocol [ip]:
Target IP address: 10.1.1.2
Repeat count [5]: 10
Datagram size [100]: 10
% A decimal number between 36 and 18024.
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: t
% Please answer 'yes' or 'no'.
Extended commands [n]: y
Source address or interface: 192.168.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
Packet sent with a source address of 192.168.1.1
..........
Success rate is 0 percent (0/10)
SW1#ping Protocol [ip]:
Target IP address: 10.1.1.2
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 10.1.1.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
Packet sent with a source address of 10.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
To answer your question, Since the "ip routing" command turns the L3 switch into a router you will need static routes or a routing protocol to communicate. The other solution is to use a trunk port and subinterfaces on the router.
If you watch the ping until it fails it will tell you what the problem was.