Forums Search Login Register
Login
Username
Password
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,349
Trophies:
1
Hi there,

Just upgraded to 20.04 having had the server running 18.04 - I did a clean install. I also changed my router which came with a new subnet and I was hoping someone might be able to help me configure the Netplan to set a static IP.

The router IP is 192.168.3.1, with its WAN IP being 192.168.1.200 with the overall networks default gateway being 192.168.1.1

Realise this is probably more of a networking rather than Ubuntu specific question, but hope someone might be able to tell me if I need to use routing etc


Code:
# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:   
ethernets:       
enp0s3:           
dhcp4: false           
addresses: [192.168.3.10/24]           
gateway4: 192.168.1.1           
nameservers:             
addresses: [8.8.8.8,8.8.4.4]           
routes:           
- to: 192.168.1.1/24             
via: 192.168.1.200
09-17-2020, 07:23 AM
Reply
Subscribe to this thread Subscribed Users  Add Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  using netplan to create a gateway itsmeamandaneode 0 15 07-31-2020 10:43 AM
Last Post: itsmeamandaneode
  Netplan/subiquity config first active link? nandymorenoi 0 13 07-28-2020 12:31 PM
Last Post: nandymorenoi
  routing eth0 data to eth1 with netplan FrancheskaF 0 215 03-05-2018 08:23 AM
Last Post: FrancheskaF
  [ubuntu] Clean install of 16.10 Desktop hangs at "Configuring update-notifier-common" ftishabergers 0 434 11-15-2016 07:52 PM
Last Post: ftishabergers
  [ubuntu] Stuck at configuring-apt during install of Ubuntu Server 12.04.4 nteddyflowccsj 0 445 02-20-2014 04:11 AM
Last Post: nteddyflowccsj
  Configuring audio jack like it is done in REALTEK audio manager under windows benitooshiro 0 796 02-06-2014 06:10 PM
Last Post: benitooshiro
  [gnome] Want help configuring toolbars, workspaces, and compiz Trevor 0 240 01-25-2014 01:33 PM
Last Post: Trevor
  [ubuntu] I need help configuring postfix iclarindaboltona 0 181 11-25-2013 09:07 PM
Last Post: iclarindaboltona
  [ubuntu] Configuring Wireless Network on Ubuntu 12.04 Desktop bfrankgonzaluuu 0 160 11-17-2013 07:06 AM
Last Post: bfrankgonzaluuu
  Configuring Apache2 for Rails on Ubuntu 12, Xen VPS yterrencefinleya 0 205 11-10-2013 03:02 PM
Last Post: yterrencefinleya

Forum Jump:



User(s) browsing this thread: 1 Guest(s)



Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2020