ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Yuriy Kashirin <yura@emict.com>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] etcnet & pppd persist
Date: Tue, 18 Oct 2005 14:06:39 +0300
Message-ID: <200510181406.40508.yura@emict.com> (raw)

Приветствую!

Есть такой вопрос. Имеем /etc/net, настраиваю ppp интерфейс для 
доступа к удаленной локальной сети. Соответсвенно, при поднятии 
интерфейса надо указать маршрут в эту сеть через поднятый интерфейс. 
Вопрос: где идеологически правильно такую настройку прописать при 
использовании /etc/net?

Раньше такой вопрос я решал правкой /etc/ppp/ip-up, который и добавлял 
нужную строку в таблицу маршрутизации (или в альт линуксе -- 
собственным скриптом в /etc/ppp/ip-up.d/).

В /etc/net заманчивой показалась возможность настройки маршрутов с 
помощью файла ipv4route. Попробовал. Получилось -- после поднятия 
интерфейса все маршруты как надо. Однако есть такая проблема. В 
настройках интерфейса указана опция pppd persist. Когда соединение 
ломается, и pppd его честно пересоздает, маршруты из ipv4route 
теряются. Что это -- бага? TODO?
Или все-таки маршруты через ip-up обновлять как раньше?

Подробности (интерфейс ppp102):

root@uka ~ # cat /etc/net/ifaces/ppp102/ipv4route
192.168.2.0/24  dev  ppp102

После поднятия интерфейса:

root@uka ~ # ip address show dev ppp102
16: ppp102: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1496 qdisc pfifo_fast 
qlen 3
    link/ppp
    inet 192.168.2.6 peer 192.168.1.1/32 scope global ppp102

root@uka ~ # ip route list
192.168.1.1 dev ppp102  proto kernel  scope link  src 192.168.2.6
192.168.2.0/24 dev ppp102  scope link
10.0.0.0/8 dev eth0  proto kernel  scope link  src 10.0.0.60
default via 10.0.0.92 dev eth0

После обрыва связи и пересоединения (потерян нужный маршрут):

root@uka ~ # ip route list
192.168.1.1 dev ppp102  proto kernel  scope link  src 192.168.2.6
10.0.0.0/8 dev eth0  proto kernel  scope link  src 10.0.0.60
default via 10.0.0.92 dev eth0


-- 
 Best regards
 Yuriy Kashirin

                 reply	other threads:[~2005-10-18 11:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200510181406.40508.yura@emict.com \
    --to=yura@emict.com \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

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

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


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