Answers for "linux ip representation"

23

display ip address linux

#private ip
hostname -I
or
ifconfig
or
ip addr show

#public ip
curl ifconfig.me
Posted by: Guest on December-02-2020
1

linux ip addr add

sudo ip addr add 192.168.50.5/24 dev eth1
Posted by: Guest on August-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language