Centos network settings in virtualbox

1 First set the windows8 address

First, get your own router address, and then set your own windows8 ip address for the router address. Common brand router addresses are as follows:
            D-Link 192.168.0.1
            TP-Link 192.168.1.1
            Linksys 192.168.1.1
            3Com 192.168.2.1
NETGEAR 192.168.1.1
Huawei 192.168.1.1
Alpha 193.168.18.
Digital China 192.168.1.1

Set your own windows ip to

Then ping Baidu to see if the IP address is set successfully.

2 Set centos6 static ip address

First, set the network connection in virtualbox to bridge mode, and then the static ip setting in centos is basically the same as in windows.

The specific files of the desktop network settings are as follows:

DEVICE=eth0
TYPE=Ethernet
UUID=3769d1ce-fcb8-4cc9-b4f6-fb24204d10ef
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.1.181
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=08:00:27:3D:53:C4
LAST_CONNECT=1395584344

NETWORKING=yes
HOSTNAME=centos2
NTPSERVERARGS=iburst

127.0.0.1    localhost localhost.localdomain localhost4 localhost4.localdomain4
::1          localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.181 centos2

Generated by NetworkManager

nameserver 192.168.1.1

[ root@centos2 ~]# nano /etc/sysconfig/network-scripts/ifcfg-eth0
[ root@centos2 ~]# nano /etc/sysconfig/network
[ root@centos2 ~]# nano /etc/hosts
[ root@centos2 ~]# nano /etc/hosts
[ root@centos2 ~]# nano /etc/resolv.conf

Recommended Posts

Centos network settings in virtualbox
CentOS6.5 network settings
CentOS 7 network settings --- connectivity
Centos6.5 desktop version network settings
CentOS configuration git server in VirtualBox
CentOS7.0 network configuration
VirtualBox install centos7
IP and network settings of CentOS Linux 7 VMware
Linux Network Foundation (CentOS7)
Install php in centos
12. Network Programming in Python3
VirtualBox install CentOS system
CentOS 6.X install VirtualBox-5.1
Install redis5.0 in CentOS7
Build Hadoop in CentOS
KVM virtualization in centos
Set up a CentOS network with Virtualbox on MacOS
Detailed explanation of CentOS7 network setting tutorial in vmware
Build zabbix monitoring zabbix4.2 in CentOS7.6
Build zabbix monitoring zabbix4.2 in CentOS7.6
SELinux security settings under CentOS
Debug Kernel Panic in Centos
Implementation of CentOS8.0 Network Configuration
How to support TL-WDN7200H wireless USB network card in CentOS8?
install virtualbox on centos server
CentOS8 network card configuration file
Update gcc to 6.4.0 in centos
Install JDK8 in rpm on CentOS7
How to install Virtualbox on CentOS 8
Minimal install JDK 1.8 tutorial in CentOS 7
Detailed use of nmcli in CentOS8
How to install PHP7.4 in CentOS
Install MySql with Docker in CentOS7
Install Percona Server database (in CentOS 8)
Install java in yum mode in Centos
CentOS7 modify the network card name
Detailed examples of Centos6 network configuration
How to install HDP2.6 in Centos7.2
Install Centos7 operating system in Docker
Centos7 change the network card name
Install and configure FreeIPA in Centos7
Build Yum private warehouse in Centos7.3
virtualBox install centos, and build tomcat
Tomcat configuration JMX in centos 6.5 environment