As Linux distributions quickly become more cloud-compatible, network configurations become more complex and flexible. SUSE introduced the network management tool to manage cloud and cloud-ready networking.
With the introduction of SUSE Linux Enterprise Server (SLES) 12, wicked is changing the way the network is addressed. Wicked is a central service that manages all the scripts that store the Linux network configuration. The wicked command also requests information about the current state of network interfaces.
Admins won’t see any major changes because you can still use front-end tools like the ip command or the YaST management interface. Now you can also use the nasty command line utility.
Listing 1: This is a typical Linux network configuration in an ifcfg script.
Let’s be mean
Use this procedure to manipulate the Linux network configuration and explore wicked. It illustrates the generic interface for administrators. Start with display all for an overview of the current interface configuration (see list 2).
Listing 2: This is typical interface information displayed via display all.
linux-kscc: / etc / sysconfig / network # display all
link: 1, indicate
config: compat: / etc / sysconfig / network / ifcfg-lo
leases: static ipv4 granted
address: ipv4 127.0.0.1/8
address: ipv6 :: 1/128
link: # 2, state, mtu 1500
type: ethernet, hwaddr 00: 0c: 29: 3e: d8: 59
config: compat: / etc / sysconfig / network / ifcfg-ens33
leases: static ipv4 granted
address: ipv4 192.168.4.12/24
Then open the file / etc / sysconfig / network / ifcfg-YOURINTERFACE with an editor and add the line IPADDR2 = ‘192.168.4.13 / 24’ or something similar that matches your current network configuration. Type nasty ifreload ens33 to activate the configuration of the network card. To see the IP address associated with this host, type nasty check solve To www.sandervanvugt.com. Then use wicked control route 126.96.36.199 to see if the server with the IP address 188.8.131.52 is reachable. If you change the network configuration files, you need to restart or reload wicked.
Wicked provides an alternative to many older Linux network configuration and parameter modification utilities. You can stop using so low and so high, among other tools that interact with the old style of network configuration files. Wicked also completely replaces Network Manager, which was used in older SLES and other Linux distributions. It consisted of a service and a front-end utility to manage network configuration and cards.
About the Author:
Sander van Vugt is an independent trainer and consultant based in the Netherlands. He is an expert in high availability, virtualization and Linux performance. He is the author of numerous books on Linux topics including Beginning the Linux Command Line, Beginning Ubuntu LTS Server Administration, and Pro Ubuntu Server Administration.