课程: Linux System Engineer: Networking and SSH
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Manual network interface configuration
- [Instructor] Network interface configuration files control the interfaces for individual network devices. As the system boots, these files are read and the network interfaces are configured or possible ignored depending on the configuration. These files are stored in /etc/sysconfig/network-scripts and named ifcfg-name where name is the name of the network interface. For instance, the configuration file for the enp0s3 network interface would be /etc/sysconfig/network-scripts/ifcfg-enp0s3. The network interface is also named inside of the file as well. Generally it's a good idea to have them match. These scripts are for all network interface configuration including dynamic and manual configs. A dynamic config may have only a few lines in it specifying the name of the device and the boot protocol of dhcp. This example specifies that it should be enabled at boot and used as dhcp for configuration. To create a static interface configuration, we'll change the boot protocol to none. In…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。