Hi, I have problem of internet sharing. I like to use USB host to host
connection for sharing the internet, because I have problem of adding 2
LAN card in my computer. (Can't connection to ISP via rp-pppoe if 2 LAN
card installed.)

According to the guide: http://linux-usb.sourceforge.net/usbnet/. I can
successfully get the device working:

usb0      Link encap:Ethernet  HWaddr 18:2E:0C:2A:62:A0
          inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

and in message log, I get the following line:
Nov 14 09:31:08 desktop kernel: usb0: register usbnet 001/002, Genesys
GeneLink

So the Linux hardware part should work fine, then I add the following
lines in my firwall script:

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -s 10.0.0.0/8 -j MASQUERADE

The server part should work, right? Then I plug to LAN to my WinXP
notebook, it prompt me for driver, after install the driver, it should
network disconnected. Anyone know why?
-- 
              \\\|///
             \\- - -//
             (  @ @  )
-----------oOOo-(_)-oOOo------------------------------------------------
Visit my homepage at http://www.carfield.com.hk

Programming discussion groups
Software design: news://news.carfield.com.hk/programming.design
Design Pattern: news://news.carfield.com.hk/programming.design.pattern
java: news://news.carfield.com.hk/programming.java
linux: news://news.carfield.com.hk/programming.linux
------------------------------------------------------------------------



-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to