<?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>mihai.ibanescu.net &#187; Networking</title>
	<atom:link href="http://mihai.ibanescu.net/category/linux/applications/networking/feed" rel="self" type="application/rss+xml" />
	<link>http://mihai.ibanescu.net</link>
	<description>Mihai&#039;s few cents</description>
	<lastBuildDate>Mon, 12 Jul 2010 04:45:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NetworkManager and virtual interfaces, again.</title>
		<link>http://mihai.ibanescu.net/networkmanager-and-virtual-interfaces-again</link>
		<comments>http://mihai.ibanescu.net/networkmanager-and-virtual-interfaces-again#comments</comments>
		<pubDate>Tue, 27 Feb 2007 03:16:02 +0000</pubDate>
		<dc:creator>misa</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://mihai.ibanescu.net/?p=21</guid>
		<description><![CDATA[Zeus has a point in his comment, I should blog more often.
Here&#8217;s the first: NetworkManager again. I noticed that it doesn&#8217;t bring my interface alias up anymore. Must have happened after some upgrade. I am not sure.
As I was trying to figure out what&#8217;s going on, I opened the network management interface and looked at [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeusville.wordpress.com/">Zeus</a> has a point in <a href="http://mihai.ibanescu.net/?p=20">his comment</a>, I should blog more often.</p>
<p>Here&#8217;s the first: NetworkManager again. I noticed that it doesn&#8217;t bring my interface alias up anymore. Must have happened after some upgrade. I am not sure.</p>
<p>As I was trying to figure out what&#8217;s going on, I opened the network management interface and looked at various things &#8211; and it started to work after that.  Kind of frightening.</p>
<p>Even more frightening is looking at <code>/etc/sysconfig/network-scripts/ifup-aliases</code>. Looks like there are people who need such a large number of network interfaces, that they needed to assign them in ranges, hence the <code>ifcfg-$DEV-range*</code> files.</p>
<p>OK, this is not that exciting of a post. I&#8217;ll do better next time.</p>
]]></content:encoded>
			<wfw:commentRss>http://mihai.ibanescu.net/networkmanager-and-virtual-interfaces-again/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NetworkManager and virtual interfaces</title>
		<link>http://mihai.ibanescu.net/networkmanager-and-virtual-interfaces</link>
		<comments>http://mihai.ibanescu.net/networkmanager-and-virtual-interfaces#comments</comments>
		<pubDate>Sat, 16 Dec 2006 19:08:40 +0000</pubDate>
		<dc:creator>misa</dc:creator>
				<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://mihai.ibanescu.net/?p=18</guid>
		<description><![CDATA[My wireless router is an old Linksys BEFW11S4 (801b). I wouldn&#8217;t ask for more in terms of speed, when I&#8217;m working from the laptop the bottleneck is the upstream Internet provider (cable), and if I have to transfer massive amounts of data between the laptop and the home computer, I can connect directly into the [...]]]></description>
			<content:encoded><![CDATA[<p>My wireless router is an old Linksys BEFW11S4 (801b). I wouldn&#8217;t ask for more in terms of speed, when I&#8217;m working from the laptop the bottleneck is the upstream Internet provider (cable), and if I have to transfer massive amounts of data between the laptop and the home computer, I can connect directly into the router with a wire and get 100Mbit.</p>
<p>But there is something my router doesn&#8217;t have: static DHCP assignment of addresses. I hate it when I&#8217;m on the laptop and I don&#8217;t know the IP address of the home computer. I could configure the IP address on the home computer statically, but since I also have to use OpenVPN I&#8217;d have to set up <tt>dnsmasq</tt> so I can get the proper DNS server when connecting to the VPN. Or I could use <tt>NetworkManager</tt> which would take care of switching the name servers for me.<br />
One solution I found was to have the eth0 interface on the home computer be assigned by the router via DCHP, and have a virtual interface (alias) <tt>eth0:0</tt> configured with a static address that I can ssh into.</p>
<p>OK, so I&#8217;ve set up the alias in <tt>/etc/sysconfig/network-scripts/ifcfg-eth0:0</tt> (I&#8217;m not a GUI guy when it comes to configuring the networking, I prefer to go directly on the filesystem and write the file myself &#8211; nevertheless, using <tt>system-config-network</tt> would do the same thing for you).</p>
<p>Except that <tt>NetworkManager</tt> will not bring the interface alias up. It will bring the main interface up, but not the alias.<br />
After digging a bit, it turns out <tt>NetworkManagerDispatcher</tt> is at fault, and this is the solution I found:</p>
<ul>
<li><tt>mkdir -p /etc/NetworkManager/dispatcher.d</tt> (on a newly installed system it was not created by default)</li>
<li>Add this <tt>eth-subinterfaces</tt> file to <tt>/etc/NetworkManager/dispatcher.d</tt>:</li>
</ul>
<pre>#!/bin/bash

iface="$1"
shift

action="$1"
shift

if [ "$iface" = "eth0" -a "$action" = "up" ]; then
/sbin/ifup eth0:0
fi</pre>
<ul>
<li>Make sure you <tt>chmod 0755 /etc/NetworkManager/dispatcher.d/eth-subinterfaces</tt></li>
<li>You may or may not have to restart <tt>NetworkManagerDispatcher</tt> (I think it just worked for me):</li>
<ul>
<li><tt>/sbin/service NetworkManagerDispatcher restart</tt></li>
</ul>
<li>Click on the <tt>NetworkManager</tt> icon, disable networking and re-enable it.</li>
</ul>
<p>At this point, <tt>ifconfig</tt> should show the interface alias.</p>
]]></content:encoded>
			<wfw:commentRss>http://mihai.ibanescu.net/networkmanager-and-virtual-interfaces/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>&#8230; And the week after the week of vacation</title>
		<link>http://mihai.ibanescu.net/and-the-week-after-the-week-of-vacation</link>
		<comments>http://mihai.ibanescu.net/and-the-week-after-the-week-of-vacation#comments</comments>
		<pubDate>Sat, 21 Oct 2006 03:52:12 +0000</pubDate>
		<dc:creator>misa</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Companies]]></category>
		<category><![CDATA[Distributions]]></category>
		<category><![CDATA[Fedora Linux]]></category>
		<category><![CDATA[Foresight Linux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music Players]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Orienteering]]></category>
		<category><![CDATA[Sports]]></category>
		<category><![CDATA[rPath]]></category>

		<guid isPermaLink="false">http://mihai.ibanescu.net/?p=6</guid>
		<description><![CDATA[First week at the new company (rPath). Not a lot of comments, other than I am trying to learn as fast as I can.
I&#8217;ve started by installing rPath Linux on the laptop, and just finished reinstalling it with Foresight Linux, mostly because I was looking for more recent versions of NetworkManager, XChat and a working [...]]]></description>
			<content:encoded><![CDATA[<p>First week at <a href="http://www.rpath.com">the new company (rPath)</a>. Not a lot of comments, other than I am trying to learn as fast as I can.</p>
<p>I&#8217;ve started by installing <a href="http://www.rpath.com/corp/products-rpath-linux.html">rPath Linux</a> on the laptop, and just finished reinstalling it with <a href="http://foresightlinux.org">Foresight Linux</a>, mostly because I was looking for more recent versions of <a href="http://www.gnome.org/projects/NetworkManager">NetworkManager</a>, <a href="http://www.xchat.org">XChat</a> and a working suspend-to-RAM. Plus, Foresight has a lot more desktop goodies.<br />
After using Foresight for about half an hour, I can say I got 33% of what I wanted. XChat has been replaced with <a href="http://xchat-gnome.navi.cx">xchat-gnome</a>, and suspend didn&#8217;t work in different ways (no kernel support &#8211; easily fixed by running the rPath Linux kernel). Another thing is the music player: Foresight comes with <a href="http://www.banshee-project.org">Banshee</a> whereas <a href="http://fedora.redhat.com">Fedora Core 5</a> comes with <a href="http://www.gnome.org/projects/rhythmbox">Rhythmbox</a>. Apparently I will have to look at <a href="http://amarok.kde.org">Amarok</a> too.</p>
<p>I did spend some of my time with paperwork, inherrent to getting a new job (new health insurance plan etc.).</p>
<p>Hopefully I will not be subject to the viruses that are affecting some of my friends (no, not computer viruses, I&#8217;m talking about cold/flu), and the weather on Sunday will hold for the <a href="http://backwoodsok.org">orienteering event</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mihai.ibanescu.net/and-the-week-after-the-week-of-vacation/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
