Hi All,
I am a newbie in LXC, I create a new container with SLES (host & guest)
- The same network of cause (10.10.15.0/24).
- The host can access to LAN.
- The guest can connect to host and vice versa.
- The guest can’t access from LAND and vice versa.
Could you show me where i am wrong?
This is my configuration:
Host:
hot-srv-sles11-01:/etc/sysconfig/network # cat ifcfg-br0
[QUOTE]BOOTPROTO=‘static’
BRIDGE=‘yes’
BRIDGE_FORWARDDELAY=‘0’
BRIDGE_PORTS=‘eth1’
BRIDGE_STP=‘off’
BROADCAST=’’
ETHTOOL_OPTIONS=’’
IPADDR=‘10.10.15.53/24’
MTU=’’
NAME=’’
NETMASK=’’
NETWORK=’’
REMOTE_IPADDR=’’
STARTMODE=‘auto’
USERCONTROL=‘no’
PREFIXLEN=‘24’[/QUOTE]
hot-srv-sles11-01:/etc/sysconfig/network # cat ifcfg-eth1
[QUOTE]BOOTPROTO=‘dhcp’
BROADCAST=’’
ETHTOOL_OPTIONS=’’
IPADDR=’’
MTU=’’
NAME=‘82545EM Gigabit Ethernet Controller (Copper)’
NETWORK=’’
REMOTE_IPADDR=’’
STARTMODE=‘auto’
USERCONTROL=‘no’
PREFIXLEN=‘32’
PROMISC=‘yes’[/QUOTE]
hot-srv-sles11-01:/etc/sysconfig/network # cat /etc/lxc/a/config
[QUOTE]lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.hwaddr = 02:00:43:fc:f9:17
lxc.network.ipv4 = 10.10.15.36/24
lxc.network.name = eth0
lxc.network.ipv4.gateway = 10.10.15.1
#remove next line if host DNS configuration should not be available to container
lxc.mount.entry = /etc/resolv.conf etc/resolv.conf none bind,ro 0 0
lxc.utsname = a
lxc.tty = 4
lxc.pts = 1024
lxc.rootfs = /var/lib/lxc/a/rootfs
lxc.mount = /etc/lxc/a/fstab[/QUOTE]
Thanks
Huynh Nguyen