router on a stick

picI have router on a stick fa0/0.10 10.10.10.1/30 on R1 and an IP address assigned to R2 f0/0 10.10.10.2/30. I am trying to understand why I cannot ping R2 from R1?

pic
R1 config:
interface FastEthernet0/0
 no ip address
 duplex full
!
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 10.10.10.1 255.255.255.252
!

Open in new window


R2 config:
interface FastEthernet0/0
 ip address 10.10.10.2 255.255.255.252

Open in new window

LVL 1
leblancAccountingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Benjamin Van DitmarsSr Network EngineerCommented:
if the routers are directly connected. you need to remove the subinterface.
Mr.XCommented:
yes. benjamin is correct.
you can remove the subinterface.
configure the ip address on the f0/0 on R1 and it should ping straightaway.

subinterface comes in place. when you have a switch conneced to R1 and if swtich has multiple vlans. then you can use subinterface on r1.
but in your current scenario you do not need subinterfaces.
JustInCaseCommented:
There is tagging issue on link.

R1 is tagging subnet 10.10.10.0/32 packets with tag 10,  R2 is not configured to accept taged frames and is dropping tagged traffic.

Solutions:
You could configure both sides to use/expect tagged (encapsulate dot1q 10), or or R1 configure subinterface 10 as encapsulation dot1Q 10 native to match other side (or remove subinterface as suggested by others).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
leblancAccountingAuthor Commented:
R1 is a SD-WAN appliance and cannot have an IP address on the interface. That is why I need to use the subinterface. But put a switch in between is a perfect solution. Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.