Ga naar inhoud


Debian vaste ip


dark-angel-djin

Aanbevolen berichten


ff copy paste andere site (ggogle op debian en cccam).

 

Assigning static IP

Log in as root with the right password

then type in the following command

 

Code:

vim /etc/network/interfacesnow remove the following line

 

Code:

iface eth0 inet dhcpand replace it with

 

Code:

auto eth0

iface eth0 inet static

address 192.168.1.225

netmask 255.255.255.0

broadcast 192.168.1.255

gateway 192.168.1.1These IP adresses might be different for you're situation.

Remember to replace them with the numbers you need.

You can save the file with the following commands

 

Code:

<esc>:wqOnce the file is saved, you can restart the network and check if you're linux server is running with it's new IP adress

 

Code:

/etc/init.d/networking restart

ifconfig

Link naar reactie
Delen op andere sites

Maak een account aan of log in om te reageren

Je moet een lid zijn om een reactie te kunnen achterlaten

Account aanmaken

Registreer voor een nieuwe account in onze community. Het is erg gemakkelijk!

Registreer een nieuwe account

Inloggen

Heb je reeds een account? Log hier in.

Nu inloggen
  • Wie is er online   0 leden

    • Er zijn geen geregistreerde gebruikers deze pagina aan het bekijken
×
×
  • Nieuwe aanmaken...