hi herbert :

Thank for the replies .

a. Understood. We cannot set default route inside vserver. It will
mess up the host routing table :) Tested.

I have read the LARTC but until now I still cannot ping or get 
vapt-get  working.

I started the a vserver using eth1 and have a ppp0 connection to the internet.

Vserver IP : 192.168.100.200
This what i did using ip route ::

sauron:/etc/iproute2# ip route list table main
203.106.129.217 dev ppp0  proto kernel  scope link  src 210.195.72.82
default via 203.106.129.217 dev ppp0
sauron:/etc/iproute2# echo 200 arsenic >> /etc/iproute2/rt_tables
sauron:/etc/iproute2# ip rule add from 192.168.100.200 table arsenic
sauron:/etc/iproute2# ip rule ls
0:      from all lookup local
32765:  from 192.168.100.200 lookup arsenic
32766:  from all lookup main
32767:  from all lookup default
sauron:/etc/iproute2# ip route add default via 203.106.129.217 dev
ppp0 table arsenic
sauron:/etc/iproute2# ip route flush cache
sauron:/etc/iproute2# ip rule ls 0:      from all lookup local
32765:  from 192.168.100.200 lookup arsenic
32766:  from all lookup main
32767:  from all lookup default

sauron:~# vapt-get arsenic --all -- update
vaptget: operating on vserver arsenic
Err http://www.indexdata.dk indexdata/sarge/released Packages
  Temporary failure resolving 'www.indexdata.dk'

b. figure that out. using the new config style . Need to create a file
bcapabiities.

c. can be check via the bcaps-v13.c file.

anybody have a working ip route between ppp0 and vserver via a single gateway.

Thank !

cheers

On Fri, 22 Oct 2004 19:42:13 +0200, Herbert Poetzl <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 22, 2004 at 04:37:20PM +0800, TK Lew wrote:
> > hi :
> >
> > I can't seem to set the defaultroute under vserver. Get error message
> > "Operation not permitted".
> 
> which is actually a Good Thing (TM) as you do not
> want the vserver to mess with your routing tables
> 
> see
> 
> http://www.linux-vserver.org/index.php?page=Documentation
> (# [iproute2] more than one default gw)
> http://archives.linux-vserver.org/200311/0470.html
> 
> > I have put a <vserver name>.conf under /etc/vserver but when running
> > "vserver <name> start" is not reading this config file.
> 
> maybe a new style config?
> 
> > I added "CAP_SYS_ADMIN=yes" in the config file.
> 
> which means that the vserver root user can do what s/he
> likes with your host ;)
> 
> > Thank for any reply.
> 
> best,
> Herbert
> 
> > Cheers
> 
> 
> > _______________________________________________
> > Vserver mailing list
> > [EMAIL PROTECTED]
> > http://list.linux-vserver.org/mailman/listinfo/vserver
>
_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to