Change computer name

sudo hostname new-name-here

sudo gedit(nano or vim) /etc/hostname

sudo gedit(nano or vim) /etc/hosts

127.0.0.1    localhost
127.0.1.1    kali-ws-01.local    kali-ws-01

Modify network interfaces

sudo gedit(nano or vim) /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

# The Internal vSwitch interface
auto eth1
iface eth1 inet static
address 172.16.56.4
gateway 172.16.56.1
broadcast 172.16.56.255
netmask 255.255.255.0

Restart network service in Debian

/etc/init.d/networking stop

/etc/init.d/networking start

systemctl start networking.service

systemctl stop networking.service

systemctl start smbd.service

systemctl stop smbd.service

Restart network interface

ifdown eth0

ifup eth0

results matching ""

    No results matching ""