Update docs/tech_docs/proxmox_dhcp.md
This commit is contained in:
@@ -8,7 +8,7 @@ For your standalone Proxmox setup, switching between static and dynamic IP confi
|
||||
cp /etc/network/interfaces /etc/network/interfaces.bak
|
||||
```
|
||||
|
||||
1. **Update Network Interface Configuration:**
|
||||
- **Update Network Interface Configuration:**
|
||||
- Open `/etc/network/interfaces` in a text editor:
|
||||
```bash
|
||||
vim /etc/network/interfaces
|
||||
@@ -23,19 +23,19 @@ cp /etc/network/interfaces /etc/network/interfaces.bak
|
||||
```
|
||||
- Save the changes and exit the editor.
|
||||
|
||||
2. **Restart Networking to Apply Changes:**
|
||||
- **Restart Networking to Apply Changes:**
|
||||
- Apply the new network settings:
|
||||
```bash
|
||||
systemctl restart networking
|
||||
```
|
||||
|
||||
3. **Find the New DHCP-Assigned IP Address:**
|
||||
- **Find the New DHCP-Assigned IP Address:**
|
||||
- After the network restarts, check the assigned IP:
|
||||
```bash
|
||||
ip addr show vmbr0
|
||||
```
|
||||
|
||||
4. **Update `/etc/hosts` with the New IP:**
|
||||
- **Update `/etc/hosts` with the New IP:**
|
||||
- Edit the `/etc/hosts` file to replace the old static IP with the new one:
|
||||
```bash
|
||||
nano /etc/hosts
|
||||
@@ -49,7 +49,7 @@ cp /etc/network/interfaces /etc/network/interfaces.bak
|
||||
|
||||
### Creating a New Virtual Bridge (`vmbrX`):
|
||||
|
||||
1. **Add a New Virtual Bridge Configuration:**
|
||||
- **Add a New Virtual Bridge Configuration:**
|
||||
- Edit `/etc/network/interfaces`:
|
||||
```bash
|
||||
vim /etc/network/interfaces
|
||||
@@ -64,7 +64,7 @@ cp /etc/network/interfaces /etc/network/interfaces.bak
|
||||
```
|
||||
- Save and exit the editor.
|
||||
|
||||
2. **Activate the New Bridge:**
|
||||
- **Activate the New Bridge:**
|
||||
- Restart the networking service to bring up the new bridge:
|
||||
```bash
|
||||
systemctl restart networking
|
||||
|
||||
Reference in New Issue
Block a user