ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] формат /etc/sysconfig/static-routes
@ 2007-08-31  5:45 Roman V. Tutov
  2007-08-31  6:06 ` Dmitry Lebkov
  2007-08-31  9:33 ` ABATAPA
  0 siblings, 2 replies; 5+ messages in thread
From: Roman V. Tutov @ 2007-08-31  5:45 UTC (permalink / raw)
  To: ALT Linux Community

Мастер 2.4 нужно "зафиксировать" роутинг
добавляю командой
route add 192.168.161.46  gw 192.168.162.17
после перезагрузки эффект не сохраняется.
подскажите Plz где можно прочитать о формате
записи в файлике /etc/sysconfig/static-routes

-- 
Тутов Роман Викторович
ст.Системный администратор
ASTON Agro Industrial Company Group
Россия,344002, г.Ростов-на-Дону,Промзона "Заречная"
ул.1-я Луговая,3 тел.: (863 2) 999049
JID:tutov@jabber.aston.ru
mailto:tutov@aston.ru


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

* Re: [Comm] формат /etc/sysconfig/static-routes
  2007-08-31  5:45 [Comm] формат /etc/sysconfig/static-routes Roman V. Tutov
@ 2007-08-31  6:06 ` Dmitry Lebkov
  2007-08-31  6:14   ` Roman V. Tutov
  2007-08-31  9:33 ` ABATAPA
  1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Lebkov @ 2007-08-31  6:06 UTC (permalink / raw)
  To: ALT Linux Community

Roman V. Tutov пишет:
> Мастер 2.4 нужно "зафиксировать" роутинг
> добавляю командой
> route add 192.168.161.46  gw 192.168.162.17
> после перезагрузки эффект не сохраняется.
> подскажите Plz где можно прочитать о формате
> записи в файлике /etc/sysconfig/static-routes
> 

/usr/share/doc/initscripts-x.xx.x/sysconfig.txt:
-----
/etc/sysconfig/static-routes:

  Contains lines of the form:

    <device> host|net <arguments to route command>

  <device> may be a device name to have the route brought up and
  down with the device, or "any" to have the correct devices calculated
  at run time.

  For example:

  eth0 host 192.168.2.2 eth0

  adds a host route through eth0 to 192.168.2.2, while

  any net 192.168.2.0 netmask 255.255.255.0 ppp0

  adds a network route to the 192.168.2.0 network through ppp0.
-----


-- 
WBR, Dmitry Lebkov


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

* Re: [Comm] формат /etc/sysconfig/static-routes
  2007-08-31  6:06 ` Dmitry Lebkov
@ 2007-08-31  6:14   ` Roman V. Tutov
  2007-08-31  7:13     ` Dmitry Lebkov
  0 siblings, 1 reply; 5+ messages in thread
From: Roman V. Tutov @ 2007-08-31  6:14 UTC (permalink / raw)
  To: ALT Linux Community

Dmitry Lebkov пишет:

т.е в моем случае все очень просто ?
any host 192.168.161.46 gw 192.168.162.17

> 
> /usr/share/doc/initscripts-x.xx.x/sysconfig.txt:
> -----
> /etc/sysconfig/static-routes:
> 
>   Contains lines of the form:
> 
>     <device> host|net <arguments to route command>
> 
>   <device> may be a device name to have the route brought up and
>   down with the device, or "any" to have the correct devices calculated
>   at run time.
> 
>   For example:
> 
>   eth0 host 192.168.2.2 eth0
> 
>   adds a host route through eth0 to 192.168.2.2, while
> 
>   any net 192.168.2.0 netmask 255.255.255.0 ppp0
> 
>   adds a network route to the 192.168.2.0 network through ppp0.
> -----
> 
> 


-- 
Тутов Роман Викторович
ст.Системный администратор
ASTON Agro Industrial Company Group
Россия,344002, г.Ростов-на-Дону,Промзона "Заречная"
ул.1-я Луговая,3 тел.: (863 2) 999049
JID:tutov@jabber.aston.ru
mailto:tutov@aston.ru


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

* Re: [Comm] формат /etc/sysconfig/static-routes
  2007-08-31  6:14   ` Roman V. Tutov
@ 2007-08-31  7:13     ` Dmitry Lebkov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Lebkov @ 2007-08-31  7:13 UTC (permalink / raw)
  To: ALT Linux Community

Roman V. Tutov пишет:
> 
> т.е в моем случае все очень просто ?
> any host 192.168.161.46 gw 192.168.162.17

Если в системе после поднятия _любого_ интерфеса адрес
192.168.162.17 будет доступен -- можно и так.

Но если этот адрес доступен через какой-то из ethernet-интерфейсов
-- надежнее (и правильнее) указать имя именного ethernetинтерфейса.

-- 
WBR, Dmitry Lebkov


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

* Re: [Comm] формат /etc/sysconfig/static-routes
  2007-08-31  5:45 [Comm] формат /etc/sysconfig/static-routes Roman V. Tutov
  2007-08-31  6:06 ` Dmitry Lebkov
@ 2007-08-31  9:33 ` ABATAPA
  1 sibling, 0 replies; 5+ messages in thread
From: ABATAPA @ 2007-08-31  9:33 UTC (permalink / raw)
  To: ALT Linux Community

31 августа 2007 г. Roman V. Tutov написал:
>Plz где можно прочитать о формате
> записи в файлике /etc/sysconfig/static-routes
Наверное, как обычно, в документации?

grep -A10 'static-routes' /usr/share/doc/net-scripts*/README

-- 
ABATAPA


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

end of thread, other threads:[~2007-08-31  9:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-31  5:45 [Comm] формат /etc/sysconfig/static-routes Roman V. Tutov
2007-08-31  6:06 ` Dmitry Lebkov
2007-08-31  6:14   ` Roman V. Tutov
2007-08-31  7:13     ` Dmitry Lebkov
2007-08-31  9:33 ` ABATAPA

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