LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-14-2010, 12:56 PM   #1
riegersteve
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
kvm bridge on cent os question


host and guest both centos 5.5
network is 192.168.62.40
host is setup as follows


[root at cloud2 ~]# ifconfig
br0 Link encap:Ethernet HWaddr 00:1A:64:12:109
inet addr:192.168.62.199 Bcast:192.168.63.255 Mask:255.255.254.0
inet6 addr: fe80::21a:64ff:fe12:10d9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1705488 errors:0 dropped:0 overruns:0 frame:0
TX packets:1130086 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1103112199 (1.0 GiB) TX bytes:2544941783 (2.3 GiB)

eth0 Link encap:Ethernet HWaddr 00:1A:64:12:109
inet6 addr: fe80::21a:64ff:fe12:10d9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1714601 errors:0 dropped:0 overruns:0 frame:0
TX packets:2243903 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1134903389 (1.0 GiB) TX bytes:2627513407 (2.4 GiB)
Interrupt:90 Memory:c8000000-c8012800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10396 errors:0 dropped:0 overruns:0 frame:0
TX packets:10396 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8188566 (7.8 MiB) TX bytes:8188566 (7.8 MiB)

virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.62.1 Bcast:192.168.62.255 Mask:255.255.255.0
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:222 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:16218 (15.8 KiB)

vnet0 Link encap:Ethernet HWaddr 9A:B0:F1:FE:9F:1C
inet6 addr: fe80::98b0:f1ff:fefe:9f1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:1504 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:18288 (17.8 KiB) TX bytes:105343 (102.8 KiB)

[root at cloud2 network-scripts]# cat ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth0
#BOOTPROTO=static
#BROADCAST=192.168.63.255
#HWADDR=00:1A:64:12:109
#IPADDR=192.168.62.22
#NETMASK=255.255.254.0
#NETWORK=192.168.62.0
ONBOOT=yes
BRIDGE=br0

[root at cloud2 network-scripts]# cat ifcfg-br0
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
TYPE=Bridge
DEVICE=br0
#BOOTPROTO=static
BROADCAST=192.168.63.255
#HWADDR=00:1A:64:12:109
IPADDR=192.168.62.199
NETMASK=255.255.254.0
NETWORK=192.168.62.0
ONBOOT=yes

KVM image is as follows
[root at www ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.63.255
HWADDR=54:52:00:04:00:1d
IPADDR=192.168.62.14
NETMASK=255.255.254.0
NETWORK=192.168.62.0
ONBOOT=yes
GATEWAY=192.168.62.40
TYPE=Ethernet


heres the config for the guest

<domain type='kvm' id='3'>
<name>www</name>
<uuid>cf0351ad-2df9-1f83-d668-3901543109ef</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='rhel5.4.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' cache='none'/>
<source file='/cloud/disks/www.img'/>
<target dev='hda' bus='ide'/>
</disk>
<disk type='file' device='cdrom'>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='bridge'>
<mac address='54:52:00:04:00:1d'/>
<source bridge='br0'/>
<target dev='vnet0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5900' autoport='yes' keymap='en-us'/>
</devices>
</domain>


i can access the kvm image from other hosts on the network ,
but the kvm image can not access anything except for the gateway

what am i doing wrong here

thanx
 
Old 07-14-2010, 01:43 PM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Any security config on the switch?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kvm wireless bridge network shogun1234 Debian 5 08-13-2012 03:01 PM
Kvm using wireless bridge, how michaelux Linux - Virtualization and Cloud 1 06-07-2010 08:48 AM
KVM on Centos 5.4 - bridge issue on virtual interfaces asmar Linux - Networking 1 03-01-2010 11:11 PM
static routing question (cent os 4.x server) foilpan Linux - Networking 4 04-13-2009 01:03 PM
Cannot access Internet from Vmware guest : Cent O/S when adsl router is bridge mode kumvinod Linux - Networking 0 03-02-2009 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration