IP CONFIG
IP CONFIG
sudo su
ifconfig
(Note- inet addr: 192.168.5.156 and Mask 255.255.255.0)
ip route sho
(Note- defaul via 192.168.5.1 dev)
gedit /etc/network/interfaces
Add following lines with the network credentials. Following lines contains example network details. Add your own network details.
(e.g. free google DNS: 8.8.8.8)
auto eth0
iface eth0 inet static
address 192.168.5.156
gateway 192.168.5.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8
systemctl restart network-manager.service
systemctl restart networking.service
systemctl restart resolvconf.service
sudo -i
apt install resolvconf
systemctl enable resolvconf.service
systemctl start resolvconf.service
systemctl status resolvconf.service
sudo service networking restart
sudo /etc/init.d/resolvconf restart
Comments
Post a Comment