Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a cross-over ethernet cable to connect a Desktop Windows 7 box, and a laptop running on SUSE 11.2. I want Windows to connect to the internet via the laptop's wireless interface.

Windows 7 (eth only)
(eth) IP: 192.168.2.101/24
GW: 192.168.2.1
DNS: 8.8.8.8

SUSE
eth0 IP: 192.168.2.1/24
wlan0 IP: 192.168.1.103/24
GW: 192.168.1.1
DNS: 8.8.8.8
net.ipv4.ip_forward=1

Wireless Router
IP: 192.168.1.1

#
# SUSE ROUTES
192.168.2.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0

#
# WINDOWS ROUTES
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.2.1    192.168.2.101    276
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.2.0    255.255.255.0         On-link     192.168.2.101    276
    192.168.2.101  255.255.255.255         On-link     192.168.2.101    276
    192.168.2.255  255.255.255.255         On-link     192.168.2.101    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link     192.168.2.101    276
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link     192.168.2.101    276

Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0      192.168.2.1  Default
share|improve this question
    
Any firewall running? – bryan Aug 7 '10 at 2:49
    
can you provide the routing table of windows computer too? – bryan Aug 7 '10 at 2:51
    
All FW disabled, on all machines. – Felipe Alvarez Aug 7 '10 at 3:14
    
can you run cat /proc/sys/net/ipv4/ip_forward and post the result? – bryan Aug 7 '10 at 3:56
    
cat /proc/sys/net/ipv4/ip_forward returns '1' – Felipe Alvarez Aug 7 '10 at 5:37
up vote 0 down vote accepted

I had to add a static route to my wireless router BACK to the 192.168.2.0/24 network via 192.168.1.103 (laptop). Now windows can browse web via lappy!

SOLVED

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .