ورود

View Full Version : آموزش: IP Settings - Debian & Ubuntu



darklove
دوشنبه 15 آذر 1389, 16:40 عصر
~~ Edit host name ~~
nano /etc/hostname
Linux-Test

~~ Ip Address ~~
nano /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.11
netmask 255.255.255.0
gateway 192.168.0.1

~~ Add DNS ~~
cat /dev/null > /etc/resolv.conf
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 4.2.2.5" >> /etc/resolv.conf

~~ Restart network service ~~
/etc/init.d/networking restart