<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Case &#187; des-3226s</title>
	<atom:link href="http://case.net.ru/tag/des-3226s/feed/" rel="self" type="application/rss+xml" />
	<link>http://case.net.ru</link>
	<description>Just another technical weblog</description>
	<lastBuildDate>Sun, 29 Jan 2012 08:48:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Работа с VLAN в D-Link</title>
		<link>http://case.net.ru/2009/03/04/vlan/</link>
		<comments>http://case.net.ru/2009/03/04/vlan/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 19:37:12 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[des-3226s]]></category>
		<category><![CDATA[vlan]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=323</guid>
		<description><![CDATA[Создание vlan: create vlan &#60;vlan_name 32&#62; tag &#60;vlanid 1-4094&#62; &#91;advertisement&#93; Удаление vlan: delete vlan &#60;vlan_name 32&#62; Добавление портов в vlan: config vlan &#60;vlan_name 32&#62; add &#91;tagged&#124;untagged&#93; &#60;portlist&#62; Удаление портов из vlan: config vlan &#60;vlan_name 32&#62; delete &#60;portlist&#62; Просмотр vlan: show vlan Прием на порту только тегированных пакетов: config gvrp &#60;portlist&#62; acceptable_frame tagged_only]]></description>
			<content:encoded><![CDATA[<p>Создание vlan:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">create vlan <span style="color: #000000; font-weight: bold;">&lt;</span>vlan_name <span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">&gt;</span> tag <span style="color: #000000; font-weight: bold;">&lt;</span>vlanid <span style="color: #000000;">1</span>-<span style="color: #000000;">4094</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>advertisement<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Удаление vlan:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">delete vlan <span style="color: #000000; font-weight: bold;">&lt;</span>vlan_name <span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Добавление портов в vlan:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">config vlan <span style="color: #000000; font-weight: bold;">&lt;</span>vlan_name <span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">&gt;</span> add <span style="color: #7a0874; font-weight: bold;">&#91;</span>tagged<span style="color: #000000; font-weight: bold;">|</span>untagged<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&lt;</span>portlist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Удаление портов из vlan:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">config vlan <span style="color: #000000; font-weight: bold;">&lt;</span>vlan_name <span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">&gt;</span> delete <span style="color: #000000; font-weight: bold;">&lt;</span>portlist<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Просмотр vlan:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">show vlan</pre></div></div>

<p>Прием на порту только тегированных пакетов:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">config gvrp <span style="color: #000000; font-weight: bold;">&lt;</span>portlist<span style="color: #000000; font-weight: bold;">&gt;</span> acceptable_frame tagged_only</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/03/04/vlan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Пример SNMP управления коммутатором</title>
		<link>http://case.net.ru/2009/01/23/snmp/</link>
		<comments>http://case.net.ru/2009/01/23/snmp/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 16:35:06 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[des-3226s]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[xbox 360]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=138</guid>
		<description><![CDATA[Переключения порта xbox&#8217;а (что бы в live не ломился): 1 2 3 4 5 6 7 8 9 10 #!/bin/sh &#160; if &#91; &#34;`snmpget -v 1 -c public des IF-MIB::ifAdminStatus.12 &#124; grep up`&#34; &#93; then echo &#34;disabling port 12..&#34; snmpset -v 1 -c private des IF-MIB::ifAdminStatus.12 i 2 &#62; /dev/null else echo &#34;enabling port 12..&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Переключения порта xbox&#8217;а (что бы в live не ломился):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #780078;">`snmpget -v 1 -c public des IF-MIB::ifAdminStatus.12 | grep up`</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;disabling port 12..&quot;</span>
        snmpset <span style="color: #660033;">-v</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-c</span> private des IF-MIB::ifAdminStatus.12 i <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #000000; font-weight: bold;">else</span>
        <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;enabling port 12..&quot;</span>
        snmpset <span style="color: #660033;">-v</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-c</span> private des IF-MIB::ifAdminStatus.12 i <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/01/23/snmp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Настраиваем port security</title>
		<link>http://case.net.ru/2009/01/12/port-security/</link>
		<comments>http://case.net.ru/2009/01/12/port-security/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 05:47:43 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[d-link]]></category>
		<category><![CDATA[des-3226s]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=38</guid>
		<description><![CDATA[Разрешить доступ на 2-м порту коммутатора только для определенного mac-адреса. DES-3226S:4#config ports 2 learning disable DES-3226S:4#create fdb default 00-12-58-A8-AA-46 port 2 DES-3226S:4#config port_security ports 2 max_learning_addr 0 DES-3226S:4#config port_security ports 2 lock_address_mode Permanent DES-3226S:4#config port_security ports 2 admin_state enable]]></description>
			<content:encoded><![CDATA[<p>Разрешить доступ на 2-м порту коммутатора только для определенного mac-адреса.</p>
<blockquote><p><code>DES-3226S:4#config ports 2 learning disable<br />
DES-3226S:4#create fdb default 00-12-58-A8-AA-46 port 2<br />
DES-3226S:4#config port_security ports 2 max_learning_addr 0<br />
DES-3226S:4#config port_security ports 2 lock_address_mode Permanent<br />
DES-3226S:4#config port_security ports 2 admin_state enable</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/01/12/port-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Настраиваем LACP (802.3 ad)</title>
		<link>http://case.net.ru/2009/01/12/lacp/</link>
		<comments>http://case.net.ru/2009/01/12/lacp/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 05:40:34 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[d-link]]></category>
		<category><![CDATA[des-3226s]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[lacp]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=26</guid>
		<description><![CDATA[Собственно, объединение каналов. Со стороный FreeBSD rc.conf выглядит так: cloned_interfaces="lagg0" ifconfig_fxp0="up" ifconfig_fxp1="up" ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 172.16.127.1 netmask 255.255.255.0" Со стороны DES-3226S: DES-3226S:4#config lacp_port 19-20 mode active DES-3226S:4#create link_aggregation group_id 1 type lacp DES-3226S:4#config link_aggregation group_id 1 master_port 19 ports 19-20 state enable ifconfig lagg0: lagg0: flags=8843 mtu 1500 options=8 inet 172.16.127.1 netmask [...]]]></description>
			<content:encoded><![CDATA[<p>Собственно, объединение каналов.</p>
<p>Со стороный FreeBSD rc.conf выглядит так:</p>
<blockquote><p><code>cloned_interfaces="lagg0"<br />
ifconfig_fxp0="up"<br />
ifconfig_fxp1="up"<br />
ifconfig_lagg0="laggproto lacp laggport fxp0 laggport fxp1 172.16.127.1 netmask 255.255.255.0"</code></p></blockquote>
<p>Со стороны DES-3226S:</p>
<blockquote><p><code>DES-3226S:4#config lacp_port 19-20 mode active<br />
DES-3226S:4#create link_aggregation group_id 1 type lacp<br />
DES-3226S:4#config link_aggregation group_id 1 master_port 19 ports 19-20 state enable</code></p></blockquote>
<p>ifconfig lagg0:</p>
<blockquote><p><code>lagg0: flags=8843 mtu 1500<br />
options=8<br />
inet 172.16.127.1 netmask 0xffffff00 broadcast 172.16.127.255<br />
ether 00:02:b3:5c:21:60<br />
media: Ethernet autoselect<br />
status: active<br />
laggproto lacp<br />
laggport: fxp1 flags=1c<br />
laggport: fxp0 flags=1c</code></p></blockquote>
<p>Сервер с коммутатором в процессе работы обмениваются пакетами о состоянии каналов. Fail tolerance and load balancing.</p>
]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2009/01/12/lacp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DES-3226S Fast Ethernet Switch</title>
		<link>http://case.net.ru/2008/12/22/des/</link>
		<comments>http://case.net.ru/2008/12/22/des/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 16:58:37 +0000</pubDate>
		<dc:creator>Case</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[d-link]]></category>
		<category><![CDATA[des-3226s]]></category>

		<guid isPermaLink="false">http://case.net.ru/?p=56</guid>
		<description><![CDATA[Добыл сей девайс. Первая новость &#8211; существуют как минимум два разных типа кабеля COM RS232. Один для старых девайсов, другой для новых. Сохранение конфигурации на tftp-сервере: DES-3226S:4#upload configuration 172.16.127.1 dlink.cfg Просмотр информации о свиче: DES-3226S:4#show switch]]></description>
			<content:encoded><![CDATA[<p><img src="http://case.net.ru/wp-content/uploads/2009/01/des.jpg" alt="des" title="des" width="250" height="76" class="alignright size-full wp-image-83" /> Добыл сей девайс. Первая новость &#8211; существуют как минимум два разных типа кабеля COM <-> RS232. Один для старых девайсов, другой для новых.</p>
<p>Сохранение конфигурации на tftp-сервере:</p>

<div class="wp_syntax"><div class="code"><pre class="cli" style="font-family:monospace;">DES-3226S:4#upload configuration 172.16.127.1 dlink.cfg</pre></div></div>

<p>Просмотр информации о свиче:</p>

<div class="wp_syntax"><div class="code"><pre class="cli" style="font-family:monospace;">DES-3226S:4#show switch</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://case.net.ru/2008/12/22/des/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
