【Kali Linux】 network setup guide

[Kali Linux] Network Setup guide


Introduction

This is The Network Configuration For Kali Linux.

1. Permanent configuration

Edit The /etc/network/interfaces
File With An Editor Such As gedit or vi.
Add The Following Lines At The End Of The File.

1
2
3
4
5
auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp

Verify that the file’s
complete contents are displayed as follows.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
┌──(User㉿kali)-[~]
└─$ cat /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

auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet dhcp
┌──(User㉿kali)-[~]
└─$

Now run the command below
to apply the network settings.

1
2
┌──(User㉿kali)-[~]
└─$ systemctl restart networking

Also, both adapters will
be configured automatically even after rebooting.

Source

🪔 Source

Done