Dino Geek, try to help you

How to set a static IP to an OpenVZ container?


Follow the steps listed below to set a static IP to an OpenVZ container.

1. Assume a container with CTID `101`, you can replace it according to your case.

1. Stop the OpenVZ container:

```
vzctl stop 101
```

1. Set up a new IP:

```
vzctl set 101 —ipadd 192.0.2.1 —save
```

Remember to replace `192.0.2.1` with the IP address you want to set.

1. If you want to delete the old IP:

```
vzctl set 101 —ipdel 203.0.113.1 —save
```

Replace `203.0.113.1` with the old IP address.

1. Now start your OpenVZ container:

```
vzctl start 101
```

1. You can then check your new configuration:

```
vzlist -a
```

The output should show that your changes have taken effect. Remember that you need to have the necessary permissions to perform these changes.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use