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] no ssh login

To: "B. Liu" <bl246@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] no ssh login
From: Jayesh Salvi <jayeshsalvi@xxxxxxxxx>
Date: Thu, 19 Jan 2006 11:48:32 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 19 Jan 2006 17:56:33 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=P+3ImyRXZxzOnuadvC50+lbgVrb2+CIEz24Aktemjh2GGEYz8nkSlWuSjR52wOXAurm4opc+/fG4uYiDTWHDtx2lAp1HZy0IFNxmoi7FncUNsF4OsVYWP53IPerOxV2l/VVwfl2It0h/p3YRDlXpDurqTairCjLi8HSjuF+2btc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.62.0601191624370.19670@xxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <Pine.LNX.4.62.0601181135090.14205@xxxxxxxxxxxxxxxxxxxxx> <871640aa0601180812m519947b3m27c8ee614302a034@xxxxxxxxxxxxxx> <Pine.LNX.4.62.0601191624370.19670@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On 1/19/06, B. Liu <bl246@xxxxxxxxxxxxxxxx> wrote:
As xenbro starts automatically everytime I reboot the machine, so I have
to comment off the network-bridge and vif-bridge, and uncomment the
vif-nat in the xend-config.sxp, I modified the vif-nat file, change the
the ip address to 192.168.3.0, but when I restarted the machine, the
ifconfig shows as following:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.3.1     0.0.0.0         255.255.255.255 UH    0      0        0
vif1.0
192.168.3.2     0.0.0.0         255.255.255.255 UH    0      0        0
vif1.1
182.20.0.0     0.0.0.0         255.255.0.0     U     0      0        0
eth0
0.0.0.0         182.20.127.255   0.0.0.0         UG    0      0        0
eth0
I couldn't find a way to change the netmask to 255.255.255.0, How Can I
change the netmask address?.

I guess you may not need to change ifconfig. This is how my ifconfig looks.

If I comment of the (vif-nat) in the xend-config.sxp, then xden domains
won't be able to start, claim can't dinf device(0) for vif.

When I run ifconfig vif1.0 192.168.3.1 netmask 255.255.255.0 up and
ifconfig vif1.1 down, I got ifconfig as following:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.3.0     0.0.0.0         255.255.255.0    U     0      0        0
vif1.0
192.168.3.0     0.0.0.0         255.255.255.0   U     0      0        0
vif1.0
182.20.0.0     0.0.0.0         255.255.0.0     U     0      0        0
eth0
0.0.0.0         182.20.127.255  0.0.0.0         UG    0      0        0
eth0

When I login to vm01, no ssh connection to any remote client. The remote
client still can ssh to dom0.

Post your routing tables. And for verifying first try ping.  For ssh connections to your domU make sure that sshd is running in domU.

On Wed, 18 Jan 2006, Jayesh Salvi wrote:

> Date: Wed, 18 Jan 2006 10:12:17 -0600
> From: Jayesh Salvi <jayeshsalvi@xxxxxxxxx>
> To: B. Liu < bl246@xxxxxxxxxxxxxxxx>
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] no ssh login
>
> Your dom0 routing table is still routing the traffic to your bridge from old
> setup. use brctl to remove xenbr0 you have.
> Then try:
> ifconfig vifx.y 192.168.3.1 netmask 255.255.255.0 up (Alternatively after
> removing xenbr0 if you create a new domU the ifconfig will have done this
> step automatically, picking up some IP address for new vif)
> This step should also have corrected your routing table.
>
> Then you will have to update your domU routing table so that it now routes
> the traffic to the new gateway.
> If you run into problems while doing this, post output of your ifconfig and
> route -n at that point.
>
Bin



--
Jayesh

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