LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2009, 02:13 AM   #1
k_krish_rao
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
no error when assigning same virtual ip to two linux hosts


I have two linux Virtual machines. both have Red Hat Enterprise Linux Server release 5.2 installed on them

ifconfig on the first returns

Code:
[root@rh52-2 ~]# ifconfig
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:148753 errors:0 dropped:0 overruns:0 frame:0
          TX packets:148753 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9905997 (9.4 MiB)  TX bytes:9905997 (9.4 MiB)

seth0     Link encap:Ethernet  HWaddr 00:15:5D:98:49:03
          inet addr:10.201.10.2  Bcast:10.201.255.255  Mask:255.255.0.0
          inet6 addr: fe80::215:5dff:fe98:4903/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:245117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:299748 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:87997372 (83.9 MiB)  TX bytes:51719749 (49.3 MiB)
ifconfig on the second returns

Code:
[root@rh52-3 ~]# ifconfig
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:148275 errors:0 dropped:0 overruns:0 frame:0
          TX packets:148275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9875130 (9.4 MiB)  TX bytes:9875130 (9.4 MiB)

seth0     Link encap:Ethernet  HWaddr 00:15:5D:98:49:07
          inet addr:10.201.10.3  Bcast:10.201.255.255  Mask:255.255.0.0
          inet6 addr: fe80::215:5dff:fe98:4907/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:244497 errors:0 dropped:0 overruns:0 frame:0
          TX packets:298271 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:87106412 (83.0 MiB)  TX bytes:51425677 (49.0 MiB)
I assign a virtual ip to the first
ifconfig seth0:1 10.201.10.10 netmask 255.255.0.0 up

I'am able to ping using 10.201.10.10

Now i try to assign the same virtual ip to the second linux vm
ifconfig seth0:1 10.201.10.10 netmask 255.255.0.0 up

It does not give me any errors. I was expecting an error
some thing like
Error, some other host already uses address 10.201.10.10.
 
Old 10-22-2009, 07:09 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

[sarcasm]Easy ... you just need to change the TCP/IP standard and implement the feature.[/sarcasm]


Sorry, that's not part of TCP/IP ....
 
  


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
Apache and Named Virtual Hosts Giving 403 Forbidden Error durus123 Linux - Server 1 09-05-2009 06:24 AM
Apache and Named Virtual Hosts Giving 403 Forbidden Error PekinSOFT Linux - Server 2 04-15-2009 02:07 AM
Apache Virtual Hosts (strange warning error when starting) Maeltor Linux - Software 2 06-08-2006 03:48 PM
Apache Virtual Hosts (strange warning error when starting) Maeltor Linux - Kernel 1 06-08-2006 11:47 AM
Apache configuration error - virtual hosts jme Linux - Networking 8 03-15-2004 09:13 AM


All times are GMT -5. The time now is 08:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration