You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

고정아이피설정

네트워크 인터페이스 아이디 확인(인터넷망 or 내부망)



$ sudo vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# 인터넷이되는 인터페이스는 자동으로 사용
auto enp0s3
iface enp0s3inet dhcp

# 호스트전용 내부 네트워크는 ip설정 ( 101로 자동할당되는것을 105로 변경)
auto enp0s8
iface enp0s8inet static
address 192.168.56.105
netmask 255.255.255.0
network 192.168.56.1
boradcast 192.168.56.255






$ sudo
firewall-cmd --zone=public --add-port=80/tcp --permanent


$ sudo
firewall-cmd --reload


service
firewalld stop



Ip addr show

상대 포트체크
nc -z 180.70.96.191 3000
  • No labels