router on a stick

leblanc
leblanc used Ask the Experts™
on
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

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
if the routers are directly connected. you need to remove the subinterface.

Commented:
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.
Distinguished Expert 2018
Commented:
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).
leblancAccounting

Author

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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial