Linux (centos) dual card

        Here article describes how to configure dual NICs on CentOS 7.

image.png


        Ifconfig command again with a look on a Linux system, network information of the system. Here we have seen that the card has been identified, and access to the IP address via DHCP features of VMware virtual machines.

image.png


        However, a second network card and the configuration file does not appear, here I need to write such a configuration file, here there is a very simple way.

image.png


        Here you can directly copy a configuration file name to ens34 it will be able to directly use the cp command cp ifcfg-ens32 ifcfg-34.

image.png


        Then vim ifcfg-ens34 command to enter the edit mode of the second block of the card.

image.png


        Mainly to the following frame up a place to change the name on it, changed his name to ens34 it.

image.png


        There is also a following that line UUID number directly using the dd command can be deleted, so CentOS7 double network card configuration is complete.

image.png


        State after a change is complete.

image.png




        Now try to second network card to configure a static IP address. BOOTPROTO into the back of the options static (static), and then coupled with IP addresses at the bottom, with the gateway subnet mask, and finally enter "w" to save and exit.

image.png



        Finally restart the network services using systemctl restart network.service command.

image.png


        Last seen just a static IP address has been successfully configured to go up.

image.png





Guess you like

Origin blog.51cto.com/14451009/2433495