个人工具

“UbuntuHelp:EthernetOverFirewire”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/EthernetOverFirewire}}
 
{{From|https://help.ubuntu.com/community/EthernetOverFirewire}}
 
{{Languages|UbuntuHelp:EthernetOverFirewire}}
 
{{Languages|UbuntuHelp:EthernetOverFirewire}}
=== How to use Ethernet over Firewire ===
+
<<Include(Tag/NeedsExpansion)>>
In the file <code><nowiki>/etc/modprobe.d/blacklist</nowiki></code> there are the lines<pre><nowiki>
+
=== How to use Ethernet over FireWire (IPv4 over FireWire) ===
# causes no end of confusion by creating unexpected network interfaces
+
The Ubuntu kernel package already contains the necessary driver modules for IPv4 networking over ![[UbuntuHelp:FireWire|FireWire]]. You need the ''ohci1394'' driver for the ![[UbuntuHelp:FireWire|FireWire]] controller, and the ''eth1394'' driver to run the IPv4 protocol over ![[UbuntuHelp:FireWire|FireWire]].  Although the driver is called ''eth1394'', it does not actually implement Ethernet over ![[UbuntuHelp:FireWire|FireWire]] but just IPv4 over ![[UbuntuHelp:FireWire|FireWire]].  However, the networking interface is managed the same way as IPv4 networking over Ethernet.
blacklist eth1394
+
If you compile your own kernel instead of using Ubuntu's default kernel, include the following (statically linked into the kernel, or built as loadable modules):
</nowiki></pre>
+
Simply add a '#' to comment out the second line
+
'''Note: this is a work in progress'''.
+
* You need to compile a kernel including the following (NOT as modules):
+
 
* ieee1394
 
* ieee1394
 
* ohci1394
 
* ohci1394
 
* eth1394
 
* eth1394
* Restart your computer
+
Restart your computer, or run <code><nowiki>sudo modprobe ohci1394</nowiki></code>.
* Your firewire ethernet connection should be listed under System-> Administration-> Networking, or you can use <code><nowiki>ifconfig -a</nowiki></code> to list your network devices.
+
Regardless whether default or custom kernel, run
Alternative to try
+
<pre><nowiki>
* Do<pre><nowiki>
+
sudo modprobe raw1394
+
sudo modprobe ohci1394
+
sudo modprobe ieee1394
+
 
sudo modprobe eth1394
 
sudo modprobe eth1394
 
</nowiki></pre>
 
</nowiki></pre>
* Your firewire ethernet connection should be listed under System-> Administration-> Networking, or you can use <code><nowiki>ifconfig -a</nowiki></code> to list your network devices.
+
to activate the protocol driver.  Your ![[UbuntuHelp:FireWire|FireWire]] networking connection should be listed under System-> Administration-> Networking, or you can use <code><nowiki>ifconfig -a</nowiki></code> to list your network devices.
 
You might need <code><nowiki>ifconfig eth1 up</nowiki></code> (or <code><nowiki>eth2</nowiki></code>, or another number), before you see the interface with ifconfig.
 
You might need <code><nowiki>ifconfig eth1 up</nowiki></code> (or <code><nowiki>eth2</nowiki></code>, or another number), before you see the interface with ifconfig.
Using a firewire cable and the above commands, you can have a network between two PCs having both a firewire port.
+
Using a firewire cable and the above commands, you can have a network between two PCs having both a ![[UbuntuHelp:FireWire|FireWire]] port.
 +
=== Automatic loading of eth1394 ===
 +
In the file <code><nowiki>/etc/modprobe.d/blacklist</nowiki></code> there are the lines<pre><nowiki>
 +
# causes no end of confusion by creating unexpected network interfaces
 +
blacklist eth1394
 +
</nowiki></pre>
 +
If you want that the eth1394 kernel module is automatically loaded when another IP-over-1394 capable computer (Windows XP or Mac OS X, or a Linux computer on which eth1394 is already loaded) is plugged in into the Linux computer's ![[UbuntuHelp:FireWire|FireWire]] port, simply add a '#' to comment out the second line.
 +
''Fixme: How to configure eth1394 to be loaded already at each boot?''
 
=== External Links ===
 
=== External Links ===
*[http://en.wikipedia.org/wiki/Ethernet over USB Ethernet over USB] - Wikipedia page on connecting Ethernet devices via USB, and USB as an Ethernet network.
+
* [http://en.wikipedia.org/wiki/IEEE1394#Networking_over_FireWire Networking over FireWire] - Wikipedia page on IEEE 1394
----
+
* [http://ieee1394.wiki.kernel.org/ Linux FireWire wiki]
[[category:CategoryCleanup]] [[category:CategoryNetworking]]
+
* [http://en.wikipedia.org/wiki/Ethernet over USB Ethernet over USB] - Wikipedia page on connecting Ethernet devices via USB, and USB as an Ethernet network.
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年11月17日 (二) 19:04的最新版本

<<Include(Tag/NeedsExpansion)>>

How to use Ethernet over FireWire (IPv4 over FireWire)

The Ubuntu kernel package already contains the necessary driver modules for IPv4 networking over !FireWire. You need the ohci1394 driver for the !FireWire controller, and the eth1394 driver to run the IPv4 protocol over !FireWire. Although the driver is called eth1394, it does not actually implement Ethernet over !FireWire but just IPv4 over !FireWire. However, the networking interface is managed the same way as IPv4 networking over Ethernet. If you compile your own kernel instead of using Ubuntu's default kernel, include the following (statically linked into the kernel, or built as loadable modules):

  • ieee1394
  • ohci1394
  • eth1394

Restart your computer, or run sudo modprobe ohci1394. Regardless whether default or custom kernel, run

sudo modprobe eth1394

to activate the protocol driver. Your !FireWire networking connection should be listed under System-> Administration-> Networking, or you can use ifconfig -a to list your network devices. You might need ifconfig eth1 up (or eth2, or another number), before you see the interface with ifconfig. Using a firewire cable and the above commands, you can have a network between two PCs having both a !FireWire port.

Automatic loading of eth1394

In the file /etc/modprobe.d/blacklist there are the lines
# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

If you want that the eth1394 kernel module is automatically loaded when another IP-over-1394 capable computer (Windows XP or Mac OS X, or a Linux computer on which eth1394 is already loaded) is plugged in into the Linux computer's !FireWire port, simply add a '#' to comment out the second line. Fixme: How to configure eth1394 to be loaded already at each boot?

External Links