Configuring Your Network Address

As with the configuration of the network interface, you need to work on a certain network object. To configure the addressing of a network interface, you need to work with the addr (address) object. The ip addr command is similar to ifconfig in what information it needs to configure the address:

As would be the case with ifconfig, you tell ip to edit the address of the device eth0, adding the IP address of

We talked about virtual adapters earlier in the chapter, and the configuration with ip is as simple (if not simpler) to configure. If you want your network interface to listen to more than one address, simply use the same format as shown for the initial network address with a different IP. This will add the address to the adapter, which can be viewed using the ip addr show command (see Listing 15-5).

Was this article helpful?

0 0

Post a comment