Displaying 2 results from an estimated 2 matches for "routing_ip".
2013 Jan 28
5
xl nat and wrong IPs
Hi,
I''m currently switching from toolstacks from xm to xl. Because I have
a rather complex network setup with my domUs, I use xen''s nat
capabilities. But what works fine with xm behaves slightly strange in
xl:
I use something like the following to establish a domU interface
within my vif part:
''type=vif, mac=00:16:3E:06:DA:B2, ip=192.168.2.1, vifname=fw11,
2011 Aug 03
4
Xen 4 + Debian Squeeze + one VM in route mode and another in nat mode
...etwork-route netdev=eth0'')
(vif-script vif-route)
because my first VM is the most important....
For the second, I put that in cfg file :
vif = [ ''ip=192.168.1.2,mac=00:16:3E:xxxx:xx, script=vif-nat,
vifname=\
vif-debianTest'' ]
I modify a little vif-nat :
routing_ip()
{
#echo $(echo $1 | awk -F. ''{print $1"."$2"."$3"."$4 + 127}'')
echo $(echo $1 | awk -F. ''{print $1"."$2"."$3"."254}'')
}
to have always a static ip as gateway for VM2 (to configure it after in
its...