auto eth0
iface eth0 inet static
address 10.1.1.25
netmask 255.0.0.0
gateway 10.1.1.1
mtu 1492
Já em dhcp
Permanent change
To make this change permanent without having to redo this command after each reboot, we need to add a small script to be executed during the computer start-up when the network card become active. To do this, we must first create the script in the "/etc/network/if-up" folder.
You can use gedit, kate or your favorite text editor like this:
sudo vim /etc/network/if-up.d/mtu
# conteúdo do script
#!/bin/sh
ifconfig eth0 mtu 1480
# altere as permissões
sudo chmod 755 /etc/network/if-up.d/mtu
Nenhum comentário:
Postar um comentário
Insira seu comentário - O mesmo será submetido à aprovação!