User Tools

Site Tools


exclude_virtual_interfaces_in_ip_command

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
exclude_virtual_interfaces_in_ip_command [2023/04/03 14:58] walkeradminexclude_virtual_interfaces_in_ip_command [2023/04/07 17:01] walkeradmin
Line 80: Line 80:
 </file> </file>
 No our list is much more readable. 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 "veth" -e "cni0" -e "flannel" -e "kube" -e "internal" -e"lo" 
 +This give the following output. 
 +<file> 
 +eth2             UP             11.0.200.2/16 fe80::76fe:48ff:fe45:e65e/64 
 +eth3             DOWN 
 +eth4             UP             12.0.200.4/16 fe80::76fe:48ff:fe45:e660/64 
 +eth5             DOWN 
 +eth0             UP             10.43.30.200/24 fe80::76fe:48ff:fe45:1eee/64 
 +eth1             DOWN 
 +</file> 
 +This is a lot to type/remember, but you could make a script out of it. 
 +\\  
 +\\  
 +{{:dokuwiki.png?direct&600|}}
  
  
exclude_virtual_interfaces_in_ip_command.txt · Last modified: 2023/04/07 17:01 by walkeradmin