阴山
When Li Keyong rose in rebellion against Duan Wenchu (段文楚) the Tang defender of Datong Circuit (大同, headquartered in modern Datong, Shanxi) in 878, Li Kening served under him and carried the title of commander of Fengcheng Base (奉誠軍). When Li Keyong's enemy Helian Duo subsequently attacked the Shatuo base Huanghua (黃花, in modern Shuozhou, Shanxi), Li Kening helped defend the city and protect Li Keyong and the other brothers, and also participated in the later defense of Li Keyong's then-power base of Wei Prefecture (蔚州, in modern Zhangjiakou, Hebei). Presumably, when Li Keyong subsequently was defeated and forced to flee to the Dada (達靼) tribes, then in the Yin Mountains region, Li Kening followed him, for later, when Li Keyong returned from Dada to aid the Tang cause against the major agrarian rebel Huang Chao's state of Qi in 881, Li Kening was said to be part of that army; he followed Li Keyong in Li Keyong's subsequent campaigns against Huang.