banner
破影岚歌

破影岚歌的博客

bilibili
twitter
github

10. Setting the IP address in CentOS 7

Setting IP for CentOS7#

Experimental Environment:#

  1. CentOS7: 192.168.0.2
  2. Windows7: 192.168.0.100

Experimental Steps:#

  1. Connect to the internet through the virtual machine (wired connection)

  2. Configure the IP address of CentOS7: Complete by modifying the configuration file

    Tip: Use the tab key to autocomplete commands (tab key autocompletes the unique path)

    Configuration File#

    File name: ifcfg-ens33

    BOOTPROTO=dhcp (automatic) or static (manual)
    ONBOOT=no (disable) or yes (enable)
    IPADDR0=ip address
    NETMASK0=subnet mask
    
    IPADDR1=second ip address
    NETMASK1=subnet mask of the second ip address
    
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.