Hi,
I am studying for my CCNA and having problem setting up Router-on-a-stick. I watched this part in both video and the book. I think I have set everything but still it is not working.
Each host can only ping the subinterface of their own default-gateway on the router. They cannot ping the subinterface of others’ default-gateway.
Please help. Thank you very much!
Here is my set up: I am actually using a 1721 router and a 2950 switch.

Here is my config:
SW2950#show vlan bri
VLAN Name Status Ports
----
1 default active Fa0/3, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12
2 VLAN-2 active Fa0/2
4 VLAN0004 active Fa0/4
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
SW2950#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-4094
Port Vlans allowed and active in management domain
Fa0/1 1-2,4
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1-2,4
R1721(config)#int fa0.2
R1721(config-subif)#encapsulation dot1Q 2
R1721(config-subif)#ip address 194.1.2.1 255.255.255.0
R1721(config-subif)#int fa0.4
R1721(config-subif)#encapsulation dot1Q 4
R1721(config-subif)#ip address 194.1.4.1 255.255.255.0
R1721#show ip int bri
Interface IP-Address OK? Method Status Protocol
FastEthernet0 unassigned YES manual up up
FastEthernet0.2 194.1.2.1 YES manual up up
FastEthernet0.4 194.1.4.1 YES manual up up
Serial0 unassigned YES NVRAM administratively down down
Serial1 193.1.1.1 YES NVRAM down down
R1721#show int fa0.2
FastEthernet0.2 is up, line protocol is up
Hardware is PQUICC_FEC, address is 000d.ed1b.69b5 (bia 000d.ed1b.69b5)
Internet address is 194.1.2.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 2.
ARP type: ARPA, ARP Timeout 04:00:00
Last clearing of "show interface" counters never
R1721#show int fa0.4
FastEthernet0.4 is up, line protocol is up
Hardware is PQUICC_FEC, address is 000d.ed1b.69b5 (bia 000d.ed1b.69b5)
Internet address is 194.1.4.1/24
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation 802.1Q Virtual LAN, Vlan ID 4.
ARP type: ARPA, ARP Timeout 04:00:00
Last clearing of "show interface" counters never
R1721#show run
Building configuration...
Apr 3 08:11:44.487: %SYS-5-CONFIG_I: Configured from console by console
Current configuration : 1131 bytes
!
! Last configuration change at 08:11:44 UTC Fri Apr 3 2009
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1721
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$8xf/$wKWdRftcgl2YodmAUnCHK.
!
memory-size iomem 25
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
no aaa new-model
ip subnet-zero
!
!
no ip domain lookup
!
ip cef
ip audit po max-events 100
!
!
interface FastEthernet0
no ip address
speed auto
!
interface FastEthernet0.2
encapsulation dot1Q 2
ip address 194.1.2.1 255.255.255.0
!
interface FastEthernet0.4
encapsulation dot1Q 4
ip address 194.1.4.1 255.255.255.0
!
interface Serial0
no ip address
encapsulation ppp
shutdown
clock rate 64000
!
interface Serial1
ip address 193.1.1.1 255.255.255.0
encapsulation ppp
clock rate 64000
!
ip default-gateway 194.1.1.1
ip classless
no ip http server
no ip http secure-server
!
!
alias exec s show ip int bri
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
password 7 104D000A0618
login
!
end
SW2950#show run
Building configuration...
Current configuration : 1209 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname SW2950
!
enable secret 5 $1$DS5z$WYzDrsxptglKwORD0ekZJ.
!
ip subnet-zero
!
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
interface FastEthernet0/1
switchport mode trunk
no ip address
!
interface FastEthernet0/2
switchport access vlan 2
no ip address
!
interface FastEthernet0/3
no ip address
!
interface FastEthernet0/4
switchport access vlan 4
no ip address
!
interface FastEthernet0/5
no ip address
!
interface FastEthernet0/6
no ip address
!
interface FastEthernet0/7
no ip address
!
interface FastEthernet0/8
no ip address
!
interface FastEthernet0/9
no ip address
!
interface FastEthernet0/10
no ip address
!
interface FastEthernet0/11
no ip address
!
interface FastEthernet0/12
no ip address
!
interface Vlan1
ip address 194.1.1.21 255.255.255.0
no ip route-cache
!
interface Vlan20
no ip address
no ip route-cache
shutdown
!
ip http server
!
line con 0
exec-timeout 0 0
logging synchronous
line vty 0 4
password 7 030752180500
login
line vty 5 15
password 7 030752180500
login
!
end
Another question: There is not a vlan20 on 2950, but it still shows a VLAN20 in its "show run". Why?