36부터 변경(ip설정)
인터페이스 이름 변경
vi .etc/default/grub
GRUB_CMDLINE_LINUX 항목 뒤 quiet 뒤에 net.ifnames=0 문자열 추가
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
nmcli 네트워크 설정
nmcli device show : 디바이스 확인
nmcli connection show : 커넥션값
nmcli connection modify 'Wired connection 1' ifname eth0 ipv4.method manual ipv4.address 192.168.100.200/24 ipv4.gateway 192.168.100.100 ipv4.dns 8.8.8.8
nmcli connection down 'Wired connection 1'
nmcli connection up 'Wired connection 1'
핑 활성화
vi init_accept.sh
#!/bin/sh
systemctl stop firewalld.service
iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
echo “Done”
Shell
복사
chmod 755 init.sh
./init.sh