LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-07-2010, 12:03 PM   #1
Jabetza
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Rep: Reputation: 0
2 Ip address in the same nterface, the second one only respond ping


Hi,

I am new in linux, I have a server with centos 5 and plesk 9 and I have buy an additional IP address for my server, when i create it in plesk, there is no problem, all its ok I can assign it to a new domain, but the ip only responds ping, none of other services as http, ssh or smtp.

I paste here the configuration of files

ifcfg-eth0

device=eth0
bootproto=dhcp
type=ethernet
onboot=yes

ifcfg-eth0:1

device="eth0:1"
ipaddr="***.***.***.51"
netmask="255.255.255.255"

Asterisk for security
I have stopped IPTABLES service and nothing happens.
What is i have making wrong?

I tried put eth0 as static, but all fails and I have to reinstall the image of the server.

Thanks for advance
 
Old 04-07-2010, 02:40 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Because when you do ping, you ask INTERFACE to respond.

HTTP, SSH, MAIL - services=programs, which, I really sure, was configured to listen interface ETH0, and they do it diligently.
 
Old 04-08-2010, 06:14 AM   #3
Jabetza
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nimnull22 View Post
Because when you do ping, you ask INTERFACE to respond.

HTTP, SSH, MAIL - services=programs, which, I really sure, was configured to listen interface ETH0, and they do it diligently.
And how to configure it.

httpd.conf is set to listen on port 80, any IP
The same for ssh.conf.

What i have to change???
 
Old 04-08-2010, 09:58 AM   #4
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Do you have any firewall, which filters incoming IP?
 
Old 04-08-2010, 10:20 AM   #5
Jabetza
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nimnull22 View Post
Do you have any firewall, which filters incoming IP?
No I quit iptables, but all is the same
 
Old 04-08-2010, 10:39 AM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Can you execute command:
ifconfig
Will be interface eth0:1 in the output?

Last edited by nimnull22; 04-08-2010 at 10:59 AM.
 
Old 04-08-2010, 11:44 AM   #7
Jabetza
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nimnull22 View Post
Can you execute command:
ifconfig
Will be interface eth0:1 in the output?
Yes it appears in the output, this is the output

eth0 Link encap:Ethernet HWaddr 00:16:3E:30:81:5D
inet addr:***.***.53.78 Bcast:***.***.53.78 Mask:255.255.255.255
inet6 addr: fe80::216:3eff:fe30:815d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1312916 errors:0 dropped:115 overruns:0 frame:0
TX packets:1660032 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:489880666 (467.1 MiB) TX bytes:1789681205 (1.6 GiB)
Interrupt:185 Base address:0x2000

eth0:1 Link encap:Ethernet HWaddr 00:16:3E:30:81:5D
inet addr:***.***.134.51 Bcast:***.***.134.51 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:185 Base address:0x2000

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:16436 Metric:1
RX packets:18209 errors:0 dropped:0 overruns:0 frame:0
TX packets:18209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4525001 (4.3 MiB) TX bytes:4525001 (4.3 MiB)
 
Old 04-08-2010, 01:33 PM   #8
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Ok, if interface is UP and you can ping it, can you set ssh to listen this IP?
 
Old 04-09-2010, 03:34 AM   #9
Jabetza
LQ Newbie
 
Registered: Apr 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nimnull22 View Post
Ok, if interface is UP and you can ping it, can you set ssh to listen this IP?
I have just set sshd configuration file to listen all IPS and all is the same
 
Old 04-09-2010, 10:18 AM   #10
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
I can suggest to do next test, if you wish. Enable iptables, and set default policies for INPUT and OUTPUT chains to ALLOW. Then add follow rule to NAT table:
Code:
iptables -t nat -A PREROUTING -p tcp -d <Second public IP> --dport <port> -j DNAT --to-destination <First public IP>:<port>
This should send something you want from the second public IP to the first.
 
Old 04-09-2010, 11:58 AM   #11
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Jabetza View Post
I have just set sshd configuration file to listen all IPS and all is the same
Did you restart after configuration? You can cause the running sshd process to reread the configuration file by sending it the SIGHUP signal ... kill -HUP <processID>
 
Old 04-11-2010, 07:10 PM   #12
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Quote:
Originally Posted by Jabetza View Post
I tried put eth0 as static, but all fails and I have to reinstall the image of the server.
Perhaps you need to use DHCP for both addresses, it's not uncommon for switches/routers to be set up like that to prevent ARP spoofing.

Try using tcpdump to see what's happening.
 
Old 04-11-2010, 08:15 PM   #13
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Quote:
Originally Posted by Jabetza View Post
Hi,

I am new in linux, I have a server with centos 5 and plesk 9 and I have buy an additional IP address for my server, when i create it in plesk, there is no problem, all its ok I can assign it to a new domain, but the ip only responds ping, none of other services as http, ssh or smtp.

I paste here the configuration of files

ifcfg-eth0

device=eth0
bootproto=dhcp
type=ethernet
onboot=yes

ifcfg-eth0:1

device="eth0:1"
ipaddr="***.***.***.51"
netmask="255.255.255.255"

Asterisk for security
I have stopped IPTABLES service and nothing happens.
What is i have making wrong?

I tried put eth0 as static, but all fails and I have to reinstall the image of the server.

Thanks for advance
Can you post:
Code:
route -n
A web server?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network problem : Server won't respond to ping bogzab Slackware 4 02-15-2007 03:52 PM
can't ping local IP address but can ping remote hosts rob_xx17 Linux - Networking 4 12-02-2006 08:39 AM
DNS error,does not respond on ping. jared78 Linux - Networking 21 05-04-2005 08:13 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
3c900 10baseT Boomerang PCI won't respond to ping Barb Linux - Networking 16 03-09-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration