[Lxc-users] Broken pipe when ssh from host to container

Verdi March cincaipatron at gmx.net
Fri Dec 16 02:31:34 UTC 2011


Hi Serge,

here's the requested information.

Quoting Serge Hallyn <serge.hallyn at canonical.com>:
> What does br0's config look like?  Can you show us /etc/network/interfaces

=======================================
verdi.march at opencirrus-07308:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
=======================================

FYI, the br0 was setup from the command line, hence you don't see it in
the /etc/network/interfaces.

Here're the commands I used to setup the bridge, based on instructions
in https://www.ibm.com/developerworks/linux/library/l-lxc-containers/

brctl addbr br0
brctl setfd br0 0
ifconfig br0 198.55.32.143 promisc up
brctl addif br0 eth0
ifconfig eth0 0.0.0.0 up

The IP address is the same as what's allocated by DHCP to the eth0.

> and output of
> 
> 	brctl show
> 	ip link
> 	ip addr

verdi.march at opencirrus-07308:~$ brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.00237d9655a0       no              eth0
                                                        veth5nJrod
=======================================
verdi.march at opencirrus-07308:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP qlen 1000
    link/ether 00:23:7d:96:55:a0 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000                       
    link/ether 00:23:7d:96:55:a1 brd ff:ff:ff:ff:ff:ff                                        
4: br0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP             
    link/ether 00:23:7d:96:55:a0 brd ff:ff:ff:ff:ff:ff                                        
30: veth5nJrod: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000                                                                           
    link/ether a2:f8:09:be:00:ad brd ff:ff:ff:ff:ff:ff
=======================================
verdi.march at opencirrus-07308:~$ ip addr                                                       
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN                           
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br0 state UP qlen 1000
    link/ether 00:23:7d:96:55:a0 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::223:7dff:fe96:55a0/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether 00:23:7d:96:55:a1 brd ff:ff:ff:ff:ff:ff
4: br0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether 00:23:7d:96:55:a0 brd ff:ff:ff:ff:ff:ff
    inet 198.55.32.143/24 brd 198.55.32.255 scope global br0
    inet6 fe80::223:7dff:fe96:55a0/64 scope link 
       valid_lft forever preferred_lft forever
30: veth5nJrod: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000
    link/ether a2:f8:09:be:00:ad brd ff:ff:ff:ff:ff:ff
    inet6 fe80::a0f8:9ff:febe:ad/64 scope link 
       valid_lft forever preferred_lft forever

> > > debug3: Wrote 32 bytes for a total of 2071
> > > debug3: Wrote -1 bytes for a total of 2071
> 
> uh, well, in my professional opinion, that there is gonna be your problem
> </joke :) >

well, I don't mind that :)

Regards,
Verdi

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de




More information about the lxc-users mailing list