ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Ethernet Bridge на ALM2.4
@ 2006-01-09 10:11 Olvin
  2006-01-09 10:49 ` Evgenii Terechkov
  0 siblings, 1 reply; 6+ messages in thread
From: Olvin @ 2006-01-09 10:11 UTC (permalink / raw)
  To: ALT Linux Community

Возникла необходимость подключить через себя к домашней сетке ещё один 
комп. Сделал на быструю по HOWTO. Работает мост.

Но хочется, чтобы это было правильно, поднималось при загрузке системы и 
вписывалось куда-нибудь в /etc/sysconfig, т.е. чтобы не городить свой 
сервис bridge в /etc/rc.d/init.d (в rc.local не пропишешь, т.к. сеть к 
моменту его запуска ещё не поднята вообще)

Как сделать с учётом специфики ALM2.4?

Итак, вот что делал:

Было:
  eth0: 192.168.0.254/16,
  eth1: 10.1.1.254/8

Делаю:
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1

После этого route -n выдаёт что-то вроде:

Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

Делаю:
ifconfig br0 192.168.0.99 netmask 255.255.0.0 broadcast 192.168.255.255
route del -net 192.168.0.0 netmask 255.255.0.0 eth0
route add -net 192.168.0.0 netmask 255.255.0.0 br0

После этого работает.


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

end of thread, other threads:[~2006-01-09 11:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-09 10:11 [Comm] Ethernet Bridge на ALM2.4 Olvin
2006-01-09 10:49 ` Evgenii Terechkov
2006-01-09 11:03   ` Olvin
2006-01-09 11:03   ` Olvin
2006-01-09 11:05     ` Evgenii Terechkov
2006-01-09 11:43       ` Olvin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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