<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Маршрутизация между usb0 и eth0]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=7131&amp;type=atom" />
	<updated>2010-10-04T09:52:42Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=7131</id>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97800#p97800" />
			<content type="html"><![CDATA[<p>Сделал пинг 192.168.1.23(IP usb0) с Windows (подключен к eth0) и пинг идет, может я не верно изложил верхнюю табличку, ниже изложил как щас, может так и должно быть , меня смушал в первом маршруте в конце usb0,мне нужно было для eth0 прописать маршрут к usb0.Мне нужен ответ - это правельно что там usb0 или все токи там должен стоять eth0</p><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />[root@localhost ~]# netstat -r<br />Kernel IP routing table<br />Destination&nbsp; &nbsp; &nbsp;Gateway&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Genmask&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Flags&nbsp; &nbsp;MSS Window&nbsp; irtt Iface<br />192.168.2.0&nbsp; &nbsp; &nbsp;192.168.1.23&nbsp; &nbsp; 255.255.255.0&nbsp; &nbsp;UG&nbsp; &nbsp; &nbsp; &nbsp; 0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />192.168.2.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.1.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />192.168.122.0&nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 virbr0<br />169.254.0.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.0.0&nbsp; &nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />default&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;192.168.1.1&nbsp; &nbsp; &nbsp;0.0.0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UG&nbsp; &nbsp; &nbsp; &nbsp; 0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br /></div></p>]]></content>
			<author>
				<name><![CDATA[sorrrrry]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11511</uri>
			</author>
			<updated>2010-10-04T09:52:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97800#p97800</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97792#p97792" />
			<content type="html"><![CDATA[<p><strong>sorrrrry</strong>, весли вы не понимаете то что&nbsp; делаете, как вам еще объяснять? я вам и так уже все разжевал, сказал что и как, подсказал.</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2010-10-04T09:40:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97792#p97792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97788#p97788" />
			<content type="html"><![CDATA[<p>как манул, тот что вы дали - Да читал, почему все в какихто загадка, почему нельзя просто обяснить где и что делается ни так?&nbsp; <img src="https://linuxforum.ru/img/smilies/ah.gif" alt="ah" /></p>]]></content>
			<author>
				<name><![CDATA[sorrrrry]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11511</uri>
			</author>
			<updated>2010-10-04T09:24:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97788#p97788</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97785#p97785" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sorrrrry пишет:</cite><blockquote><p>что не так?</p></blockquote></div><p>учить мат часть&nbsp; <img src="https://linuxforum.ru/img/smilies/ah.gif" alt="ah" /> </p><p>vi /etc/sysconfig/network-scripts/route-eth0 , читали manual?</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2010-10-04T09:13:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97785#p97785</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97781#p97781" />
			<content type="html"><![CDATA[<p>Создал файл<br />/etc/sysconfig/network-scripts/route-eth0<br />прописую в терминале<br />route-eth0 &gt; 192.168.2.0/24 via 192.168.1.23 dev eth0<br /> выдает <br />bash: route-eth0: команда не найдена<br />что не так?</p>]]></content>
			<author>
				<name><![CDATA[sorrrrry]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11511</uri>
			</author>
			<updated>2010-10-04T09:05:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97781#p97781</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97773#p97773" />
			<content type="html"><![CDATA[<p>в route-ethX &gt; 192.168.2.0/24 via 192.168.1.23 dev ethX, работать надо вот по этому <a href="http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html">мануалу</a></p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2010-10-04T08:49:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97773#p97773</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97770#p97770" />
			<content type="html"><![CDATA[<p>пытался прописать так<br />route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.23 eth0 явно указав интерфейс, вылетает ошибка - Сеть не доступна, с чем связано<br />работаю по этому мануалу<br /><a href="http://www.opennet.ru/base/net/ubuntu_route.txt.html">http://www.opennet.ru/base/net/ubuntu_route.txt.html</a></p>]]></content>
			<author>
				<name><![CDATA[sorrrrry]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11511</uri>
			</author>
			<updated>2010-10-04T08:33:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97770#p97770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97766#p97766" />
			<content type="html"><![CDATA[<p>проверить можно с помощью команды ping.</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2010-10-04T08:25:45Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97766#p97766</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97764#p97764" />
			<content type="html"><![CDATA[<p>вот файл я там и создал, мне нужно прописать маршрут rout-eth0, файл создан,прописал так<br />rout add 192.168.2.0 via 192.168.1.23 получилось как надо только в конце таблицы в колонке Iface стоит usb0, а как я понимаю должно стоять eth0, или я не прав?<br />Kernel IP routing table<br />Destination&nbsp; &nbsp; &nbsp;Gateway&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Genmask&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Flags&nbsp; &nbsp;MSS Window&nbsp; irtt Iface<br />192.168.2.0&nbsp; &nbsp; &nbsp;192.168.1.23&nbsp; &nbsp; 255.255.255.0&nbsp; &nbsp;UG&nbsp; &nbsp; &nbsp; &nbsp; 0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />192.168.2.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.1.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />192.168.122.0&nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 virbr0<br />169.254.0.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.0.0&nbsp; &nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />default&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;192.168.1.1&nbsp; &nbsp; &nbsp;0.0.0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UG&nbsp; &nbsp; &nbsp; &nbsp; 0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0</p>]]></content>
			<author>
				<name><![CDATA[sorrrrry]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11511</uri>
			</author>
			<updated>2010-10-04T08:20:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97764#p97764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97762#p97762" />
			<content type="html"><![CDATA[<p>route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.23<br />если в файл то смотрите в сторону /etc/sysconfig/network-script/route-</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2010-10-04T08:15:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97762#p97762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Маршрутизация между usb0 и eth0]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=97755#p97755" />
			<content type="html"><![CDATA[<p>Нужно прописать маршрутизацию, между usb0 и eth0<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />Destination&nbsp; &nbsp; &nbsp;Gateway&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Genmask&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Flags&nbsp; &nbsp;MSS Window&nbsp; irtt Iface<br />192.168.2.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 eth0<br />192.168.1.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />192.168.122.0&nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.255.0&nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 virbr0<br />169.254.0.0&nbsp; &nbsp; &nbsp;*&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;255.255.0.0&nbsp; &nbsp; &nbsp;U&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br />default&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;192.168.1.1&nbsp; &nbsp; &nbsp;0.0.0.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;UG&nbsp; &nbsp; &nbsp; &nbsp; 0 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 usb0<br /></div><br />нужно что б подсеть 192,168,2,0 имела шлюз 192,168,1,23 - это IP usb0, понимаю что нужно создать файл rout-(сетевой интерфейс).создаю все равно таблица не миняется, что ни так делаю.<br />Пробывал так <br />GATEWAY0=192.168.1.23<br />NETMASK0=255.255.255.0<br />ADDRESS0=192.168.2.0</p><p>Пробывал так 192,168,2,0 via 192,168,1,23<br />ниче не миняется</p>]]></content>
			<author>
				<name><![CDATA[sorrrrry]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11511</uri>
			</author>
			<updated>2010-10-04T07:45:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=97755#p97755</id>
		</entry>
</feed>
