5.4. Configuring IPv4 Settings
Configuring IPv4 Settings with control-center
Procedure
- Press the Super key to enter the Activities Overview, type Settings and then press Enter. Then, select the
Networktab on the left-hand side, and the Network settings tool appears. Proceed to the section called “Configuring New Connections with control-center”. - Select the connection that you want to edit and click on the gear wheel icon. The
Editingdialog appears. - Click the IPv4 menu entry.
The IPv4 menu entry allows you to configure the method used to connect to a network, to enter
IP address,DNS and route information as required. The IPv4 menu entry is available when you create and modify one of the following connection types: wired, wireless, mobile broadband, VPN or DSL.
If you are using
DHCP to obtain a dynamic IP address from a DHCP server, you can simply set Addresses to .
If you need to configure static routes, see Section 4.3, “Configuring Static Routes with GUI”.
Setting the Method for IPV4 Using nm-connection-editor
You can use the nm-connection-editor to edit and configure connection settings. This procedure describes how you can configure the
IPv4 settings:
Procedure
- Enter nm-connection-editor in a terminal.
- For an existing connection type, click the gear wheel icon.
Figure 5.2. Editing a connection
- Click IPv4 Settings.
Figure 5.3. Configuring IPv4 Settings
Available IPv4 Methods by Connection Type
When you click the Method drop-down menu, depending on the type of connection you are configuring, you are able to select one of the following
IPv4 connection methods. All of the methods are listed here according to which connection type, or types, they are associated with:
- Wired, Wireless and DSL Connection Methods
- — Choose this option if the network you are connecting to uses a
DHCPserver to assignIPaddresses. You do not need to fill in the DHCP client ID field.— Choose this option if the network you are connecting to uses aDHCPserver to assignIPaddresses but you want to assignDNSservers manually.— Choose this option if you want to assignIPaddresses manually.— Choose this option if the network you are connecting to does not have aDHCPserver and you do not want to assignIPaddresses manually. Random addresses will be assigned as per RFC 3927 with prefix169.254/16.— Choose this option if the interface you are configuring is for sharing an Internet or WAN connection. The interface is assigned an address in the10.42.x.1/24range, aDHCPserver andDNSserver are started, and the interface is connected to the default network connection on the system with network address translation (NAT).—IPv4is disabled for this connection. - Mobile Broadband Connection Methods
- — Choose this option if the network you are connecting to assigns your
IPaddress andDNSservers automatically.— Choose this option if the network you are connecting to assigns yourIPaddress automatically, but you want to manually specifyDNSservers. - VPN Connection Methods
- — Choose this option if the network you are connecting to assigns your
IPaddress andDNSservers automatically.— Choose this option if the network you are connecting to assigns yourIPaddress automatically, but you want to manually specifyDNSservers. - DSL Connection Methods
- — Choose this option if the network you are connecting to assigns your
IPaddress andDNSservers automatically.— Choose this option if the network you are connecting to assigns yourIPaddress automatically, but you want to manually specifyDNSservers.
If you are using
DHCP to obtain a dynamic IP address from a DHCP server, you can simply set Method to .
If you need to configure static routes, click the button and for more details on configuration options, see Section 4.3, “Configuring Static Routes with GUI”.