2017-11-21 11 views
-1

우분투 버전은 14.04이고 호스트 공급자는 1and1.com입니다.보조 IP로 클라우드 호스트에 액세스하는 방법은 무엇입니까?

# 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 

# The primary network interface 
allow-hotplug eth0 
iface eth0 inet dhcp 
auto eth0:0 
iface eth0:0 inet static 
name Ethernet alias LAN card 
address {2nd IP address} 
netmask 255.255.255.255 
broadcast {2nd IP address} 
network {2nd IP address ended with 0} 

과은 ifconfig -a 출력은 다음과 같다 : 그래서

eth0  Link encap:Ethernet HWaddr 00:50:56:12:68:8e 
      inet addr:{Primary IP address} Bcast:{Primary IP address} Mask:255.255.255.255 
      inet6 addr: fe80::250:56ff:fe12:688e/64 Scope:Link 
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
      RX packets:1348 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:1097 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:1000 
      RX bytes:210260 (210.2 KB) TX bytes:343976 (343.9 KB) 

eth0:0 Link encap:Ethernet HWaddr 00:50:56:12:68:8e 
      inet addr:{2nd IP address} Bcast:{2nd IP address} Mask:255.255.255.255 
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 

lo  Link encap:Local Loopback 
      inet addr:127.0.0.1 Mask:255.0.0.0 
      inet6 addr: ::1/128 Scope:Host 
      UP LOOPBACK RUNNING MTU:65536 Metric:1 
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
      collisions:0 txqueuelen:0 
      RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) 

나는이 개 공공 IP를 호스트를 구성하고 다음 한은 내/etc/network/interfaces 파일의 구성입니다 구성에 따라 모든 것이 잘되어야하지만 외부에서 두 번째 IP에 액세스 할 수 없습니다. 핑이 요청 시간 초과를 받고 있고 두 번째 IP를 어떤 도메인의 A 레코드에도 설정하면 작동하지 않습니다. 제 2의 IP에 공개적으로 액세스하려면 어떻게해야합니까?

미리 감사드립니다.

답변

0

실제로 방화벽이 두 번째 IP의 모든 포트를 차단하고있는 문제가 해결되었습니다. 방금 허용했습니다.