From: Dmitry Lebkov <dima@sakhalin.ru> To: community@altlinux.ru Subject: Re: Re[2]: [Comm] static-routes нифига не прописываются на алиасы. Date: Tue, 24 Aug 2004 22:39:45 +1100 Message-ID: <20040824223945.12d06a26.dima@sakhalin.ru> (raw) In-Reply-To: <1991074447.20040824141403@penza.com.ru> On Tue, 24 Aug 2004 14:14:03 +0400 rcc-of@penza.com.ru wrote: > Здравствуйте, Dmitry. > > Вы писали 24 августа 2004 г., 11:31:29: > > >> Здравствуйте. > >> > >> Есть VLAN интерфейс eth0.5, есть на нем еще и алиас eth0.5:0 > >> > >> Есть в /etc/sysconfig/static-routes запись типа > >> > >> eth0.5:0 net 192.168.10.1 gw 192.168.1.10 > > Написать вот так: > > > eth0.5 net 192.168.10.1 gw 192.168.1.10 > Ага, и исходящий адрес пакетов будет от интерфейса eth0.5 > оно мне надо? Кто тебе сказал, что исходящий адрес будет таким? Адрес будет выбран в зависимости от маршрута. Внимательно изучаем скрипт ifup-routes и видим, что имя интерфейса используется только для того, чтоб поднимать соответствующие маршруты из static-routes в момент поднятия соответствующего интерфейса. Так, сразу не увидел. Если ты пытаешся добавить маршрут на сеть, то необходимо указывать маску. А если на хост - то и указывать, что это хост. Т.е. выглядеть должно вот так: eth0.5 host 192.168.10.1 gw 192.168.1.10 dev или (предположив что маршрутится вся /24 сеть) eth0.5 net 192.168.10.0 netmask 255.255.255.0 gw 192.168.1.10 dev > > или вот так > > > eth0.5 net 192.168.10.1 gw 192.168.1.10 dev > Вот так можно конечно попробовать. Для чего в конце надо дописывать dev - смотри внутри ifup-routes, в то место где происходит обработка файла static-routes. ;) > >> При загрузке системы роутинг на алиасы нифига не встает :( > >> > >> Если сказать /etc/sysconfig/network-scripts/ifup-routes eth0.5:0 то > >> роутинг появляется. > >> > >> Что я делаю неправильно и в какую сторону копать? > > > Смотреть внутри скриптов ifup, ifup-aliases, ifup-routes. > А что в них смотреть? Искать баги и править? Смотреть логику работы скриптов и требеумый формат записей в static-routes. --- WBR, Dmitry Lebkov
next prev parent reply other threads:[~2004-08-24 11:39 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-08-24 7:16 rcc-of 2004-08-24 7:31 ` Dmitry Lebkov 2004-08-24 10:14 ` Re[2]: " rcc-of 2004-08-24 11:39 ` Dmitry Lebkov [this message] 2004-08-25 0:06 ` Re[4]: " rcc-of 2004-08-25 2:37 ` Dmitry Lebkov 2004-08-24 9:09 ` JT: " Сергей Лизогуб 2004-08-24 20:18 ` Andrew 2004-08-24 10:14 ` JT: Re: [Comm][JT] " Maxim Bodyansky 2004-08-24 12:55 ` [Comm] " Igor Solovyov 2004-08-24 22:03 ` Re[2]: " rcc-of
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=20040824223945.12d06a26.dima@sakhalin.ru \ --to=dima@sakhalin.ru \ --cc=community@altlinux.ru \ /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