From: Evgenii Terechkov <evg@krastel.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] Ethernet Bridge на ALM2.4 Date: Mon, 09 Jan 2006 17:49:46 +0700 Message-ID: <43C23FCA.5060307@krastel.ru> (raw) In-Reply-To: <43C236E8.9010403@rambler.ru> Olvin писал: > Возникла необходимость подключить через себя к домашней сетке ещё один > комп. Сделал на быструю по HOWTO. Работает мост. > > Но хочется, чтобы это было правильно, поднималось при загрузке системы и > вписывалось куда-нибудь в /etc/sysconfig, т.е. чтобы не городить свой > сервис bridge в /etc/rc.d/init.d (в rc.local не пропишешь, т.к. сеть к > моменту его запуска ещё не поднята вообще) А вот и нет. Я сначала через rc.local делал, работало. rc.local после всего остального пускается (погрепайте по /e/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 > После этого работает. Сам столкнулся с таким какое-то время назад. Собрал пакетик "bridge" котрый вот примерно это и делает при загрузке. Есть у него простенькая конфигурация в /e/sysconfig/bridge. Могу закинуть в личку, если надо. noarch.rpm для M2.4 и SRPM по 4Кб. Мне сейчас бридж уже не нужен и я пакет не развиваю. Но он такой простой, что сами разберётесь :-)
next prev parent reply other threads:[~2006-01-09 10:49 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-01-09 10:11 Olvin 2006-01-09 10:49 ` Evgenii Terechkov [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=43C23FCA.5060307@krastel.ru \ --to=evg@krastel.ru \ --cc=community@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
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