Hello,<br><br>i'd like to understand more deeply xen networking.<br>My purpose is to modify the dscp ip field in guest's packet, to perform Qos, thanks to iptables.<br><br>I'm using a FC7 with xen 3.1. <br>I've installed a windows guest, with virt-manager, and I have used the default nat network option. Unfortunatelly, i couldn't use the bridge option because no network card was proposed! but this isn't the subject...
<br><br>I was quite surprised when i saw, in my xen-config.sxp : (network-script : network-bridge). it should be network-nat, am I wrong?<br><br>the ifconfig command displays :<br><br><br>lo        Link encap:Boucle locale
<br>          inet adr:<a href="http://127.0.0.1">127.0.0.1</a>  Masque:<a href="http://255.0.0.0">255.0.0.0</a><br>          adr inet6: ::1/128 Scope:Hôte<br>          UP LOOPBACK RUNNING  MTU:16436  Metric:1<br>          RX packets:731062 errors:0 dropped:0 overruns:0 frame:0
<br>          TX packets:731062 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 lg file transmission:0<br>          RX bytes:7695075004 (7.1 GiB)  TX bytes:7695075004 (7.1 GiB)<br><br>tap0      Link encap:Ethernet  HWaddr 82:E3:26:59:DC:BF
<br>          adr inet6: fe80::80e3:26ff:fe59:dcbf/64 Scope:Lien<br>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1<br>          RX packets:17783 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:513 errors:0 dropped:0 overruns:0 carrier:0
<br>          collisions:0 lg file transmission:500<br>          RX bytes:24458454 (23.3 MiB)  TX bytes:181392 (177.1 KiB)<br><br>tmpbridge Link encap:Ethernet  HWaddr 00:00:00:00:00:00<br>          inet adr:<a href="http://192.168.1.5">
192.168.1.5</a>  Bcast:<a href="http://192.168.1.255">192.168.1.255</a>  Masque:<a href="http://255.255.255.0">255.255.255.0</a><br>          adr inet6: fe80::200:ff:fe00:0/64 Scope:Lien<br>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
<br>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 lg file transmission:0<br>          RX bytes:0 (0.0 b)  TX bytes:9046 (
8.8 KiB)<br><br>vif11.0   Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF<br>          UP BROADCAST MULTICAST  MTU:1500  Metric:1<br>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
<br>          collisions:0 lg file transmission:32<br>          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)<br><br>virbr0    Link encap:Ethernet  HWaddr 82:E3:26:59:DC:BF<br>          inet adr:<a href="http://192.168.122.1">192.168.122.1
</a>  Bcast:<a href="http://192.168.122.255">192.168.122.255</a>  Masque:<a href="http://255.255.255.0">255.255.255.0</a><br>          adr inet6: fe80::200:ff:fe00:0/64 Scope:Lien<br>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
<br>          RX packets:21958 errors:0 dropped:0 overruns:0 frame:0<br>          TX packets:1377 errors:0 dropped:0 overruns:0 carrier:0<br>          collisions:0 lg file transmission:0<br>          RX bytes:24771762 (23.6
 MiB)  TX bytes:304511 (297.3 KiB)<br><br>the "network-bridge status" displays : <br>============================================================<br>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue<br>
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>    inet <a href="http://127.0.0.1/8">127.0.0.1/8</a> scope host lo<br>    inet6 ::1/128 scope host<br>       valid_lft forever preferred_lft forever<br>2: peth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
<br>    link/ether 00:08:02:f5:71:e6 brd ff:ff:ff:ff:ff:ff<br>3: virbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue<br>    link/ether 82:e3:26:59:dc:bf brd ff:ff:ff:ff:ff:ff<br>    inet <a href="http://192.168.122.1/24">
192.168.122.1/24</a> brd <a href="http://192.168.122.255">192.168.122.255</a> scope global virbr0<br>    inet6 fe80::200:ff:fe00:0/64 scope link<br>       valid_lft forever preferred_lft forever<br>4: tmpbridge: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
<br>    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff<br>    inet <a href="http://192.168.1.5/24">192.168.1.5/24</a> brd <a href="http://192.168.1.255">192.168.1.255</a> scope global tmpbridge<br>    inet6 fe80::200:ff:fe00:0/64 scope link
<br>       valid_lft forever preferred_lft forever<br>21: vif11.0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 32<br>    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff<br>22: tap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 500
<br>    link/ether 82:e3:26:59:dc:bf brd ff:ff:ff:ff:ff:ff<br>    inet6 fe80::80e3:26ff:fe59:dcbf/64 scope link<br>       valid_lft forever preferred_lft forever<br><br><br>it seems like the network-bridge scripts crashes, because the tmpbridge is not renamed, and when I start the xend service or when I run network-bridge start, the eth0 interface is disable!!
<br><br>can anyone helps me debug this situation?<br><br>thanks<br>