LinuxQuestions.org
Visit Jeremy's Blog.
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 02-25-2014, 10:10 AM   #1
ginga
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Rep: Reputation: Disabled
Can't ping Virtual IP from another server


Hello,

I have created a new virtual IP: "ifconfig eth0:0 inet 10.0.1.224 255.255.255.0"

Then, to check if it is working, I've tried to ping it from other machines. Unfortunately neither ping nor arping work from other than the localhost.

Could you please give me any hints on what could be wrong? What info could I provide?

PS. This is a duplicate post. The original is on Ubuntu forums. Unfortunately, no one has replied, so I'm trying my luck here. (http://ubuntuforums.org/showthread.p...8#post12935408)

Thanks,
Gintas
 
Old 02-25-2014, 10:12 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux
Posts: 2,805
Blog Entries: 1

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
and what is the result of:

Code:
ip a
ip l
ip route
ping -I eth0:0 8.8.8.8

Last edited by szboardstretcher; 02-25-2014 at 10:20 AM.
 
Old 02-25-2014, 10:23 AM   #3
ginga
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your quick reply, szboardstretcher.

Quote:
Originally Posted by szboardstretcher View Post
and what is the result of:

Code:
ip a
ip l
ip route
Commands are listed in execution sequence:

sudo ifconfig eth0:0 inet 10.0.1.224 netmask 255.255.255.0

ifconfig
Code:
eth0      Link encap:Ethernet  HWaddr 0a:16:00:29:f7:a5  
          inet addr:10.0.1.92  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::816:ff:fe29:f7a5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:410 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:58856 (58.8 KB)  TX bytes:60506 (60.5 KB)

eth0:0    Link encap:Ethernet  HWaddr 0a:16:00:29:f7:a5  
          inet addr:10.0.1.224  Bcast:10.0.1.255  Mask:255.255.255.0
          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:16436  Metric:1
          RX packets:87 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:22536 (22.5 KB)  TX bytes:22536 (22.5 KB)
ip a
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 0a:16:00:29:f7:a5 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.92/24 brd 10.0.1.255 scope global eth0
    inet 10.0.1.224/24 brd 10.0.1.255 scope global secondary eth0:0
    inet6 fe80::816:ff:fe29:f7a5/64 scope link 
       valid_lft forever preferred_lft forever
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN 
    link/ether 52:62:c2:26:2b:0e brd ff:ff:ff:ff:ff:ff
4: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 5e:8e:63:98:c9:c0 brd ff:ff:ff:ff:ff:ff
5: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 0a:46:78:ca:72:9c brd ff:ff:ff:ff:ff:ff
6: eql: <MASTER> mtu 576 qdisc noop state DOWN qlen 5
    link/slip
ip l
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 0a:16:00:29:f7:a5 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN 
    link/ether 52:62:c2:26:2b:0e brd ff:ff:ff:ff:ff:ff
4: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 5e:8e:63:98:c9:c0 brd ff:ff:ff:ff:ff:ff
5: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 32
    link/ether 0a:46:78:ca:72:9c brd ff:ff:ff:ff:ff:ff
6: eql: <MASTER> mtu 576 qdisc noop state DOWN qlen 5
    link/slip
ip route
Code:
10.0.1.0/24 dev eth0  proto kernel  scope link  src 10.0.1.92 
default via 10.0.1.1 dev eth0  metric 100
 
Old 02-25-2014, 10:24 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,919

Rep: Reputation: Disabled
How does this IP address relate to the IP address assigned to eth0? Are they in the same IP network (10.0.1.0/24)?

Edit: OK, I see that they are. When you try to ping 10.0.1.224 from another host, does that host get an ARP entry for that address?

Last edited by Ser Olmy; 02-25-2014 at 10:26 AM.
 
Old 02-25-2014, 10:32 AM   #5
ginga
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ah, I think it is important to note: I am working with Amazon Cloud. Not sure what impact may this have though.

Yes, I wish 10.0.1.244 to be on the same network as 10.0.1.0/24. Currently only 10.0.1.244 can be pinged from the localhost.
All other cases do not work.

I assume I will have to update DNS manually:

nslookup 10.0.1.244
Code:
Server:		10.0.0.2
Address:	10.0.0.2#53

Non-authoritative answer:
244.1.0.10.in-addr.arpa	name = ip-10-0-1-244.eu-west-1.compute.internal.

Authoritative answers can be found from:
Is it the case that I have to push relevant settings to 10.0.0.2 manually (DNS server)?
 
Old 02-25-2014, 10:39 AM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux
Posts: 2,805
Blog Entries: 1

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
If this is AWS you can't just pick IP's willy-nilly, you have to set them up through elasticIP and the dashboard, then set it up inside the VM.

edit:

more info here:
http://aws.amazon.com/about-aws/what...in-amazon-vpc/

Last edited by szboardstretcher; 02-25-2014 at 10:44 AM.
 
1 members found this post helpful.
Old 02-25-2014, 11:24 AM   #7
ginga
LQ Newbie
 
Registered: Feb 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Ahh, that's how it is. Much appreciated!

Gintas
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
openvpn client can ping server but can't ping viceversa Gil@LQ Linux - Networking 1 09-05-2013 04:25 PM
ping to server does not work until i ping from the other direction. weird! jstilby Linux - Networking 1 10-26-2011 07:42 AM
Can't Ping past gateway. Can ping server from outside ugolee Linux - Networking 11 05-01-2010 11:35 PM
can't ping virtual interface vortmax Linux - Networking 1 02-01-2010 12:53 PM
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


All times are GMT -5. The time now is 06:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration