5 examples for ip

{{ score }}
  # Displays the IP information for the given interface
ip addr show eth0
        
{{ score }}
  # set default route (for example when connected to both wifi and lan)
sudo ip route change default via 192.168.1.1
        
{{ score }}
  # inspect routing table
ip route
        
{{ score }}
  # Use ip to create vlan on adapter when nmcli is not available.
ip link add link eth1 name eth1.10 type vlan id 10
        
{{ score }}
  # Use ip to show vlan information.
ip -d link show eth1.10