<?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>JugglerShu.Net &#187; IP</title>
	<atom:link href="http://programming.jugglershu.net/wp/?cat=40&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://programming.jugglershu.net/wp</link>
	<description>Nothing But Programming</description>
	<lastBuildDate>Wed, 15 Apr 2020 08:11:15 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>NICに二つのIPAアドレスを持たせる</title>
		<link>http://programming.jugglershu.net/wp/?p=632</link>
		<comments>http://programming.jugglershu.net/wp/?p=632#comments</comments>
		<pubDate>Thu, 26 Feb 2009 16:07:00 +0000</pubDate>
		<dc:creator><![CDATA[shu]]></dc:creator>
				<category><![CDATA[Alias]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://programming.jugglershu.net/wp/?p=632</guid>
		<description><![CDATA[Linuxで一つのNICに二つのIPアドレスを振りたいときIP Aliasというのが使える。今192.168.1.10というアドレスがeth0に割り当てられているとして/etc/sysconfig/network-scripts/のifcfg-eth0をifcfg-eth0:1という名前でコピーする。そして、ifcfg-eth0:1というファイルの以下の該当部分をこんな風に変える。DEVICE=e <a class="more-link" href="http://programming.jugglershu.net/wp/?p=632">続きを読む <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Linuxで一つのNICに二つのIPアドレスを振りたいときIP Aliasというのが使える。<br />今192.168.1.10というアドレスがeth0に割り当てられているとして<br />/etc/sysconfig/network-scripts/のifcfg-eth0をifcfg-eth0:1という名前でコピーする。<br />そして、ifcfg-eth0:1というファイルの以下の該当部分をこんな風に変える。<br />DEVICE=eth0:1             # デバイス<br />IPADDR=192.168.1.11      # IPアドレス</p>
<p>これで、eth0:1というデバイスができて、それが192.168.1.11に割り当てられる。<br />あとは<br />ifdown eth0<br />ifup eth0<br />(再起動)<br />をするだけ。</p>
<p>Apacheのバーチャルホストとかやる場合にも使える。<br />僕はよく自分のテスト環境で利用している。</p>
]]></content:encoded>
			<wfw:commentRss>http://programming.jugglershu.net/wp/?feed=rss2&#038;p=632</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
