<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; прописание статических маршрутов]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=24873&amp;type=atom" />
	<updated>2012-10-25T10:25:23Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=24873</id>
		<entry>
			<title type="html"><![CDATA[прописание статических маршрутов]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=305951#p305951" />
			<content type="html"><![CDATA[<p>добрый день.<br />необходимо прописать в автозагрузку статические маршруты с привязкой к конкретному интерфейсу(у меня их-4)</p><p>гуглил мануал. наткнулся на следующее</p><p>Static Routes</p><div class="codebox"><pre><code>Mandriva Linux uses a script /etc/sysconfig/network-scripts/ifup-routes to parse the file for static routes for each interface. This doesn&#039;t seem to be very well documented, so I&#039;ll do it here.

The files used to configure the routes are /etc/sysconfig/network-scripts/route-&lt;dev&gt; (e.g. /etc/sysconfig/network-scripts/route-eth0) and they contain the variables:

ADDRESS0=&lt;network address for route 0&gt;
NETMASK0=&lt;netmask for route 0&gt;
GATEWAY0=&lt;gateway address for route 0&gt;
ADDRESS1=&lt;network address for route 1&gt;
NETMASK1=&lt;netmask for route 1&gt;
GATEWAY1=&lt;gateway address for route 1&gt;

example: (route-eth0 for eth0)

ADDRESS0=10.0.1.0
NETMASK0=255.255.255.0
GATEWAY0=192.168.1.4
ADDRESS1=10.0.2.128
NETMASK1=255.255.255.128
GATEWAY1=192.168.1.5</code></pre></div><p>я так понимаю надо редактировать файл /etc/sysconfig/network-scripts/ifup-routes, который-в свою очередь ссылается на (скрипты???) /etc/sysconfig/network-scripts/route-&lt;dev&gt; </p><p>не ясно.<br />подскажите прошу</p>]]></content>
			<author>
				<name><![CDATA[unlimited]]></name>
				<uri>https://linuxforum.ru/profile.php?id=19192</uri>
			</author>
			<updated>2012-10-25T10:25:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=305951#p305951</id>
		</entry>
</feed>
