# Linux networking

### No internet

#### Method 1

get network interface

```bash
ip a
```

bring up the interface

```bash
sudo ip link set INTERFACE_NAME up
sudo /sbin/dhclient INTERFACE_NAME
```

try connecting to the internet

```
ping 1.1.1.1
```

also check apt sources list

```bash
nano /etc/apt/sources.list
```

ensure sources are there

```
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
```