Home » Mailing lists » Users » 2 interfaces on VE, each using a separate routes
2 interfaces on VE, each using a separate routes [message #11156] |
Wed, 14 March 2007 10:29 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
jyap
Messages: 5 Registered: April 2006
|
Junior Member |
|
|
Hi people.
Firstly, thanks for OpenVZ. I really appreciate the hard work put
into the community aspects. Very impressed to see how far OpenVZ has
come since it's launch.
I have a VE that I've added 2 IP's to. Both on different networks.
This was by using the default --ipadd option of vzctl.
eg.
10.0.0.9
192.168.1.9
On the Host I have set up Source based routing according to the
example on the page:
http://gflug.net/~mdmartz/index.php/Linux:Network:DualNetRou teHack
eg.
eth0 - 10.0.0.5 - Default route --> 10.0.0.1
eth1 - 192.168.1.5 - Default route --> 191.168.1.1
On the Host, I am able to ping both default routes. On the VE, I can
only ping the first default gateway, 10.0.0.1. I'm unable to ping
192.168.1.1.
Is it possible to have 2 interfaces on a VE, each using a separate
route? Feel free to just outline the general concept of what I have
to do :). Any help would be greatly appreciated.
Thanks,
Julian
|
|
|
Re: 2 interfaces on VE, each using a separate routes [message #11161 is a reply to message #11156] |
Wed, 14 March 2007 13:31 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Andrey Mirkin
Messages: 193 Registered: May 2006
|
Senior Member |
|
|
Hello,
Can you, please, try to ping from VE using following command:
ping 192.168.1.1 -I 192.168.1.9
The thing is that ping takes the first IP address from interface as default.
On Wednesday 14 March 2007 13:29 Julian Yap wrote:
> Hi people.
>
> Firstly, thanks for OpenVZ. I really appreciate the hard work put
> into the community aspects. Very impressed to see how far OpenVZ has
> come since it's launch.
>
> I have a VE that I've added 2 IP's to. Both on different networks.
> This was by using the default --ipadd option of vzctl.
> eg.
> 10.0.0.9
> 192.168.1.9
>
> On the Host I have set up Source based routing according to the
> example on the page:
> http://gflug.net/~mdmartz/index.php/Linux:Network:DualNetRou teHack
> eg.
> eth0 - 10.0.0.5 - Default route --> 10.0.0.1
> eth1 - 192.168.1.5 - Default route --> 191.168.1.1
>
> On the Host, I am able to ping both default routes. On the VE, I can
> only ping the first default gateway, 10.0.0.1. I'm unable to ping
> 192.168.1.1.
>
> Is it possible to have 2 interfaces on a VE, each using a separate
> route? Feel free to just outline the general concept of what I have
> to do :). Any help would be greatly appreciated.
>
> Thanks,
>
> Julian
|
|
|
Re: 2 interfaces on VE, each using a separate routes [message #11173 is a reply to message #11161] |
Wed, 14 March 2007 19:32 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Julian Yap
Messages: 4 Registered: March 2007
|
Junior Member |
|
|
That works for me.
Doing more testing, when I take out the global default route on the
Host (10.0.0.1) I can't ping 10.0.0.x from the VE. It's as if the VE
inherits only the global default route from the Host. However, when I
take out the global default route, I am able to ping external IPs on
the internet.
The VE automatically specifies its default gateway as 192.0.2.1
(through /etc/sysconfig/network). I'm not sure if that's related.
- Julian
On 3/14/07, Andrey Mirkin <amirkin@sw.ru> wrote:
> Hello,
>
> Can you, please, try to ping from VE using following command:
> ping 192.168.1.1 -I 192.168.1.9
>
> The thing is that ping takes the first IP address from interface as default.
>
> On Wednesday 14 March 2007 13:29 Julian Yap wrote:
> > Hi people.
> >
> > Firstly, thanks for OpenVZ. I really appreciate the hard work put
> > into the community aspects. Very impressed to see how far OpenVZ has
> > come since it's launch.
> >
> > I have a VE that I've added 2 IP's to. Both on different networks.
> > This was by using the default --ipadd option of vzctl.
> > eg.
> > 10.0.0.9
> > 192.168.1.9
> >
> > On the Host I have set up Source based routing according to the
> > example on the page:
> > http://gflug.net/~mdmartz/index.php/Linux:Network:DualNetRou teHack
> > eg.
> > eth0 - 10.0.0.5 - Default route --> 10.0.0.1
> > eth1 - 192.168.1.5 - Default route --> 191.168.1.1
> >
> > On the Host, I am able to ping both default routes. On the VE, I can
> > only ping the first default gateway, 10.0.0.1. I'm unable to ping
> > 192.168.1.1.
> >
> > Is it possible to have 2 interfaces on a VE, each using a separate
> > route? Feel free to just outline the general concept of what I have
> > to do :). Any help would be greatly appreciated.
> >
> > Thanks,
> >
> > Julian
|
|
|
Re: 2 interfaces on VE, each using a separate routes [message #11174 is a reply to message #11161] |
Wed, 14 March 2007 18:41 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
jyap
Messages: 5 Registered: April 2006
|
Junior Member |
|
|
That works for me.
Doing more testing, when I take out the global default route on the
Host (10.0.0.1) I can't ping 10.0.0.x from the VE. It's as if the VE
inherits only the global default route from the Host. However, when I
take out the global default route, I am able to ping external IPs on
the internet.
The VE automatically specifies its default gateway as 192.0.2.1
(through /etc/sysconfig/network). I'm not sure if that's related.
- Julian
On 3/14/07, Andrey Mirkin <amirkin@sw.ru> wrote:
> Hello,
>
> Can you, please, try to ping from VE using following command:
> ping 192.168.1.1 -I 192.168.1.9
>
> The thing is that ping takes the first IP address from interface as default.
>
> On Wednesday 14 March 2007 13:29 Julian Yap wrote:
> > Hi people.
> >
> > Firstly, thanks for OpenVZ. I really appreciate the hard work put
> > into the community aspects. Very impressed to see how far OpenVZ has
> > come since it's launch.
> >
> > I have a VE that I've added 2 IP's to. Both on different networks.
> > This was by using the default --ipadd option of vzctl.
> > eg.
> > 10.0.0.9
> > 192.168.1.9
> >
> > On the Host I have set up Source based routing according to the
> > example on the page:
> > http://gflug.net/~mdmartz/index.php/Linux:Network:DualNetRou teHack
> > eg.
> > eth0 - 10.0.0.5 - Default route --> 10.0.0.1
> > eth1 - 192.168.1.5 - Default route --> 191.168.1.1
> >
> > On the Host, I am able to ping both default routes. On the VE, I can
> > only ping the first default gateway, 10.0.0.1. I'm unable to ping
> > 192.168.1.1.
> >
> > Is it possible to have 2 interfaces on a VE, each using a separate
> > route? Feel free to just outline the general concept of what I have
> > to do :). Any help would be greatly appreciated.
> >
> > Thanks,
> >
> > Julian
|
|
|
Re: 2 interfaces on VE, each using a separate routes [message #11180 is a reply to message #11174] |
Thu, 15 March 2007 07:27 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
Andrey Mirkin
Messages: 193 Registered: May 2006
|
Senior Member |
|
|
Can you, please, send your ip configuration and route tables on host node and
in VE (ip a ls, ip r ls).
Regards,
Andrey
On Wednesday 14 March 2007 21:41 Julian Yap wrote:
> That works for me.
>
> Doing more testing, when I take out the global default route on the
> Host (10.0.0.1) I can't ping 10.0.0.x from the VE. It's as if the VE
> inherits only the global default route from the Host. However, when I
> take out the global default route, I am able to ping external IPs on
> the internet.
>
> The VE automatically specifies its default gateway as 192.0.2.1
> (through /etc/sysconfig/network). I'm not sure if that's related.
>
> - Julian
>
> On 3/14/07, Andrey Mirkin <amirkin@sw.ru> wrote:
> > Hello,
> >
> > Can you, please, try to ping from VE using following command:
> > ping 192.168.1.1 -I 192.168.1.9
> >
> > The thing is that ping takes the first IP address from interface as
> > default.
> >
> > On Wednesday 14 March 2007 13:29 Julian Yap wrote:
> > > Hi people.
> > >
> > > Firstly, thanks for OpenVZ. I really appreciate the hard work put
> > > into the community aspects. Very impressed to see how far OpenVZ has
> > > come since it's launch.
> > >
> > > I have a VE that I've added 2 IP's to. Both on different networks.
> > > This was by using the default --ipadd option of vzctl.
> > > eg.
> > > 10.0.0.9
> > > 192.168.1.9
> > >
> > > On the Host I have set up Source based routing according to the
> > > example on the page:
> > > http://gflug.net/~mdmartz/index.php/Linux:Network:DualNetRou teHack
> > > eg.
> > > eth0 - 10.0.0.5 - Default route --> 10.0.0.1
> > > eth1 - 192.168.1.5 - Default route --> 191.168.1.1
> > >
> > > On the Host, I am able to ping both default routes. On the VE, I can
> > > only ping the first default gateway, 10.0.0.1. I'm unable to ping
> > > 192.168.1.1.
> > >
> > > Is it possible to have 2 interfaces on a VE, each using a separate
> > > route? Feel free to just outline the general concept of what I have
> > > to do :). Any help would be greatly appreciated.
> > >
> > > Thanks,
> > >
> > > Julian
|
|
|
Goto Forum:
Current Time: Sun Sep 01 00:51:52 GMT 2024
Total time taken to generate the page: 0.05876 seconds
|