Setting up a network with win7 laptop to opensuse desktop

I need some assistance with this.

When I 1st did this I bought a crossover cable and wireless adapter for use to network my laptop to the desktop.

laptop runs win7 and desktop runs opensuse 12.1
crossover cable is connected from laptop to desktop
and wireless adapter is also on desktop.

Currently I get internet through the wireless on laptop.

I originally just turned on ICS (internet connection sharing) in win7 and it seemed to work fine to get internet on both machines when crossover cable was connected.

I recently at work changed a setting on my laptop wireless and when I brought the system home and connected it and the desktop when opening firefox or opera just hangs

I tried setting up static IP’s and I get nothing
I tried bridging connections and that didn’t work
I tried setting wireless on adapter on desktop to connect wireless and that doesn’t work.

So I guess my question is what can I do to get internet back on the desktop?

the only other things I can think of is.

  1. Wipe both systems in about may/june because of planned backup
  2. wipe the desktop and upgrade to 12.2 but I have never been able to get 12.2 to work off of USB and my desktop does not have a DVDrom

if anyone has any thoughts would appreciate it.

this question is more about how to configure ICS on windows 7. openSUSE desktop should remain with net. interface set as DHCP client and then all depends on Windows ability to share the internet and physical connection.

I didn’t try to configure ICS on Windows 7 but there is an article: Using ICS (Internet Connection Sharing)
and first thing check if you get an IP address on openSUSE desktop - ifconfig command, if not check again ICS configuration and cable connection.

about getting openSUSE intsallation on USB flash:
https://en.opensuse.org/SDB:Live_USB_stick#Windows_Instructions

yea I did setup ICS on it.

hmmm on windows machine

wireless gets the 192.168.1.2

ethernet gets 169.254.66.247

I ran that troubleshooter thing and it kept saying ethernet wouldn’t valid LAN ip configuration.

only other thing I can think of right now is upgrade driver on network card which I don’t think I’ve done yet.

i ran ifconfig on opensuse

and got 192.168.1.255 on the ethernet

is there a ping command?

everything is DHCP at this point and opensuse just hangs and says it can’t find the server in firefox

try to reconfigure ICS (disable and enable back), here is an example Windows 7 Internet Connection Sharing (ICS) - YouTube.
After valid configuration you should get an valid ip on ethernet interface.

show the result of following commands on opensuse:


ifconfig
route -n
cat /etc/sysconfig/network/ifcfg-eth0

kysg@linux-br94:~> su
Password:
linux-br94:/home/kysg # ifconfig
eth0 Link encap:Ethernet HWaddr D4:3D:7E:32:33:6C
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::d63d:7eff:fe32:336c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2695 errors:0 dropped:0 overruns:0 frame:0
TX packets:2737 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:264602 (258.4 Kb) TX bytes:160977 (157.2 Kb)
Interrupt:43 Base address:0x4000

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:1597 errors:0 dropped:0 overruns:0 frame:0
TX packets:1597 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:148021 (144.5 Kb) TX bytes:148021 (144.5 Kb)

wlan0 Link encap:Ethernet HWaddr 10:6F:3F:C7:EF:C3
inet6 addr: fe80::126f:3fff:fec7:efc3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:2690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:934182 (912.2 Kb)

linux-br94:/home/kysg # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
linux-br94:/home/kysg # cat /etc/sysconfig/network/ifcfg-eth0
BOOTPROTO=‘dhcp’
BROADCAST=’’
ETHTOOL_OPTIONS=’’
IPADDR=’’
MTU=’’
NAME=‘RTL8111/8168B PCI Express Gigabit Ethernet controller’
NETMASK=’’
NETWORK=’’
REMOTE_IPADDR=’’
STARTMODE=‘auto’
USERCONTROL=‘no’

in my opinion, it seems that the problem is linked to the same subnet wireless and used by ICS DHCP on Win 7. try to use different subnet for ICS as described here: How to Change the IP Range for the Internet Connection Sharing DHCP service

what values would I drop into the registry?

guess I’ll have to do more searching.

  1. Stop ICS services

  2. Edit Registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters

  3. Replace IP address in “ScopeAddress”,”ScopeAddressBackup”, StandaloneDhcpAddress to for example 192.168.0.1.

  4. Start The ICS services

  5. See what DHCP has change to new IP that assigned to openSUSE (you need to renew the ip naually or just restart pc)

if the ICS do not assign ip 192.168.0.1 to ethernet interface then try to set it manually and restart ICS

yes I think ICS certainly will not assign the ip to ethernet interface so do it manually (just set the ip for ethernet interface to 192.168.0.1) after step 3

well I did this

I shut off ICS

then changed the scopes in regedit to 192.168.0.1

restarted laptop

then started ICS

then manually assigned 192.168.0.1 to the ethernet

so the ethernet is this

192.168.0.1 for IP
192.168.0.5 for gateway
192.168.0.1 for dns

the wireless on laptop is DHCP
its 192.168.1.5 for IP
192.168.1.1 for gateway
192.168.1.1 for dns

on desktop with opensuse

it says the same thing it did before when I did ifconfig

  1. on laptop for ethernet remove gateway and dns and then restart ics
  2. on desktop you need to renew the ip by “ifrenew eth0” or just restart PC
  3. check new ip and show result for following commands
ifconfig
route -n
grep -v "#" /etc/resolv.conf
ping 192.168.0.1
ping 192.168.1.1