7 CentOS 7 to configure virtual NICs

First priority: before the amendment must be a backup system, if a virtual machine snapshot

NIC view of the virtual machine configuration

Note bridge mode and NAT mode

    Bridge Mode: the network level, the virtual machine and the PC are in the same level position, and routers connected directly to a virtual machine

    NAT modes: network level, and the virtual machine is connected to the router via the host PC conversion of a child, a virtual machine

 

About a static IP and dynamic IP connection:

        Static IP: Fixed IP address of the Internet,

        Dynamic IP: automatically obtain an IP address access, successful DHCP mode

    Features:

        Static IP: IP address of the ISP (Internet Service Provider) can provide direct Internet access, because IPv4 addresses have been allocated, the index is very scarce

            Server special needs, do not allow the address change often, common in the local area network printer, web server, FTP server, etc.

        Dynamic IP: not a real IP address, dynamic IP address assigned to the user based on the domain name server

            Commonly used in large LAN, the DHCP client on the server, reducing the workload of network administrators

 

Targeting

Use vim to modify

 

    Note: About switching Linux graphical interface and a command interface, Ctrl + Alt + F2 ~ F6 is a command-line interface; Ctrl + Alt + F1 is a graphical interface

 

Dynamic IP set up a virtual machine

 

Set a static IP address

The meaning Ifcfg-eno16777736 file:

        BOOTPROTO network parameter settings: Static IP: STATIC or dynamic IP: DCHP, NONE: you not specified

        DEFROUTE        

        IPV4_FAILURE_FATAL

        IPV6INIT

        IPV6_AUTOCONF

        IPv6_DEFROUTE

        IPV6_FAILURE_FATAL

        NAME

        UUID Universally Unique Identifier.
        DEVICE physical device name (ppp dynamic devices except for the name of Luo Series)

        ONBOOT yes: when the device is activated at boot, no: the device is not activated during boot

        USERCTL yes: non-root user can control the device, no: do not allow non-root user control device

        BOOTPROTO none: do not use the boot protocol, bootp: bootp protocol to use, dhcp: dhcp protocol to use

        PEERDMS

        PEERROUTES
        IPV6_PEERDMS

        IPV6_PEERROUTES

        IPADDR IP address

        NETMASK network mask

        NETWORK Network Address

        BROADCAST Broadcast address

        GATEWAY Gateway address

        

    PPP and SLIP files used values:

        PERSIST yes: the device will always remain active, even if the modem is hung up lead inactive, no: no device has remained active state

        MODEMPORT modem device name

        The linear velocity LINESPEED modem

        DEFABORT yes: When you create or edit the script to insert the default interface planting strings, no: do not insert the default planting strings when creating or editing scripts that interface

 

    Use all files ppp

        DEFROUTE yes: the default router interface, no: does the interface is set to the default router

        ESCAPECHARS yes: Use predefined asymcmap, no: Do not use a predefined asyncmap.
(Where it represents a simplified interface; that a user does not specify the escape character, however, almost any situation can use a asyncmap 00000000, and, if desired, may be provided by using any asyncmap PPPOPTIONS..)

        HARDFLOWCTL yes: using hardware flow control, no: do not use hardware flow control

        PPPOPTIONS is arbitrary option string. It is placed at the end of the command line to overwrite earlier

        PAPNAME = name, where name is part of the "name $ PAPNAME" the pppd command line.
Note that the options "remotename" always specified as the logical ppp device name, such as "ppp0" (if previously there are other ppp device is activated, which may be a physical device ppp1) facilitates the management pap / chap files --name / passwd ppp associated with the logical name of the device, so they can be managed together. In theory, as the PPP from the logic devices other "ppp0" - than "pppN" such as "worldnet" or "myISP" name is feasible.

        REMIP Remote IP address

        MTU setting MTU value

        MRU MRU set value

        DISCONNECTTIMEOUT when a successful connection is terminated after how many seconds to wait and connect again

        When a connection failure ERTRYTIMEOUT so fewer seconds to reconnect

 

 

IPv4 and IPv6

Simple is the IPv4 32-bit IP address (approximately 4.3 billion IP addresses can be assigned), IPv6 is an IP address 128

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/heixiang/p/11221602.html