]>
Commit | Line | Data |
---|---|---|
0247f794 AL |
1 | .. _sysadmin_network_configuration: |
2 | ||
04e24b14 DW |
3 | Network Management |
4 | ================== | |
5 | ||
6 | Proxmox Backup Server provides both a web interface and a command line tool for | |
7 | network configuration. You can find the configuration options in the web | |
8 | interface under the **Network Interfaces** section of the **Configuration** menu | |
9 | tree item. The command line tool is accessed via the ``network`` subcommand. | |
10 | These interfaces allow you to carry out some basic network management tasks, | |
11 | such as adding, configuring, and removing network interfaces. | |
12 | ||
13 | .. note:: Any changes made to the network configuration are not | |
14 | applied, until you click on **Apply Configuration** or enter the ``network | |
15 | reload`` command. This allows you to make many changes at once. It also allows | |
16 | you to ensure that your changes are correct before applying them, as making a | |
17 | mistake here can render the server inaccessible over the network. | |
18 | ||
19 | To get a list of available interfaces, use the following command: | |
20 | ||
21 | .. code-block:: console | |
22 | ||
23 | # proxmox-backup-manager network list | |
24 | ┌───────┬────────┬───────────┬────────┬─────────────┬──────────────┬──────────────┐ | |
25 | │ name │ type │ autostart │ method │ address │ gateway │ ports/slaves │ | |
26 | ╞═══════╪════════╪═══════════╪════════╪═════════════╪══════════════╪══════════════╡ | |
27 | │ bond0 │ bond │ 1 │ static │ x.x.x.x/x │ x.x.x.x │ ens18 ens19 │ | |
28 | ├───────┼────────┼───────────┼────────┼─────────────┼──────────────┼──────────────┤ | |
29 | │ ens18 │ eth │ 1 │ manual │ │ │ │ | |
30 | ├───────┼────────┼───────────┼────────┼─────────────┼──────────────┼──────────────┤ | |
31 | │ ens19 │ eth │ 1 │ manual │ │ │ │ | |
32 | └───────┴────────┴───────────┴────────┴─────────────┴──────────────┴──────────────┘ | |
33 | ||
34 | .. image:: images/screenshots/pbs-gui-network-create-bond.png | |
35 | :align: right | |
36 | :alt: Add a network interface | |
37 | ||
38 | To add a new network interface, use the ``create`` subcommand with the relevant | |
39 | parameters. For example, you may want to set up a bond, for the purpose of | |
40 | network redundancy. The following command shows a template for creating the bond shown | |
41 | in the list above: | |
42 | ||
43 | .. code-block:: console | |
44 | ||
45 | # proxmox-backup-manager network create bond0 --type bond --bond_mode active-backup --slaves ens18,ens19 --autostart true --cidr x.x.x.x/x --gateway x.x.x.x | |
46 | ||
47 | You can make changes to the configuration of a network interface with the | |
48 | ``update`` subcommand: | |
49 | ||
50 | .. code-block:: console | |
51 | ||
52 | # proxmox-backup-manager network update bond0 --cidr y.y.y.y/y | |
53 | ||
54 | You can also remove a network interface: | |
55 | ||
56 | .. code-block:: console | |
57 | ||
58 | # proxmox-backup-manager network remove bond0 | |
59 | ||
60 | The pending changes for the network configuration file will appear at the bottom of the | |
61 | web interface. You can also view these changes, by using the command: | |
62 | ||
63 | .. code-block:: console | |
64 | ||
65 | # proxmox-backup-manager network changes | |
66 | ||
67 | If you would like to cancel all changes at this point, you can either click on | |
68 | the **Revert** button or use the following command: | |
69 | ||
70 | .. code-block:: console | |
71 | ||
72 | # proxmox-backup-manager network revert | |
73 | ||
74 | If you are happy with the changes and would like to write them into the | |
75 | configuration file, select **Apply Configuration**. The corresponding command | |
76 | is: | |
77 | ||
78 | .. code-block:: console | |
79 | ||
80 | # proxmox-backup-manager network reload | |
81 | ||
82 | .. note:: This command and corresponding GUI button rely on the ``ifreload`` | |
83 | command, from the package ``ifupdown2``. This package is included within the | |
84 | Proxmox Backup Server installation, however, you may have to install it yourself, | |
85 | if you have installed Proxmox Backup Server on top of Debian or Proxmox VE. | |
86 | ||
87 | You can also configure DNS settings, from the **DNS** section | |
88 | of **Configuration** or by using the ``dns`` subcommand of | |
89 | ``proxmox-backup-manager``. | |
90 |