About this list Date view Thread view Subject view Author view Attachment view

From: Jukka Laaksola (jukka.laaksola_at_netland.fi)
Date: Tue 27 Aug 2002 - 12:07:35 BST


Paul Sladen wrote:
> On Fri, 23 Aug 2002, Jukka Laaksola wrote:
>
>>Jacques Gelinas wrote:
>>>
>>>IPROOT="eth0/IP1 eth1/IP2 IP3 IP4"
>>>IPROOTDEV=eth2
>>>
>>The problem is netmask ja broadcast for those ip aliases. If I
>>understood right, IPROOTMASK and IPROOTBCAST doesn't have multi-ip/nic
>>support.
>
> Try popping the broadcast address in the multi-ip statement with the
> normal unicast addresses:
>
> IPROOT="eth0:192.168.100.1 eth0:192.168.100.255 eth1:10.0.0.1 \
> eth1:10.0.0.255"

Didn't help. Actually I got more wierd ifconfig output... Those
broadcast addresses are not the biggest problem. The problem is netmask.

When I configure only one ip for virtual server, I got nis working.
Because vserver forward 127.0.0.1 packets to virtual server's ip (or
something like that), but that's not working with multiple ip.

After a little test it seems 127.0.0.1 is forwarded to nowhere in
virtual server if IPROOT has ip aliases for more than one nic.

IPROOT="eth1:192.168.0.11 eth1:192.168.0.100"
ypserv can register itself to portmap, 127.0.0.1 -> 192.168.0.11
nisclient on other computer can connect ypserv_at_192.168.0.11

IPROOT="eth0:212.x.x.10 eth1:192.168.0.11"
ypserv can register itself to portmap, 127.0.0.1 -> 212.x.x.10
nisclient on other computer can connect ypserv_at_212.x.x.10

IPROOT="eth1:192.168.0.11 eth0:212.x.x.10"
ypserv can't register itself to portmap, 127.0.0.1 -> ????
nisclient on other computer can't connect ypserv_at_192.168.0.11 or
ypserv_at_212.x.x.10.

IPROOTDEV was commented out in every situation.

Last test had strange result.. Perhaps some bug?

But anyway I solve the problem this way:

- I commented out IPROOTDEV in /etc/vservsers/v1.conf
- IPROOT="eth0:192.168.0.11 eth1:212.x.x.10 eth1:80.x.x.10
            eth1:10.10.10.33"
- I add in the /etc/vservers/v1.sh in pre-start section:
    ifconfig eth0:v1 192.168.0.11 netmask 255.255.255.0 broadcast
             192.168.0.255
    ifconfig eth1:v11 212.x.x.10 netmask 255.255.255.248 broadcast
             212.x.x.15
    ifconfig eth1:v12 80.x.x.10 netmask 255.255.255.248 broadcast
             80.x.x.15
    ifconfig eth1:v13 10.10.10.33 netmask 255.255.255.0 broadcast
             10.10.10.255
- and in post-stop section:
    ifconfig eth1:v13 down
    ifconfig eth1:v12 down
    ifconfig eth1:v11 down
    ifconfig eth0:v1 down

Now ypserv and nis clients works fine.

-- 
Jukka Laaksola
Netland Oy


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:42 GMT by hypermail 2.1.3