可以使用下面的命令语法来显示隧道链路的属性:
# dladm show-linkprop [-c] [-o fields] [tunnel-link]
显示计算机可解析格式的信息。此参数是可选的。
显示提供有关链路属性的特定信息的选定字段。
指定要显示其属性的隧道。此参数是可选的。如果省略隧道名称,该命令将显示有关系统中所有隧道的信息。
以下示例演示如何显示隧道的所有链路属性。
# dladm show-linkprop iptun0 LINK PROPERTY PERM VALUE EFFECTIVE DEFAULT POSSIBLE iptun0 autopush rw -- -- -- -- iptun0 zone rw -- -- -- -- iptun0 state r- up up up up,down iptun0 mtu rw 1480 1480 1480 1280-1480 iptun0 maxbw rw -- -- -- -- iptun0 cpus rw -- -- -- -- iptun0 rxfanout rw -- 8 8 -- iptun0 pool rw -- -- -- -- iptun0 priority rw medium medium medium low,medium, high iptun0 hoplimit rw 64 64 64 1-255 iptun0 protection rw -- -- -- mac-nospoof, restricted, ip-nospoof, dhcp-nospoof iptun0 allowed-ips rw -- -- -- -- iptun0 allowed-dhcp-cids rw -- -- -- -- iptun0 rxrings rw -- -- -- -- iptun0 txrings rw -- -- -- -- iptun0 txringsavail r- 0 0 -- -- iptun0 rxringsavail r- 0 0 -- -- iptun0 rxhwclntavail r- 0 0 -- -- iptun0 txhwclntavail r- 0 0 -- --