This command will add the IP address 192.168.174.22
as an alias (eth0:0
) to the eth0
interface.
sudo ifconfig eth0:0 192.168.174.22 netmask 255.255.255.0 up
If you prefer to use the ip
command, you can achieve the same with:
sudo ip addr add 192.168.174.22/24 dev eth0
IP route default GW
sudo ip route add default via 192.168.174.21
No hay comentarios:
Publicar un comentario