exclude_virtual_interfaces_in_ip_command
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
exclude_virtual_interfaces_in_ip_command [2023/04/03 14:55] – walkeradmin | exclude_virtual_interfaces_in_ip_command [2023/04/07 17:01] (current) – walkeradmin | ||
---|---|---|---|
Line 62: | Line 62: | ||
veth2199c7d1@if2 UP | veth2199c7d1@if2 UP | ||
</ | </ | ||
+ | Unfortunately, | ||
+ | ip -br -c a |grep -v veth | ||
+ | \\ | ||
+ | This will hide anything containing the letters veth. | ||
+ | < | ||
+ | lo | ||
+ | eth2 | ||
+ | eth3 DOWN | ||
+ | eth4 | ||
+ | eth5 DOWN | ||
+ | eth0 | ||
+ | eth1 DOWN | ||
+ | internalk3s0 | ||
+ | kube-ipvs0 | ||
+ | flannel.1 | ||
+ | cni0 | ||
+ | </ | ||
+ | No our list is much more readable. | ||
+ | \\ | ||
+ | \\ | ||
+ | We could refine this output with multiple exclusions using the -e switch: | ||
+ | ip -br -c a |grep -v -e " | ||
+ | This give the following output. | ||
+ | < | ||
+ | eth2 | ||
+ | eth3 DOWN | ||
+ | eth4 | ||
+ | eth5 DOWN | ||
+ | eth0 | ||
+ | eth1 DOWN | ||
+ | </ | ||
+ | This is a lot to type/ | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
exclude_virtual_interfaces_in_ip_command.1680530110.txt.gz · Last modified: 2023/04/03 14:55 by walkeradmin