Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Següent revisió | Revisió prèvia | ||
| linux:tcpip:ips [11/11/2016 02:51] – creat mate | linux:tcpip:ips [30/05/2026 04:29] (actual) – mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| - | = configuración IP | + | = ip |
| + | == comandos | ||
| + | == mi ip local | ||
| + | <code bash>ip addr show eth0 | grep 'inet ' | awk ' | ||
| + | ip addr show</ | ||
| + | * ifconfig -a | ||
| + | * ip addr (ip a) | ||
| + | * hostname -I | awk ' | ||
| + | * ip route get 1.2.3.4 | awk ' | ||
| + | * (Fedora) Wifi-Settings→ click the setting icon next to the Wifi name that you are connected to → Ipv4 and Ipv6 both can be seen | ||
| + | * nmcli -p device show | ||
| + | |||
| + | == mi ip pública | ||
| + | * curl ifconfig.me | ||
| + | * curl -4/-6 icanhazip.com | ||
| + | * curl ipinfo.io/ | ||
| + | * curl api.ipify.org | ||
| + | * curl checkip.dyndns.org | ||
| + | * dig +short myip.opendns.com @resolver1.opendns.com | ||
| + | * host myip.opendns.com resolver1.opendns.com | ||
| + | * curl ident.me | ||
| + | * curl bot.whatismyipaddress.com | ||
| + | * curl ipecho.net/ | ||
| == ip manual temporal | == ip manual temporal | ||
| + | |||
| == ip manual fija | == ip manual fija | ||
| + | === Debian 13 | ||
| + | <code bash> | ||
| + | sudo nmcli connection modify "Wired connection 1" ipv4.method manual ipv4.addresses 192.168.30.43/ | ||
| + | sudo nmcli connection up "Wired connection 1" # pierdes conexión | ||
| + | </ | ||
| + | |||
| + | === debian menos old | ||
| + | Versiones posteriores:< | ||
| + | interface eth0 | ||
| + | static ip_address=192.168.1.141/ | ||
| + | static routers=192.168.1.1 | ||
| + | static domain_name_servers=192.168.1.1 | ||
| + | </ | ||
| + | |||
| + | === debian old | ||
| <code bash / | <code bash / | ||
| allow-hotplug eth0 | allow-hotplug eth0 | ||
| Línia 17: | Línia 56: | ||
| </ | </ | ||
| - | Versiones posteriores: | + | para añadir un "IP Alias" (otra IP, vamos):< |
| - | <code bash / | + | |
| - | interface eth0 | + | |
| - | static ip_address=192.168.1.141/ | + | |
| - | static routers=192.168.1.1 | + | |
| - | static domain_name_servers=192.168.1.1 | + | |
| - | </ | + | |
| - | + | ||
| - | En RedHat está en ''/ | + | |
| - | + | ||
| - | para añadir un "IP Alias" (otra IP, vamos): | + | |
| - | <code bash / | + | |
| auto eth0:0 | auto eth0:0 | ||
| iface eth0:0 inet static | iface eth0:0 inet static | ||
| Línia 37: | Línia 65: | ||
| gateway 192.168.1.1 | gateway 192.168.1.1 | ||
| </ | </ | ||
| - | |||