hi, I have a VM with route-nat and 3 virtual interfaces. This is my config: vif = [ ''ip=10.10.10.4/24, vifname=vif1.0'', ''ip=10.10.20.4/24, vifname=vif2.0'', ''ip=10.10.30.4/24, vifname=vif3.0'' ] And the output of dom0 ifconfig: vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:10.10.10.131 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:10.10.20.131 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF inet addr:10.10.30.131 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) I need to know how can I change the IP address of vifx.0. I want to set that address to something like 10.10.10.1 or 10.10.20.1, not 10.10.10.131. Where can I change that 131 to something else? and why is assigned like that? thx in advance. -- Janis Daniel Bistevins --- Serenity now!!! --- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Jan 16, 2008 10:10 AM, Janis Daniel Bistevins <bistevins@gmail.com> wrote:> hi, > I have a VM with route-nat and 3 virtual interfaces. This is my config: > > vif = [ ''ip=10.10.10.4/24, vifname=vif1.0'', ''ip=10.10.20.4/24, > vifname=vif2.0'', ''ip=10.10.30.4/24, vifname=vif3.0'' ] > > And the output of dom0 ifconfig: > > vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:10.10.10.131 Bcast:0.0.0.0 Mask:255.255.255.255 > UP BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:32 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:10.10.20.131 Bcast:0.0.0.0 Mask:255.255.255.255 > UP BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:32 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF > inet addr:10.10.30.131 Bcast:0.0.0.0 Mask:255.255.255.255 > UP BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:32 > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) > > > I need to know how can I change the IP address of vifx.0. I want to > set that address to > something like 10.10.10.1 or 10.10.20.1, not 10.10.10.131. > > Where can I change that 131 to something else? and why is assigned like > that? >If my understanding is correct, since you set the guest IP to 10.10.10.4 the vifx.0 gets 10.10.10.131 since Xen adds 127 to the 4 (127+4 = 131). That is just the backend and you will not use that IP, you should only be concerned with the frontend number i.e. 10.10.10.4 which you set in the config. Regards, Todd> > thx in advance. > > > -- > Janis Daniel Bistevins > --- > Serenity now!!! > --- > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Jan 16, 2008 1:27 PM, Todd Deshane <deshantm@gmail.com> wrote:> If my understanding is correct, since you set the guest IP to 10.10.10.4 the > vifx.0 gets 10.10.10.131 since Xen adds 127 to the 4 (127+4 = 131). That is > just the backend and you will not use that IP, you should only be concerned > with the frontend number i.e . 10.10.10.4 which you set in the config.ok, so, can I change that behaviour? because, if I have another domU in the same network, it would have a different gw, right? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Jan 16, 2008 11:52 AM, Janis Daniel Bistevins <bistevins@gmail.com> wrote:> On Jan 16, 2008 1:27 PM, Todd Deshane <deshantm@gmail.com> wrote: > > If my understanding is correct, since you set the guest IP to 10.10.10.4the > > vifx.0 gets 10.10.10.131 since Xen adds 127 to the 4 (127+4 = 131). That > is > > just the backend and you will not use that IP, you should only be > concerned > > with the frontend number i.e . 10.10.10.4 which you set in the config. > > ok, so, can I change that behaviour? > because, if I have another domU in the same network, it would have a > different gw, right? >The gateway is the dom0 (or driver domain) address right? That is generally a static address for each dom0 (i.e. physical machine). I would expect that the domUs on the same box would have the same gateway and the different one have different. If my understanding is correct you don''t even need to worry about the .131 number as that is not the gateway, but just a backend IP. The gateway (presumably the dom0) is typically just that , a gateway , and not usually addressed directly. Todd> > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users