Re: Virtual ip on linux not working on the network



-----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-----
.



Relevant Pages

  • RE: Running public IPs inside an RFC 1597 network
    ... > I'm running a typical Class C RFC 1597 network in my lab. ... know or care if we humans designate a subnet as public or private. ... is the absolute most general route there is for a machine. ... In a correctly configured system when you define an interface, ...
    (freebsd-questions)
  • Network interrupts
    ... I am a newbie trying to bring up a board on MontaVista Linux. ... board has an Intel IOP321 processor with an ARM core. ... the interface was configured correctly. ... IntelPRO/1000 Network Driver - version 5.0.43 ...
    (comp.os.linux.embedded)
  • Re: 2 Subnets on 1 Lan
    ... # Now add a route if you need it. ... have to add a route on any other machine in the 10.10.10.x network ... why not use the standard network configuration setup instead ... interface by using the route-eth0 form. ...
    (Fedora)
  • Re: [ubuntu-za] network problem
    ... i was having troble with my network, but i could conect to the ... when i rebooted i could not connect to the internet:< ... You can type "route" at the ... I think) to see which interface is used to send information out. ...
    (Debian-User)
  • Re: [ubuntu-za] network problem
    ... i was having troble with my network, but i could conect to the ... when i rebooted i could not connect to the internet:< ... You can type "route" at the ... I think) to see which interface is used to send information out. ...
    (Ubuntu)