Mainos / Advertisement:
Ero sivun ”Debian verkkokonfiguraatio/en” versioiden välillä
Siirry navigaatioon
Siirry hakuun
(Ak: Uusi sivu: Example DHCP configuration:) |
(Ak: Uusi sivu: Once you have altered the configurations you must restart the networking service for the changes to take effect.) |
||
Rivi 28: | Rivi 28: | ||
iface eth0 inet dhcp | iface eth0 inet dhcp | ||
− | + | Once you have altered the configurations you must restart the networking service for the changes to take effect. | |
service networking restart | service networking restart |
Versio 29. heinäkuuta 2015 kello 08.53
Interfaces
Debian's network configurations can be found from this file:
nano /etc/network/interfaces
Example of static IP-address configuration:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address ... netmask ... gateway ...
- address = IP address, for example 192.168.1.22
- netmask = Subnet mask, for example 255.255.255.0
- gateway = Default gateway, for example 192.168.1.1
Example DHCP configuration:
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp
Once you have altered the configurations you must restart the networking service for the changes to take effect.
service networking restart
ifconfig
ifconfig
komennolla näet nykyiset interfacet sekä verkkokonfiguraation
Mainos / Advertisement: