User Tools

Site Tools


ubuntu:network:get_local_ip_address

Differences

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

Link to this comparison view

Next revision
Previous revision
ubuntu:network:get_local_ip_address [2020/08/25 20:40] – created 192.168.1.1ubuntu:network:get_local_ip_address [2021/01/08 14:50] (current) – removed peter
Line 1: Line 1:
-====== Ubuntu - Network - Get local IP address ====== 
- 
-<code bash> 
-ip route get 1 | sed 's/^.*src \([^ ]*\).*$/\1/;q' 
-</code> 
- 
----- 
- 
-<code bash> 
-ip route get 1 | awk '{print $7}' 
-</code> 
  
ubuntu/network/get_local_ip_address.1598388009.txt.gz · Last modified: 2020/08/25 20:40 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki