Results 1 to 3 of 3
Hi folks,
KVM
host - Debian 5.0
VM (guest) - Ubuntu 9.10
Just created a new VM running Ubuntu 9.10 with following command;
$ sudo virt-install --connect qemu:///system -n vm30ubuntu910 ...
- 12-08-2009 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
Static IP can't work
Hi folks,
KVM
host - Debian 5.0
VM (guest) - Ubuntu 9.10
Just created a new VM running Ubuntu 9.10 with following command;
$ sudo virt-install --connect qemu:///system -n vm30ubuntu910 -r 512 --vcpus=2 -f /home/satimis/VM/vm30ubuntu910.qcow2 -s 12 -c /home/satimis/Desktop/mini_ubuntu9.10.iso --vnc --noautoconsole --os-type linux --accelerate --network=bridge:br0 --hvm
Internet can be connected with following dynamic IP
$ cat /etc/network/interfacesCode:auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp
If change it to static IP then it can't connect Internet
$ cat /etc/network/interfacesCode:# The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.0.30 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off
$ sudo ifconfig eth0$ netstat -rnCode:eth0 Link encap: Ethernet HWaddr 54:52:00:07:69:c8 Broadcase multicast MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 ovrruns:0 frame:0 TX packets:0 errors:0 dropped:0 ovrruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0.B) Interrupt:10
Please advise how to fix the problem. TIACode:Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface
Remark:
Other VMs works seamlessly with above static IP
B.R.
satimis
- 12-08-2009 #2
you are changing the device br0 on the guest, does it even exist? You say dynamic IP works with eth0, then you should be setting that static IP stuff for eth0.
Code:auto eth0 iface eth0 inet static address 192.168.0.30 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1
- 12-08-2009 #3Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546


Reply With Quote

