サンプル集 |
■VC ■C# ■Java ■BorlandC ■LinuxC ■MS-DOS ■bash ■Excel VBA ■VBScript ■PHP ■HTML ■perl ■iPhone ■Android ■Lua ■other |
Linuxコマンド |
用語集 |
debian メモ |
apache2 メモ |
MySQL メモ |
Oracle メモ |
HOME |
Windows Azureに作ったCentOSの仮想マシンから外部サイトへのpingが通りません。
◆環境OS | CentOS 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux |
---|
pingで使われているICMPプロトコルは、Azureのロードバランサーで許可されていないようです。 同じ仮想ネットワーク内の仮想マシンへはpingが通りますが、外のネットワークへは出られないし外からも入れないようです。
仮想マシンから外のサイトへpingした場合応答がありません。
[azureuser@AzureSV1 ~]$ ping www.ymlib.com
PING www.ymlib.com (222.111.111.66) 56(84) bytes of data.
^C
--- www.ymlib.com ping statistics ---
28 packets transmitted, 0 received, 100% packet loss, time 27346ms
PING www.ymlib.com (222.111.111.66) 56(84) bytes of data.
^C
--- www.ymlib.com ping statistics ---
28 packets transmitted, 0 received, 100% packet loss, time 27346ms
仮想マシンから同じ仮想ネットワークの別の仮想マシンへpingした場合、pingが通ります。
[azureuser@AzureSV1 ~]$ ping 172.31.1.38
PING 172.31.1.38 (172.31.1.38) 56(84) bytes of data.
64 bytes from 172.31.1.38: icmp_seq=1 ttl=64 time=4.25 ms
:
PING 172.31.1.38 (172.31.1.38) 56(84) bytes of data.
64 bytes from 172.31.1.38: icmp_seq=1 ttl=64 time=4.25 ms
:
ping以外で外部と通信できるか検証します。 wgetで外部サイトからtest.tar.gzをダウンロードしてみます。
[azureuser@AzureSV1 ~]$ wget http://downloads.org/releases/test.tar.gz
--2014-10-24 00:55:12-- http://downloads.org/releases/test.tar.gz
Resolving downloads.asterisk.org (downloads.asterisk.org)... 77.111.111
.222, 2001:470:e0d4::ee
Connecting to downloads.asterisk.org (downloads.asterisk.org)|77.111.11
1.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24776534 (24M) [application/x-gzip]
Saving to: ‘test.tar.gz’
100%[=================================>] 24,776,534 5.87MB/s in 6.2s
:
--2014-10-24 00:55:12-- http://downloads.org/releases/test.tar.gz
Resolving downloads.asterisk.org (downloads.asterisk.org)... 77.111.111
.222, 2001:470:e0d4::ee
Connecting to downloads.asterisk.org (downloads.asterisk.org)|77.111.11
1.222|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24776534 (24M) [application/x-gzip]
Saving to: ‘test.tar.gz’
100%[=================================>] 24,776,534 5.87MB/s in 6.2s
:
正常にダウンロードできましたので外部サイトと通信はできています。
wgetがインストールされていなかったのでyumでインストールしました。
[azureuser@AzureSV1 ~]$ sudo yum install wget
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for azureuser:
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache f
ast
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
openlogic | 1.3 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): extras/7/x86_64/primary_db | 33 kB 00:00:01
(2/2): updates/7/x86_64/primary_db | 3.6 MB 00:00:05
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
wget x86_64 1.14-10.el7 base 545 k
Transaction Summary
=======================================================================
Install 1 Package
Total download size: 545 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
wget-1.14-10.el7.x86_64.rpm | 545 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-10.el7.x86_64 1/1
Verifying : wget-1.14-10.el7.x86_64 1/1
Installed:
wget.x86_64 0:1.14-10.el7
Complete!
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for azureuser:
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache f
ast
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
openlogic | 1.3 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): extras/7/x86_64/primary_db | 33 kB 00:00:01
(2/2): updates/7/x86_64/primary_db | 3.6 MB 00:00:05
Determining fastest mirrors
Resolving Dependencies
--> Running transaction check
---> Package wget.x86_64 0:1.14-10.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
wget x86_64 1.14-10.el7 base 545 k
Transaction Summary
=======================================================================
Install 1 Package
Total download size: 545 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
wget-1.14-10.el7.x86_64.rpm | 545 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-10.el7.x86_64 1/1
Verifying : wget-1.14-10.el7.x86_64 1/1
Installed:
wget.x86_64 0:1.14-10.el7
Complete!
Copyright (C) 2014 ymlib.com