You would need to be more specific as to why you want to do this (e.g. is it just for your amusement, or is it for some purpose) in order that we can suggest something appropriate.
My initial suggestion for the transmitter is that you look at using a 555 oscillating at around 40KHz, and driving an IR LED with about 30mA.
Here is a page discussing something similar. You can increase the range by placing several LEDs in a series/parallel arrangement and/or by using a igher current (check with the specs for the diodes).
For the receiver you'll need a matching phototransistor, and an op-amp with a narrow band pass. (You could also use a dedicated IR receiver as suggested in the link I gave you above).
Another option is to look at
this page to design an active filter centred on 40khz with some suitable bandwidth (say 500 Hz). Following this you would want (possibly) to rectify the signal, and a comparator to turn on the output LED when the amplitude is large enough.
As you can see, it's not super simple. If you only want 30 cm of range or so, the circuit can be much simpler.