yum仓库主机
外网地址:192.168.15.30
内网地址:172.16.1.30
yum测试主机
外网地址:192.168.15.31
内网地址:172.16.1.31
修改的命令:
vim /etc/sysconfig/network-scripts/ifcfg-eth0
vim /etc/sysconfig/network-scripts/ifcfg-eth1
重启网卡:systemctl restart network
修改主机名:
yum仓库主机:hostnamectl set-hostname warehouse
yum测试主机:hostnamectl set-hostname yum-test