LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Internet sharing wireless (http://www.linuxquestions.org/questions/linux-newbie-8/internet-sharing-wireless-364237/)

Fayble 09-17-2005 12:01 PM

Internet sharing wireless
 
Hi all.

I have a fresh Suse 9.3 installation and I'd like to share my internet connection between server (XP Home) and client (Suse 9.3).

I have Intel PRO/Wireless 2200BG in my Suse notebook, rightly installed.

Altough my Suse notebook is able to connect to wireless LAN, internet connection is not up.

I set up IP forwarding in Microsoft XP.


My configuration:

XP:
Wireless connection:
IP: 192.168.0.2
Subnet: 255.255.255.0

SUSE:
Intel PRO/Wireless 2200BG:
IP: 192.168.0.3
Subnet mask: 255.255.255.0

Host name: linux
Domain name: site
X -> Change host name by DHCP
DNS1: 192.168.0.2
Domain: mshome.net

Gateway: 192.168.0.2
X -> IP forwarding


In notebook, I cant' ping the server (192.168.0.2), and no external IP!

What's wrong?

rupak 09-17-2005 12:29 PM

Well I use FreeProxy as proxy server on XP and configure the browsers to use the XP as proxy. You can try the same.

Fayble 09-17-2005 12:31 PM

And this is the output of iwconfig:

eth0 no wireless extensions.
eth1 IEEE 802.111b ESSID:"Wlan" Nickname:"linux"
Mode:Ad-Hoc Frequency:2.462 GHz Cell: 02:0E:35:C2:F5:72
Bit Rate=11 Mb/s Tx-Power=20 dBm
RTS thr:off Fragment thf: off
Encryption key: off
Power management: off
Link Quality=95/100 Signal Level=-31 dBm Noise Level=-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:0 Missed beacon:0
sit0 no wireless extensions.

:scratch:

david_ross 09-17-2005 12:35 PM

What output do you get from:
ifconfig
route -n

rupak 09-17-2005 12:36 PM

Also, what is the IP of your router? Can you ping it?

XP disables ping support by default (internal firewall). You can change it on a per connection basis though. Trying disabling the firewall and see if you can ping.

Fayble 09-17-2005 01:03 PM

Output for ifconfig:

eth0 Link encap:Ethernet HWaddr 00:11:2F:F7:22:BA
inet6 addr: fe80::211:2fff:fef7:22ba/64 Scope:Link
UP BROADCAST NOTRAILERS 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:4

eth1 Link encap:Ethernet HWaddr 00:0E:35:94:F7:D4
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20e:35ff:fe94:f7d4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3165 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:254 (254.0 b) TX bytes:1506 (1.4 Kb)
Interrupt:4 Base address:0x4000 Memory:ff9ee000-ff9eefff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:114 errors:0 dropped:0 overruns:0 frame:0
TX packets:114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7372 (7.1 Kb) TX bytes:7372 (7.1 Kb)

Output for route -n:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.2 0.0.0.0 UG 0 0 0 eth1

:confused:

david_ross 09-17-2005 01:09 PM

Try disabling ipv6 as shown here:
http://portal.suse.de/sdb/en/2003/10...illa_ipv6.html

Then reboot.

Fayble 09-17-2005 01:53 PM

ipv6 disabled, no success.

I'm not using a router, within XP I have an USB Wireless device. All is good when I boot XP on notebook.

Firewall disabled in XP and SUSE. I can't ping 192.168.0.2.

:scratch:

Fayble 09-19-2005 09:25 AM

Another output:

Code:

linux:~ # iwconfig
lo        no wireless extensions.

eth0      IEEE 802.11b  ESSID:"Wlan"  Nickname:"linux"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:0E:35:69:AE:ED
          Bit Rate=1 Mb/s  Tx-Power=20 dBm
          RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=63/100  Signal level=-32 dBm  Noise level=-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

eth1      no wireless extensions.

linux:~ # iwlist eth0 scanning
eth0      Scan completed :
          Cell 01 - Address: 02:0E:35:69:AE:ED
                    ESSID:"Wlan"
                    Protocol:IEEE 802.11b
                    Mode:Ad-Hoc
                    Channel:1
                    Encryption key:off
                    Bit Rate:11 Mb/s
                    Extra: Rates (Mb/s): 1 2 5.5 11
                    Signal level=-33 dBm
                    Extra: Last beacon: 4ms ago

linux:~ # ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
From 192.168.0.3: icmp_seq=2 Destination Host Unreachable
From 192.168.0.3 icmp_seq=2 Destination Host Unreachable
From 192.168.0.3 icmp_seq=3 Destination Host Unreachable
From 192.168.0.3 icmp_seq=4 Destination Host Unreachable

--- 192.168.0.2 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 2999ms
, pipe 3

linux:~ # ping www.google.com
ping: unknown host www.google.com

linux:~ # ping 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
64 bytes from 192.168.0.3: icmp_seq=1 ttl=64 time=0.044 ms
64 bytes from 192.168.0.3: icmp_seq=2 ttl=64 time=0.044 ms
64 bytes from 192.168.0.3: icmp_seq=3 ttl=64 time=0.038 ms
64 bytes from 192.168.0.3: icmp_seq=4 ttl=64 time=0.036 ms

--- 192.168.0.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.036/0.040/0.044/0.007 ms

He can ping only himself.

:scratch: :scratch: :scratch:

david_ross 09-19-2005 12:08 PM

You had eth1 set up with an ip address but that latest iwconfig seems to show the wireless card as eth0.


All times are GMT -5. The time now is 07:49 PM.