首页 文章

检查Juniper VPN隧道是否处于活动状态

提问于
浏览
0

我'm using Juniper Networks Network Connect to establish a VPN connection. I want to check via the terminal whether this connection is up and running. I can see whether it'启动并运行或不使用 ifconfig 但我怎么能使用一个实际返回值的命令,我可以将其输入另一个条件语句?

1 回答

  • -1

    使用 grep ,您可以执行以下操作:

    /sbin/ifconfig tun0|grep -ci 'UP'

    检查您的隧道是否正在运行 .

    谢谢@cmaster!

相关问题