# 4ipnet\_ConfEditor

cloudinit [http:\\/\\/cloudinit.readthedocs.io\\/en\\/latest\\/](http://cloudinit.readthedocs.io/en/latest/)

Set static ip of ubuntu server

```
echo -e "
iface eth0 inet static\n
address 100.64.144.4\n
gateway 100.64.144.254\n
netmask 255.255.255.0\n" >> /etc/network/interfaces

/etc/init.d/network restart (restart network service)
```

裡面比較特別可以用的是

cloud-init-per cloud-init

You can check by ubuntu help of these two commands.

Upload I

Use bash in cloud init

Add bash in $(genisoimage) to make it into user-data, and it can become a root level script


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fashaun.gitbook.io/gw-feature/4ipnetnfv/4ipnetconfeditor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
