نت پلن netplan ubuntu 22.4

author
3 minutes, 7 seconds Read

Ubuntu Server 20.04 configure OVH failover IP

To configure IP in Ubuntu 20.04 guest, create file

1vi /etc/netplan/50-cloud-init.yaml

add following content

123456789101112131415network:    version: 2    ethernets:        eth0:            addresses:                – YOUR_FO_IP_HERE/32            nameservers:                addresses:                    – 1.1.1.1                search: []            optional: true            routes:                – to: 0.0.0.0/0                  via: YOUR_GW_IP_HERE                  on-link: true

example

1234567891011121314151617root@easyengine:~# cat /etc/netplan/50-cloud-init.yamlnetwork:    version: 2    ethernets:        eth0:            addresses:                – 164.132.150.95/32            nameservers:                addresses:                    – 1.1.1.1                search: []            optional: true            routes:                – to: 0.0.0.0/0                  via: 51.255.79.254                  on-link: fev1354@gmail.com:~#

Test network config using

1netplan try

If everything works fine, you can apply the changes with

1netplan apply

See OVHnetplanhttps://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3527572573766151&output=html&h=280&slotname=1284802799&adk=2287826343&adf=3729577814&pi=t.ma~as.1284802799&w=1200&fwrn=4&fwrnh=100&lmt=1673100183&rafmt=1&format=1200×280&url=https%3A%2F%2Fserverok.in%2Fubuntu-server-20-04-configure-ovh-failover-ip&fwr=0&fwrattr=true&rpe=1&resp_fmts=3&wgl=1&uach=WyJXaW5kb3dzIiwiMTAuMC4wIiwieDg2IiwiIiwiMTA4LjAuNTM1OS4xMjUiLFtdLGZhbHNlLG51bGwsIjY0IixbWyJOb3Q_QV9CcmFuZCIsIjguMC4wLjAiXSxbIkNocm9taXVtIiwiMTA4LjAuNTM1OS4xMjUiXSxbIkdvb2dsZSBDaHJvbWUiLCIxMDguMC41MzU5LjEyNSJdXSxmYWxzZV0.&dt=1673100163148&bpp=4&bdt=19812&idt=20656&shv=r20230104&mjsv=m202212010101&ptt=9&saldr=aa&abxe=1&prev_fmts=0x0&nras=1&correlator=6661408494249&frm=20&pv=1&ga_vid=629529061.1673100118&ga_sid=1673100184&ga_hid=1577446975&ga_fc=1&u_tz=210&u_his=1&u_h=1080&u_w=1920&u_ah=1040&u_aw=1920&u_cd=24&u_sd=1&dmc=4&adx=352&ady=1418&biw=1903&bih=937&scr_x=0&scr_y=400&eid=44759875%2C44759926%2C44759837%2C31071199%2C44773746&oid=2&pvsid=3716299911336482&tmod=905406698&uas=1&nvt=1&ref=https%3A%2F%2Fwww.google.com%2F&eae=0&fc=1920&brdim=0%2C0%2C0%2C0%2C1920%2C0%2C1920%2C1040%2C1920%2C937&vis=1&rsz=%7C%7CeEbr%7C&abl=CS&pfx=0&fu=128&bc=31&ifi=2&uci=a!2&btvi=1&fsb=1&xpc=odtBjXsYxF&p=https%3A//serverok.in&dtd=20663Need help with Linux Server or WordPress? We can help! Contact Us

 2 Comments

  •  StormMadness says:Can confirm: this works like a charm on a fresh Ubuntu Server 20.04 install. I’m using Proxmox 7.0-10 on an OVH dedicated server.Thank you good sir!Reply
  •  Nerio Espina says:It works!
    Thank you!
    I’m using Ubuntu 20.04OVH should have an explanation like this.Reply

Leave a Reply

Your email address will not be published. Required fields are marked *Comment *Name *Email *

author

admin

25 سال است درکارمان تجربه داریم وبیشتر تمرکز شرکت ارائه کار خوب وعالی به مشتری است

Similar Posts

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *