Re: Virtual ip on linux not working on the network
- From: wahjava@xxxxxxxxx (Ashish Shukla आशीष शुक्ल)
- Date: Thu, 22 Nov 2007 21:50:48 +0530
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
,--- invasyon writes:
| I tried to setup one virtual ip on my linux box using:
| ifconfig eth0:1 192.168.1.200 netmask 255.255.255.0 up
| route add -host 192.168.1.200 dev eth0:1
The above 'route' statement is not required, as adding an interface
implicitly creates a route for that, and hence no need to explicitly
create the route.
| my eth0 card has the ip 192.168.1.199 this is the physical card and
| 192.168.1.200 is the virtual address i want to add to this interface.
| The default gateway for this machine is 192.168.1.1
| This works fine on the same box, i can ping the 192.168.1.200 address
| but on the network i cant reach the ip 192.168.1.200.
| If i go to another segment of the network, lets say 192.168.100.1 i
| can ping 192.168.1.199 the real interface but i cant ping
| 192.168.1.200 the virtual interface.
| If i setup another machine on the same switch with the 192.168.1.199
| ip i can see this ip from anywhere in the network. (so the routing on
| the network is ok)
| What is the real way to make a virtual ip on linux and what i have to
| do for this ip to be visible to the network ?
Looks like ARP announcement for 192.168.1.200 is not reaching the
network switch or is being filtered. Also check your box's iptables,
and switch's settings.
HTH
- --
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHRaxkHy+EEHYuXnQRAnxvAJ9u6R0jgmzlv4TsWqt+4muNLP2sVwCg4vwP
tonlr/kP9M9iirAfD/eyY6g=
=7LHP
-----END PGP SIGNATURE-----
.
- Follow-Ups:
- Re: Virtual ip on linux not working on the network
- From: invasyon
- Re: Virtual ip on linux not working on the network
- References:
- Virtual ip on linux not working on the network
- From: invasyon
- Virtual ip on linux not working on the network
- Prev by Date: Virtual ip on linux not working on the network
- Next by Date: Re: Virtual ip on linux not working on the network
- Previous by thread: Virtual ip on linux not working on the network
- Next by thread: Re: Virtual ip on linux not working on the network
- Index(es):
Relevant Pages
|