xbee configuration

hello i have to make an xbee network . it contains one coordinator one router and two end devices. every end device connected to an led , m work consist to defined those xbee end device for example if i send to the coordinator the number 1 one of the led switch on and if i send 2 the other one switch on. right now i have one arduino connected to the coordinator. i am wondering how can i make all this works it will need a specified code or just in the configuration of the xbees.