I am currently trying add a route on a Cisco 800 switch basically

I am trying to add an address to the dialer2

At first I tried for example

ip route 192.168.x.x. 255.255.255.0 (that didn't seem to work) as i still can't ping the device

So I tried

ip route 192.168.x.x. 255.255.255.0 Dialer2

I received the following error.

#ip route 192.168.x.x 255.255.255.0 dialer2
^
% Invalid input detected at '^' marker.

x is replaces the number (just incase anyone thinks I am using a x)

Am I using the right command's as usual don't admin cisco devices

Any help would be greatly appreaciated

THX ZL

p.s. I tried getting commands from Cisco however I need to register but can't for some reason as post code is flagging up as invalid.