1、问题描述:如何克隆多台然后网络桥接解决?
步骤如下:
1)克隆如下:
2)ip配置:
[root@jackroo ~]# cd /etc/sysconfig/network-scripts/
[root@jackroo network-scripts]# cp ifcfg-eth0 ifcfg-eth1
[root@jackroo network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
#UUID=f92ae8b2-09a1-476b-8f53-334386e7d436
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
#HWADDR=08:00:27:B2:E4:75
DEFROUTE=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
HWADDR=08:00:27:b2:e4:75
IPADDR=192.168.1.6
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
rSERCTL=no
[root@jackroo network-scripts]# cat ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
#UUID=f92ae8b2-09a1-476b-8f53-334386e7d436
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
#HWADDR=08:00:27:B2:E4:75
DEFROUTE=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"
HWADDR=08:00:27:E7:8E:C3
IPADDR=192.168.1.12
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
[root@jackroo network-scripts]# /etc/init.d/network restart
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
[FAILED]
Bringing up interface eth1: Determining if ip address 192.168.1.12 is already in use for device eth1...
[ OK ]
3)x-shell工具连接。
2、xshell工具常用设置如下:
1)外观日志及上传下载设置:
yum install lrzsz -y #包安装方式:rz file.log (下载),sz -y (上传),-y 是否覆盖
yum groupinstall "Dial-up Networking Support" -y #组安装方式
2)批量设置:
centos 7.3
重启下网络
systemctl restart network.service
验证是否IP配置正确
ip addr