corollaattori
September 2nd, 2020, 04:27 PM
Configuration is as follows: Fortinet VPN router without DHCP that has direct internet access. Behind that is Switch and Ubuntu server with DHCP. I managed to get DHCP running and other computers connected to that switch gets ip and internet works. But server itself fails to connect internet and takes few minutes to boot because of that.
I tried configuring it with that guide, but no luck.
https://ubuntu.com/server/docs/network-configuration
Static IP Address AssignmentTo configure your system to use static address assignment, create a netplan configuration in the file /etc/netplan/99_config.yaml. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the addresses, gateway4, and nameservers values to meet the requirements of your network.
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 10.10.10.2/24
gateway4: 10.10.10.1
nameservers:
search: [mydomain, otherdomain]
addresses: [10.10.10.1, 1.1.1.1]
The configuration can then be applied using the netplan command.
sudo netplan apply
I now see that there are different guides with other netplan configs. Which is correct and simplest way to do it?
http://itprohelper.com/setting-up-static-ip-on-ubuntu-server-20-04-lts/
https://i.postimg.cc/Y2PTHBQs/Whats-App-Image-2020-09-02-at-17-55-54.jpg
If i share wired network from my Ubuntu laptop it works fine, so only static config is flawed.
Server also runs when finished Mate desktop and is Samba fileserver with WXP and W10 in virtualbox. Is Ubuntu Server best choice, or should i install desktop version of Ubuntu Mate instead, and add server components to that? Stability is most important. Main function is to use those windowses remotely with RDP and to be DHCP and file server.
I tried configuring it with that guide, but no luck.
https://ubuntu.com/server/docs/network-configuration
Static IP Address AssignmentTo configure your system to use static address assignment, create a netplan configuration in the file /etc/netplan/99_config.yaml. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the addresses, gateway4, and nameservers values to meet the requirements of your network.
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 10.10.10.2/24
gateway4: 10.10.10.1
nameservers:
search: [mydomain, otherdomain]
addresses: [10.10.10.1, 1.1.1.1]
The configuration can then be applied using the netplan command.
sudo netplan apply
I now see that there are different guides with other netplan configs. Which is correct and simplest way to do it?
http://itprohelper.com/setting-up-static-ip-on-ubuntu-server-20-04-lts/
https://i.postimg.cc/Y2PTHBQs/Whats-App-Image-2020-09-02-at-17-55-54.jpg
If i share wired network from my Ubuntu laptop it works fine, so only static config is flawed.
Server also runs when finished Mate desktop and is Samba fileserver with WXP and W10 in virtualbox. Is Ubuntu Server best choice, or should i install desktop version of Ubuntu Mate instead, and add server components to that? Stability is most important. Main function is to use those windowses remotely with RDP and to be DHCP and file server.