1 - Edit the configuration file for the desired network:
$ sudo nano /etc/network/interfaces.d/eth0
$ iface eth0 inet static
address 10.1.1.125
netmask 255.0.0.0
gateway 10.1.1.1
2 - After commiting changes to a network interface such as set static ip's, there would be need of reset the network interfaces.
For this, two methods can be used to bring interfaces up or down:
- Restarting services
service networking restart
- Set interfaces Up/Down
# ip link set dev eth0 up
# ip link set dev eth0 down
No hay comentarios:
Publicar un comentario