If you know that a process is running in the default network namespace (typically process number 1), you can use tools like nsenter to run a command in the same network namespace (-n
option):
# nsenter -t 1 -n ifconfig
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…