WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Why my guest os network disconnect domain 0 or anthor ex

To: Turinglifer Chu <Turinglifer@xxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Why my guest os network disconnect domain 0 or anthor external network?Thank you very much!
From: Hui Kang <hkang@xxxxxxxxxxxxx>
Date: Mon, 18 May 2009 15:24:06 -0400
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 18 May 2009 12:25:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <007f01c9d796$7c4a7350$4b451b0a@xxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <007f01c9d796$7c4a7350$4b451b0a@xxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
try disabling the firewall in your dom0.

- Hui

Turinglifer Chu wrote:
> my Guest os's ip and netmask below:
> inet addr:129.22.28.224 Bcast:129.22.31.255 Mask:255.255.224.0
> my Domain 0's ip and netmask below:
> inet addr:129.22.28.16 Bcast:129.22.31.255 Mask:255.255.224.0
> I can't ping Domain0 in Guest os.
> Why my guest os network disconnect domain 0 or anthor external
> network?Thank you very much!
> Domain 0:
> linux-jx4z:/etc/xen/scripts # ifconfig
> eth0 Link encap:Ethernet HWaddr 00:E0:81:81:0A:50
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:54 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:8868 (8.6 Kb) TX bytes:0 (0.0 b)
> eth2 Link encap:Ethernet HWaddr 00:E0:81:81:09:D5
> inet addr:129.22.28.16 Bcast:129.22.31.255 Mask:255.255.224.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2454545 errors:0 dropped:0 overruns:0 frame:0
> TX packets:29138 errors:2 dropped:0 overruns:0 carrier:2
> collisions:0 txqueuelen:1000
> RX bytes:187297285 (178.6 Mb) TX bytes:8064140 (7.6 Mb)
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:1640 errors:0 dropped:0 overruns:0 frame:0
> TX packets:1640 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:128254 (125.2 Kb) TX bytes:128254 (125.2 Kb)
> peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> UP BROADCAST NOARP MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Base address:0x2000 Memory:df220000-df240000
> vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:8868 (8.6 Kb)
> vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:11 errors:0 dropped:0 overruns:0 frame:0
> TX packets:36 errors:0 dropped:1 overruns:0 carrier:0
> collisions:0 txqueuelen:32
> RX bytes:3608 (3.5 Kb) TX bytes:4512 (4.4 Kb)
> vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:41 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:32
> RX bytes:2948 (2.8 Kb) TX bytes:0 (0.0 b)
> xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
> UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
> RX packets:54 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:8112 (7.9 Kb) TX bytes:0 (0.0 b)
> ===================================================================================================
> linux-jx4z:/etc/xen/scripts # brctl show
> bridge name bridge id STP enabled interfaces
> xenbr0 8000.feffffffffff no vif0.0
> peth0
> vif3.0
> vif2.0
> ===================================================================================================
> *GUEST OS:*
> [root@fc5_pristine /]# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:16:3E:73:08:24
> inet addr:129.22.28.224 Bcast:129.22.31.255 Mask:255.255.224.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:3522 (3.4 KiB)
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:37 errors:0 dropped:0 overruns:0 frame:0
> TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:3704 (3.6 KiB) TX bytes:3704 (3.6 KiB)
> ===================================================================================================
> network-bridge:
> linux-jx4z:/etc/xen/scripts # vi network-bridge
> fi
> ip link set ${netdev} down arp off
> ip link set ${netdev} addr fe:ff:ff:ff:ff:ff
> ip link set ${pdev} down
> ip addr flush ${netdev}
> ip link set ${pdev} addr ${mac} arp on
> brctl delif ${bridge} ${pdev}
> brctl delif ${bridge} ${vif0}
> ip link set ${bridge} down
> ip link set ${netdev} name ${vdev}
> ip link set ${pdev} name ${netdev}
> do_ifup ${netdev}
> else
> transfer_routes ${bridge} ${netdev}
> ip link set ${bridge} down
> fi
> brctl delbr ${bridge}
> }
> # adds $dev to $bridge but waits for $dev to be in running state first
> add_to_bridge2() {
> local bridge=$1
> local dev=$2
> local maxtries=10
> echo -n "Waiting for ${dev} to negotiate link."
> ip link set ${dev} up
> for i in `seq ${maxtries}` ; do
> if ifconfig ${dev} | grep -q RUNNING ; then
> break
> else
> echo -n '.'
> sleep 1
> fi
> done
> if [ ${i} -eq ${maxtries} ] ; then echo '(link isnt in running state)'
> ; fi
> add_to_bridge ${bridge} ${dev}
> }
> case "$command" in
> start)
> op_start
> ;;
> stop)
> op_stop
> ;;
> status)
> show_status ${netdev} ${bridge}
> ;;
> *)
> echo "Unknown command: $command" >&2
> echo 'Valid commands are: start, stop, status' >&2
> exit 1
> esac
> ===================================================================================================
> vif-bridge:
> linux-jx4z:/etc/xen/scripts # vi vif-bridge
> # Environment vars:
> # vif vif interface name (required).
> # XENBUS_PATH path to this device's details in the XenStore (required).
> #
> # Read from the store:
> # bridge bridge to add the vif to (optional). Defaults to searching
> for the
> # bridge itself.
> # ip list of IP networks for the vif, space-separated (optional).
> #
> # up:
> # Enslaves the vif interface to the bridge and adds iptables rules
> # for its ip addresses (if any).
> #
> # down:
> # Removes the vif interface from the bridge and removes the iptables
> # rules for its ip addresses (if any).
> #============================================================================
> dir=$(dirname "$0")
> . "$dir/vif-common.sh"
> bridge=${bridge:-}
> bridge=$(xenstore_read_default "$XENBUS_PATH/bridge" "$bridge")
> if [ -z "$bridge" ]
> then
> bridge=$(brctl show | cut -d "
> " -f 2 | cut -f 1)
> if [ -z "$bridge" ]
> then
> fatal "Could not find bridge, and none was specified"
> fi
> fi
> RET=0
> ip link show $bridge 1>/dev/null 2>&1 || RET=1
> if [ "$RET" -eq 1 ]
> then
> fatal "Could not find bridge device $bridge"
> fi
> case "$command" in
> online)
> setup_bridge_port "$vif"
> add_to_bridge "$bridge" "$vif"
> ;;
> offline)
> do_without_error brctl delif "$bridge" "$vif"
> do_without_error ifconfig "$vif" down
> ;;
> esac
> handle_iptable
> log debug "Successful vif-bridge $command for $vif, bridge $bridge."
> if [ "$command" = "online" ]
> then
> success
> fi
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>