USB Networking with openSUSE

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: = YaST in openSUSE 10.2 = == Set up USB interface == First, you must specify the characteristics of the USB connection as a network device. This can be done through YaST. Choose: <code>...)
 
Line 5: Line 5:
 
First, you must specify the characteristics of the USB connection as a network device. This can be done through YaST. Choose:
 
First, you must specify the characteristics of the USB connection as a network device. This can be done through YaST. Choose:
  
<code> YaST -> Network Devices -> Network Card </code>
+
YaST -> Network Devices -> Network Card
  
 
The network configuration utility will ask you to choose between a setup based on the Network Manager app, or by using ifup. These instructions were written with the latter chosen, though it may very well work using the Network Manager. In the next menu, you will see a list of network devices. If YaST recognizes the connected Freerunner, there will be one device with a name like "RNDIS ethernet gadget". You may select "Edit" to configure this device, or, if it is not present, "Add" it and continue.
 
The network configuration utility will ask you to choose between a setup based on the Network Manager app, or by using ifup. These instructions were written with the latter chosen, though it may very well work using the Network Manager. In the next menu, you will see a list of network devices. If YaST recognizes the connected Freerunner, there will be one device with a name like "RNDIS ethernet gadget". You may select "Edit" to configure this device, or, if it is not present, "Add" it and continue.
Line 11: Line 11:
 
In the "Edit" dialog, under the "address" tab, choose "Static Address Setup" and set:
 
In the "Edit" dialog, under the "address" tab, choose "Static Address Setup" and set:
  
<code> IP Address = 192.168.0.200 </code>
+
IP Address = 192.168.0.200
  
 
and
 
and
  
<code> Subnet Mask = 255.255.255.0 </code>
+
Subnet Mask = 255.255.255.0
  
 
<b>Note:</b> If your network setup has the IP range 192.168.0.x already in use, there will be connectivity problems. Next, under the "General" tab for this device, set:
 
<b>Note:</b> If your network setup has the IP range 192.168.0.x already in use, there will be connectivity problems. Next, under the "General" tab for this device, set:
  
<code> Firewall Zone -> Internal Zone (Unprotected) </code>
+
Firewall Zone -> Internal Zone (Unprotected)
  
 
This will allow for the configuration of the firewall, which comes later. Click "Next" to finish configuring this device. (Your primary network  device, usually eth0, may be set to use DHCP for addressing, but must have its firewall zone set to "External Zone".) Choose "Finish" in the Configuration Overview to complete the setup and restart networking.
 
This will allow for the configuration of the firewall, which comes later. Click "Next" to finish configuring this device. (Your primary network  device, usually eth0, may be set to use DHCP for addressing, but must have its firewall zone set to "External Zone".) Choose "Finish" in the Configuration Overview to complete the setup and restart networking.
Line 26: Line 26:
 
== Enable IP Forwarding ==
 
== Enable IP Forwarding ==
  
 +
To use your host PC as a router for the Freerunner, you must implement IP forwarding. This is also done in YaST:
 +
 +
YaST -> Network Services -> Routing
 +
 +
At the bottom of the dialog, enable "IP Forwarding"; no default gateway is necessary. Choose "Finish" to end routing configuration.
  
 
== Configure Firewall ==
 
== Configure Firewall ==
 +
 +
  
 
== Configure NAT ==
 
== Configure NAT ==

Revision as of 06:02, 22 July 2008

Contents

YaST in openSUSE 10.2

Set up USB interface

First, you must specify the characteristics of the USB connection as a network device. This can be done through YaST. Choose:

YaST -> Network Devices -> Network Card

The network configuration utility will ask you to choose between a setup based on the Network Manager app, or by using ifup. These instructions were written with the latter chosen, though it may very well work using the Network Manager. In the next menu, you will see a list of network devices. If YaST recognizes the connected Freerunner, there will be one device with a name like "RNDIS ethernet gadget". You may select "Edit" to configure this device, or, if it is not present, "Add" it and continue.

In the "Edit" dialog, under the "address" tab, choose "Static Address Setup" and set:

IP Address = 192.168.0.200

and

Subnet Mask = 255.255.255.0

Note: If your network setup has the IP range 192.168.0.x already in use, there will be connectivity problems. Next, under the "General" tab for this device, set:

Firewall Zone -> Internal Zone (Unprotected)

This will allow for the configuration of the firewall, which comes later. Click "Next" to finish configuring this device. (Your primary network device, usually eth0, may be set to use DHCP for addressing, but must have its firewall zone set to "External Zone".) Choose "Finish" in the Configuration Overview to complete the setup and restart networking.


Enable IP Forwarding

To use your host PC as a router for the Freerunner, you must implement IP forwarding. This is also done in YaST:

YaST -> Network Services -> Routing

At the bottom of the dialog, enable "IP Forwarding"; no default gateway is necessary. Choose "Finish" to end routing configuration.

Configure Firewall

Configure NAT

Personal tools

YaST in openSUSE 10.2

Set up USB interface

First, you must specify the characteristics of the USB connection as a network device. This can be done through YaST. Choose:

YaST -> Network Devices -> Network Card

The network configuration utility will ask you to choose between a setup based on the Network Manager app, or by using ifup. These instructions were written with the latter chosen, though it may very well work using the Network Manager. In the next menu, you will see a list of network devices. If YaST recognizes the connected Freerunner, there will be one device with a name like "RNDIS ethernet gadget". You may select "Edit" to configure this device, or, if it is not present, "Add" it and continue.

In the "Edit" dialog, under the "address" tab, choose "Static Address Setup" and set:

IP Address = 192.168.0.200

and

Subnet Mask = 255.255.255.0

Note: If your network setup has the IP range 192.168.0.x already in use, there will be connectivity problems. Next, under the "General" tab for this device, set:

Firewall Zone -> Internal Zone (Unprotected)

This will allow for the configuration of the firewall, which comes later. Click "Next" to finish configuring this device. (Your primary network device, usually eth0, may be set to use DHCP for addressing, but must have its firewall zone set to "External Zone".) Choose "Finish" in the Configuration Overview to complete the setup and restart networking.


Enable IP Forwarding

Configure Firewall

Configure NAT