nmcli connection modify ens39 +ipv4.addresses 192.168.118.129/24 ipv4.gateway 192.168.118.130 ipv4.method manual connection.autoconnect yes
nmcli connection up ens39
nmcli connection up ens40
mkdir -pv /www/ip/{100,200} echo this is 100 > /www/ip/100/index.html echo this is 200 > /www/ip/200/index.html setenforce 0 getenforce 27 vim /etc/yum.repos.d/nmsl.repo [BaseOS] name=BaseOS baseurl=file:///mnt/BaseOS gpgcheck=0 [AppStream] name=AppStream baseurl=file:///mnt/AppStream gpgcheck=0 mount /dev/sr0 /mnt dnf install httpd -y vim /usr/share/doc/httpd-2.4.6/httpd-vhosts.conf cd /etc/httpd/conf.d vim vhost.conf(也可以在这里写)
48 systemctl restart httpd 49 curl 192.168.118.100 63 nmcli connection modify ens40 +ipv4.addresses 192.168.118.200/24 ipv4.gateway 192.168.118.130 ipv4.method manual 64 nmcli coninection modify ens40 65 nmcli coninection up ens40 74 curl 192.168.118.200
|