To start off, im not an Ubuntu Expert (or even remotely), so please bear with me.
I want to have an ubuntu Server which should be connected to 2 IP Adress Ranges:
10.1.1.X (which is connected to the Internet) and 10.1.5.X (which is connected to a couple local machines).
Now the Setup used to work (I had an Internet Connection) when I used the DHCP Server Adress in 10.1.1.X and I didnt change anything Hardware Wise.
I changed the NetworkManager conf and for locally connecting, everything works as it should (I can reach the Server over 10.1.1.200 and 10.1.5.3).
I can even ping my DNS Server from ssh over 10.1.1.200 (10.1.1.10 / 10.1.1.101) but I cannot connect to the Internet:
ip a; ip r; cat /etc/netplan/*.yaml reveals the following:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group defaul
t qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group de
fault qlen 1000
link/ether 00:0c:29:f1:4a:3f brd ff:ff:ff:ff:ff:ff
altname enp3s0
inet 10.1.1.200/24 brd 10.1.1.255 scope global noprefixroute ens160
valid_lft forever preferred_lft forever
inet 10.1.5.3/24 brd 10.1.5.255 scope global noprefixroute ens160
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fef1:4a3f/64 scope link
valid_lft forever preferred_lft forever
10.1.1.0/24 dev ens160 proto kernel scope link src 10.1.1.200 metric 100
10.1.5.0/24 dev ens160 proto kernel scope link src 10.1.5.3 metric 100
169.254.0.0/16 dev ens160 scope link metric 1000
Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ethernets:
ens160:
addresses:
- 10.1.1.200/24
- 10.1.5.3/24
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
This is my /etc/resolv.conf
Generated by NetworkManager
nameserver 8.8.8.8
nameserver 1.1.1.1
If I do host google.com it will only give me:
;; connection timed out; no servers could be reached
Do you guys know what might help ? I have no clue where I went wrong.
Thank you!