Ex vivo brain slices can be used to study the effects of volatile anesthetics on evoked responses to afferent inputs. Optogenetics are employed to independently activate thalamocortical and corticocortical afferents to non-primary neocortex, and synaptic and network responses are modulated with isoflurane.