ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] success: samba in VE
@ 2007-06-29 13:59 Artem Zolochevskiy
  2007-06-29 15:18 ` Michael Shigorin
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Artem Zolochevskiy @ 2007-06-29 13:59 UTC (permalink / raw)
  To: sysadmins

hi all

Кто-то спрашивал помнится здесь про samba внутри VE

вот такой у меня сегодня конспектик получился

===
сжато

исходное положение
HN - 192.168.0.1
VE с samba - 192.168.0.115
Надо, чтоб машины сети 192.168.0.0/24 "видели" samba в VE

# vzctl create 115 --ostemplate xxx --hostname server.samba.localnet
# vzctl start 115
# vzctl set 115 --netif_add
eth0,00:12:34:56:78:9A,veth115.0,00:12:34:56:78:9B --save 
# ifconfig veth115.0 0
# echo 1 > /proc/sys/net/ipv4/conf/veth115.0/forwarding
# echo 1 > /proc/sys/net/ipv4/conf/veth115.0/proxy_arp
# echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
# echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
# vzctl enter 115
[root@test /]# /sbin/ifconfig eth0 0
[root@test /]# ip addr add 192.168.0.115/24 broadcast 192.168.0.255 dev eth0
[root@test /]# exit
# ip route add 192.168.0.115 dev veth115.0
# vzctl enter 115
[root@test /]# apt-get install samba
[root@test /]# vi /etc/samba/smb.conf
[root@test /]# service smb start
[root@test /]# exit
# ifconfig vzbr0 0
# brctl addbr vzbr0
# brctl addif vzbr0 veth115.0
# brctl addif vzbr0 eth0
# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/forwarding
# echo 1 > /proc/sys/net/ipv4/conf/vzbr0/proxy_arp

===

кажется ничего не забыл.
если где-то, что-то лишнего наделал, подскажите

Но главное - это работает ;-)

-- 
Artem Zolochevskiy
Kaliningrad, Russia
JID: az@jabber.org



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-07-02 20:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-29 13:59 [Sysadmins] success: samba in VE Artem Zolochevskiy
2007-06-29 15:18 ` Michael Shigorin
2007-06-29 15:42 ` Peter Evdokimov
2007-06-29 18:30   ` Eugene Prokopiev
2007-06-30  5:40     ` Peter Evdokimov
2007-06-29 18:29 ` Eugene Prokopiev
2007-07-02 13:17 ` Slava Dubrovskiy
2007-07-02 18:53   ` Eugene Prokopiev
2007-07-02 20:28     ` Slava Dubrovskiy

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git