[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
CentOS-Base.repo CentOS-Media.repo CentOS-fasttrack.repo
CentOS-CR.repo CentOS-Sources.repo
CentOS-Debuginfo.repo CentOS-Vault.repo
[root@localhost yum.repos.d]# gedit CentOS-Base.repo
gedit
#released updates #[updates] #name=CentOS-$releasever - Updates #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ #gpgcheck=1 #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 #enabled = 0 |
아이피 변경
[root@localhost yum.repos.d]# cd /etc/sysconfig/network-scripts/
[root@localhost network-scripts]# ls
ifcfg-ens32 ifdown-ib ifdown-sit ifup-eth ifup-post network-functions
ifcfg-lo ifdown-ippp ifdown-tunnel ifup-ib ifup-ppp network-functions-ipv6
ifdown ifdown-ipv6 ifup ifup-ippp ifup-routes
ifdown-Team ifdown-isdn ifup-Team ifup-ipv6 ifup-sit
ifdown-TeamPort ifdown-post ifup-TeamPort ifup-isdn ifup-tunnel
ifdown-bnep ifdown-ppp ifup-aliases ifup-plip ifup-wireless
ifdown-eth ifdown-routes ifup-bnep ifup-plusb init.ipv6-global
[root@localhost network-scripts]# gedit ifcfg-ens32
TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens32 UUID=5f9257f6-b931-4ac3-a76a-a13b263f35a1 DEVICE=ens32 ONBOOT=no |
변경 =>
TYPE=Ethernet BOOTPROTO=none IPADDR=192.168.111.100 NETMASK=255.255.255.0 GATEWAY=192.168.111.2 DNSI=192.168.111.2 DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens32 UUID=5f9257f6-b931-4ac3-a76a-a13b263f35a1 DEVICE=ens32 ONBOOT=yes |
[root@localhost network-scripts]# systemctl restart network
설정 확인 ifconfig
[root@localhost network-scripts]# ifconfig lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 |
특정 서비스가 SELinux 때문에 동작하지 않는다면 SELinux 를 끄기 보다는 해당 서비스가 SELinux 하에서 잘 동작하도록 설정을 수정하는걸 권장한다.
SELinux 끄기
[root@localhost network-scripts]# gedit /etc/sysconfig/selinux
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled #SELINUX=enforcing # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted |
SELINUX=disabled |
vmware 스냅샷
http://startdownload.tistory.com/24
댓글 ( 4)
댓글 남기기