Hoje deixo-vos aqui um pequeno tutorial a explicar como configurar um ip fixo, no Ubuntu 20.04.
Vamos começar por criar o seguinte ficheiro
# touch /etc/netplan/00-installer-config.yaml
Partindo do principio que a máquina se encontra na gama de ip's 192.168.0.x, vamos então proceder à atribuição do IP 192.168.0.250. Para tal, é necessário colocar no ficheiro recem criado o seguinte:
network:
version: 2
ethernets:
eth0:
addresses: [192.168.0.250/24]
gateway4: 192.168.0.254
nameservers:
addresses: [192.168.0.254, 8.8.8.8]
vamos agora testar as configurações, correndo o comando
# netplan try
deverão ver o seguinte
o que demonstrará que as configurações estão a funcionar correctamente. Resta-vos apenas atribuí-las como permantes, atravês do comando
# netplan apply
Pedro Resende
With over two decades of experience as a Full Stack Developer, I have journeyed through diverse facets of software development. Commencing with the creation of compact institutional websites, I progressed to crafting portals for insurance brokers and contributed to substantial projects for renowned companies such as MS Amlin. My expertise expanded further by delving into product development for Advertiser Kwanko and collaborating with startups in their pivotal ramp-up stages. Notably, I've been involved in architecting extensive e-commerce solutions for global enterprises like Wayfair.
I currently serve as the Tech Lead at Emergn, contributing to the establishment and advancement of the Strategyzer client.