Configuring veth Adapter ParametersWhile functioning in the virtual network mode, each Container virtual network adapter appears as a full participant on the network to which it is connected and needs to have its own identity on this network.
Fist of all, to start functioning on a TCP/IP network, a
# pctl set 101 --ifname eth1 --ipadd 192.168.144.123 --save Saved parameters for Container 101
This command sets an IP address of
# pctl set 101 --ifname eth1 --dhcp yes --save Saved parameters for Container 101 Any static IP address assigned to the Container virtual network adapter can be removed by executing the following command: # pctl set 101 --ifname eth1 --ipdel 192.168.144.123 --save Saved parameters for Container 101 You can also delete all IP addresses set for Container 101 at once: # pctl set 101 --ifname eth1 --ipdel all --save Saved parameters for Container 101 You may also wish to set the following parameters for a Container network adapter:
Detailed information on all options which can be used with the
|
||||
|