Hi Cordula,
for the ivreg-command you need to include a suitable instrument, which is never the dependent variable Y, but a 'new' exogenous variable:
ivreg Y b1X1 b2X2(= instrument(s)) b3dummies
In order to select such an instrument, consult a good econometrics book.
Yours,
Justina