Mark Ryden
2006-Mar-16 10:15 UTC
[Fedora-xen] setting IP address for domU in a config file
Hello, I had followed the instructions in http://www.fedoraproject.org/wiki/FedoraXenQuickstart an I am succeeding in creating domain U. The thing is that I want domU to start with some static IP address. How can I do it ? I had tried adding , in the config file for domU, vif = [ ''ip=192.168.0.193'', ''bridge=xenbr0'' ] netmask="255.255.255.0" and run "xm create -c domUconfig" Dom U started , ifconfig -a showed eth0, but without the IP address. Any ideas ? Mark
Jairaj Menon
2006-Mar-16 10:25 UTC
Re: [Fedora-xen] setting IP address for domU in a config file
Mount the image file on your /mnt as explained in the quickstart guide and create the following files /etc/sysconfig/network-scripts/ifcfg-eth0 file DEVICE=eth0 BOOTPROTO=static HWADDR=00:14:22:B1:20:1E IPADDR=10.1.1.21 NETMASK=255.255.255.0 ONBOOT=yes TYPE=Ethernet /etc/sysconfig/network NETWORKING=yes HOSTNAME=(your hostname here) GATEWAY=10.1.1.1 Change the values as required. Thanks. - J a i On Thu, 2006-03-16 at 12:15 +0200, Mark Ryden wrote:> Hello, > I had followed the instructions in > http://www.fedoraproject.org/wiki/FedoraXenQuickstart > an I am succeeding in creating domain U. > The thing is that I want domU to start with some static IP address. > How can I do it ? > > I had tried adding , in the config file for domU, > vif = [ ''ip=192.168.0.193'', ''bridge=xenbr0'' ] > netmask="255.255.255.0" > > and run "xm create -c domUconfig" > Dom U started , ifconfig -a showed eth0, but without the IP address. > > Any ideas ? > > Mark > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen