Experimental evidences point out the participation of nonsynaptic mechanisms (e.g., fluctuations in extracellular ions) in epileptiform bursting and spreading depression (SD). During these abnormal oscillatory patterns, it is observed an increase of extracellular potassium concentration [K(+)](o) and a decrease of extracellular calcium concentration [Ca(2+)](o) which raises the neuronal excitability. However, whether the high [K(+)](o) triggers and propagates these abnormal neuronal activities or plays a secondary role into this process is unclear. To better understand the influence of extracellular potassium dynamics in these oscillatory patterns, the experimental conditions of high [K(+)](o) and zero [Ca(2+)](o) were replicated in an extended Golomb model where we added important regulatory mechanisms of ion concentration as Na(+)-K(+) pump, ion diffusion and glial buffering. Within these conditions, simulations of the cell model exhibit seizure-like discharges (ictal bursting). The SD was elicited by the interruption of the Na(+)-K(+) pump activity, mimicking the effect of cellular hypoxia (an experimental protocol to elicit SD, the hypoxia-induced SD). We used the bifurcation theory and the fast-slow method to analyze the interference of K(+) dynamics in the cellular excitability. This analysis indicates that the system loses its stability at a high [K(+)](o), transiting to an elevated state of neuronal excitability. Effects of high [K(+)](o) are observed in different stages of ictal bursting and SD. In the initial stage, the increase of [K(+)](o) creates favorable conditions to trigger both oscillatory patterns. During the neuronal activity, a continuous growth of [K(+)](o) by outward K(+) flow depresses K(+) currents in a positive feedback way. At the last stage, due to the depression of K(+) currents, the Na(+)-K(+) pump is the main mechanism in the end of neuronal activity. Thus, this work suggests that [K(+)](o) dynamics may play a fundamental role in these abnormal oscillatory patterns.