sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
2) Configure your card for static ip address
sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.1
gateway 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
After entering all the details you need to restart networking services using the following command
sudo /etc/init.d/networking restart
3) Setting up DNS server
sudo vi /etc/resolv.conf
search localhost
nameserver 192.168.0.2
0 comments:
Post a Comment