………………
注意:不用做任何修改
参数讲解:
[zhang@docker01 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 # 当做内网
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
USERCTL=no
IPV6INIT=yes
IPADDR=172.16.1.100
NETMASK=255.255.255.0
[zhang@docker01 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1 # 当做外网
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPV6INIT=yes
USERCTL=no
IPADDR=10.0.0.100
NETMASK=255.255.255.0
GATEWAY=10.0.0.2
DNS1=223.5.5.5
DNS2=223.6.6.6
相关网址:
https://github.com/zhanglianghhh/system-install/blob/master/linux-CenetOS6/basedOptimi_6.sh