to add the gateway to this command
sudo ip a add 172.16.0.2/16 dev enp0s3
i would like to add there the gateway is it possible?
assuming it is the gateway for ip addresses in the subnet 172.16.0.0/16, you can do sudo ip route add 172.16.0.0/16 via <gateway ip> dev enp0s3
Обсуждают сегодня