Page 1 of 2

I can't use 80 port of IPV6

Posted: 2018/04/26 12:19:24
by 563416123
Hello
First,I get a new host.it's can only use IPV6.
I only carried out:

Code: Select all

yum -y install httpd
service iptables stop
When I Visit website. it's back to 502 error.
ps:
When I carried out:

Code: Select all

service network restart

Code: Select all

Shutting down interface eth0:                              [FAILED]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  
Determining IP information for eth0... done.

Determining IPv6 information for eth0... failed.
Unable to obtain IPv6 DHCP address eth0.
                                                           [  OK  ]


Re: I can't use 80 port of IPV6

Posted: 2018/04/26 13:55:46
by tunk
CentOS 7 uses firewalld as default firewall. Unless you have installed iptables, I think you have to use:
systemctl stop firewalld

Re: I can't use 80 port of IPV6

Posted: 2018/04/26 13:58:41
by 563416123
tunk wrote:CentOS 7 uses firewalld as default firewall. Unless you have installed iptables, I think you have to use:
systemctl stop firewalld
But I use Centos 6.8.

Re: I can't use 80 port of IPV6

Posted: 2018/04/26 14:18:53
by tunk
You posted your question under CentOS 7.
I assume you have started apache: service httpd start
Edit: Can you run this command: rpm -qa | grep apache
The reason for asking is that on my system it's called httpd, and not apache.

Re: I can't use 80 port of IPV6

Posted: 2018/04/26 16:34:18
by TrevorH
But I use Centos 6.8.
And your post is now in the correct forum instead of being in the CentOS 7 Networking one.

6.8 is out of date and needs a yum update to get to 6.9. Redhat announced the 6.10-beta today and that will become CentOS 6.10 in a few weeks/months once it's released upstream.

Re: I can't use 80 port of IPV6

Posted: 2018/04/26 16:35:37
by TrevorH
Determining IPv6 information for eth0... failed.
For an ipv6-only machine, that doesn't look like a good error to see.

Re: I can't use 80 port of IPV6

Posted: 2018/04/27 05:26:42
by 563416123
TrevorH wrote:
But I use Centos 6.8.
And your post is now in the correct forum instead of being in the CentOS 7 Networking one.

6.8 is out of date and needs a yum update to get to 6.9. Redhat announced the 6.10-beta today and that will become CentOS 6.10 in a few weeks/months once it's released upstream.
Thank you for your modification.
But I don’t think it’s the cause of my problem

Re: I can't use 80 port of IPV6

Posted: 2018/04/27 05:28:21
by 563416123
TrevorH wrote:
Determining IPv6 information for eth0... failed.
For an ipv6-only machine, that doesn't look like a good error to see.
So... What should I do?
I can access the host by Xshell.

Re: I can't use 80 port of IPV6

Posted: 2018/04/27 05:35:14
by 563416123
tunk wrote:You posted your question under CentOS 7.
I assume you have started apache: service httpd start
Edit: Can you run this command: rpm -qa | grep apache
The reason for asking is that on my system it's called httpd, and not apache.
Sorry,it's my mistake. I have modified my question.

Re: I can't use 80 port of IPV6

Posted: 2018/04/27 06:27:59
by TrevorH
You need to update anyway, regardless of this problem. 6.8 came out almost 2 years ago and there have been numerous security vulnerabilities found and fixed in that time. You will not have the fixes for any of them until you update.

Post the contents of /etc/sysconfig/network-scripts/ifcfg-eth0