ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Сохранение информации о маршрутизации
@ 2005-03-22 12:59 Olvin
  2005-03-22 13:13 ` [Comm] Сохранение информации о маршрутиз ации Eugene Ostapets
  0 siblings, 1 reply; 2+ messages in thread
From: Olvin @ 2005-03-22 12:59 UTC (permalink / raw)
  To: community

ALM2.4
$ sudo route
Kernel IP routing table
Destination     Gateway Genmask         Flags Metric Ref Use Iface
192.168.0.0     *       255.255.255.0   U     0      0   0   eth0
127.0.0.0       *       255.0.0.0       U     0      0   0   lo
$ sudo route add -net 10.0.0.0/8 eth0
$ sudo route
Kernel IP routing table
Destination     Gateway Genmask         Flags Metric Ref Use Iface
192.168.0.0     *       255.255.255.0   U     0      0   0   eth0
10.0.0.0        *       255.0.0.0       U     0      0   0   eth0
127.0.0.0       *       255.0.0.0       U     0      0   0   lo
$
Пакеты ходят, всё нормально. Но хотелось бы эти изменения сделать 
постоянными. Т.е. чтобы они восстанавливались при запуске service 
network start. Как это грамотно сделать? Не хотелось бы прописывать в 
стартовые скрипты. Хочется через конфигурационные файлы (наподобие 
/etc/sysconfig/network).


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

* Re: [Comm] Сохранение информации о маршрутиз ации
  2005-03-22 12:59 [Comm] Сохранение информации о маршрутизации Olvin
@ 2005-03-22 13:13 ` Eugene Ostapets
  0 siblings, 0 replies; 2+ messages in thread
From: Eugene Ostapets @ 2005-03-22 13:13 UTC (permalink / raw)
  To: community

On Tue, 22 Mar 2005 14:59:14 +0200, Olvin <olvin@rambler.ru> wrote:
> ALM2.4
> $ sudo route
> Kernel IP routing table
> $
> Пакеты ходят, всё нормально. Но хотелось бы эти изменения сделать
> постоянными. Т.е. чтобы они восстанавливались при запуске service
> network start. Как это грамотно сделать? Не хотелось бы прописывать в
> стартовые скрипты. Хочется через конфигурационные файлы (наподобие
> /etc/sysconfig/network).
/etc/sysconfig/static-routes
Подробности читать в /usr/share/doc/initscripts-x.xx/sysconfig.txt

-- 
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru

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

end of thread, other threads:[~2005-03-22 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-22 12:59 [Comm] Сохранение информации о маршрутизации Olvin
2005-03-22 13:13 ` [Comm] Сохранение информации о маршрутиз ации Eugene Ostapets

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