From: MisHel64 <MisHel64@Bk.Ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] IfDown and RtNetLink Date: Fri, 1 Jan 2010 14:43:54 +0300 Message-ID: <106642687.20100101144354@Bk.Ru> (raw) In-Reply-To: <20091228080749.GB3293@ender.fondinvestrk.ru> Здравствуйте, Afanasov. Вы писали 28 декабря 2009 г., 11:07:50: >> > Возможно такое, что с начало удаляется 5.6.7.0/24, и автоматически via >> > 5.6.7.8, а потом ifdown повторно удаляет via 5.6.7.8, а так как такого >> > маршрута нет, то и возникает ошибка? >> > >> > Возможен такой вариант? >> я думаю именно так и происходит. > в общем, критичные строки в /etc/net/scripts/ifdown: > # здесь убивается dhcp клиент, что влечет за собой удаление маршрутов. > 63 stop_dhcp_client > # здесь происходит уборка маршрутов в том числе > 139 is_yes "$CONFIG_IPV4" && $SCRIPTDIR/config-ipv4 $NAME stop > "${IPV4ADDRESS[*]}" "${IPV6ADDRESS[*]}" Закомментировал эту строчку ошибка исчезла. Хотел использовать ifdown-pre, но получается, что и это не поможет. > # а вот тут выключается интерфейс, если он не выключен > 142 if iface_is_up $NAME; then > 146 $IP link set dev $NAME down && print_progress > 147 fi > вот в итоге и имеем, что для dhcp сначала выключаем iface, потом чистим > маршруты, а для статики сначала чистим, потом выключаем. -- С уважением, MisHel64 mailto:MisHel64@Bk.Ru
next prev parent reply other threads:[~2010-01-01 11:43 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-26 5:12 MisHel64 2009-12-26 7:46 ` Anton Farygin 2009-12-26 9:16 ` MisHel64 2009-12-26 9:48 ` Afanasov Dmitry 2009-12-26 10:14 ` MisHel64 2009-12-26 10:31 ` Afanasov Dmitry 2009-12-26 23:46 ` MisHel64 2009-12-28 7:23 ` Afanasov Dmitry 2009-12-28 8:07 ` Afanasov Dmitry 2010-01-01 11:43 ` MisHel64 [this message] 2009-12-26 9:57 ` Stanislav Vlasov 2009-12-26 10:10 ` MisHel64
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=106642687.20100101144354@Bk.Ru \ --to=mishel64@bk.ru \ --cc=sysadmins@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 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