Autor Beitrag
Handycommander
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Mi 14.10.09 18:30 
Hi,

ich versuche gerade, meinen Laptop via LAN mit einem weiteren PC zu koppeln und via WLAN mit einem Router ins Internet zu gehen.
Dabei benutze ich folgende Einstellungen:

Router:
IP-Adresse: 192.168.2.1

Laptop:
WLAN IP-Adresse: 192.168.2.22
WLAN Standard-Gateway: 192.168.2.1
LAN IP-Adresse: 192.168.0.1
LAN Standard-Gateway: keins
Subnetz von beiden: 255.255.255.0

PC mit LAN:
IP-Adresse: 192.168.0.2
Standard-Gateway: keins
Subnetz: 255.255.255.0

Ich nutze deshalb zwei unterschiedlich IP-Ranges am Laptop, da Windows sonst beim Anschließen des LAN-Kabels die WLAN-Verbindung kappt.
Wie mus sich jetzt meine Rechner konfigurieren, damit ich vom PC aus, über den Laptop via LAN ebenfalls ins Internet komme?

Im Endeffekt so:
PC ---> (LAN) ---> Laptop ---> (WLAN) ---> Router ---> Internet

Muss ich vll noch bei der LAN-Verbindung und bei dem PC mit LAN ein Standard-Gateway setzen oder irgendwelche Routen?
Kann die Verbindung überhaupt klappen und was muss ich noch konfigurieren, damit die Verbindung klappt?

Danke für eure Hilfe!

Gruß,
Tobi
jfheins
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 918
Erhaltene Danke: 158

Win 10
VS 2013, VS2015
BeitragVerfasst: Mi 14.10.09 18:52 
Ja, das müsste gehen. Du musst auf dem Notebook ne Netzwerkbrücke einrichten und dem PC musst du die Notebook-LAN-IP als Gateway verpassen.

Alles ohne Garantie. Ich hab sowas zwar mal gemacht, aber das ist schon lange her und ich weis nicht, obs damals geklappt hat ;)
Reinhard Kern
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 591
Erhaltene Danke: 14



BeitragVerfasst: Mi 14.10.09 20:58 
Moderiert von user profile iconNarses: Komplett-Zitat des Eröffnungsbeitrags entfernt.

Hallo,

das ist viel zu kompliziert, dein Router hat doch LAN und WLAN (sonst macht der Rest ja keinen Sinn). Also verbindet der Router alle Clients und diese mit dem Internet. Natürlich kannst du das Notebook nur einmal ans Netz anschliessen - entweder über LAN oder über WLAN. Eine 2. Verbindungs ins gleiche Netz ist verboten, aber sowieso sinnlos.

Also Clients auf IP-Adresse: 192.168.2.x und Gateway auf IP-Adresse: 192.168.2.1 setzen. Den Schlepptop je nach Geschmack mit LAN oder WLAN. Es gibt logisch nur das eine Subnetz 192.168.2.

Dass die Clients auch untereinander verbunden werden, muss man bei manchen Routern einstellen, bei Fritzen heisst das "alle Rechner im gleichen Netz" oder so ähnlich.

Gruss Reinhard
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mi 14.10.09 22:03 
Eventuell steht der Router einfach zu weit weg, sodass keine Kabelverbindung möglich ist. Bleibt also entweder die Netzwerkbrücke, hierbei musst Du in den Netzwerkeigenschaften zwei Adapter markieren, Rechtsklick auf einen und "Verbindung überbrücken" anklicken, oder Du verwendest eine Routing-Software wie WinRoute. Verfügst Du über ein Server-OS auf Deinem Notebook verwendest Du unter Windows den Routing- und RAS-Dienst dafür. Auf dem LAN-Rechner trägst Du jetzt nur noch das Notebook als Standardgateway und einen externen DNS-Server als DNS ein und schon sollte es funktionieren. Problemanalyse erfolgt mit tracert ;)
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 14.10.09 22:45 
Moin!

user profile iconHandycommander hat folgendes geschrieben Zum zitierten Posting springen:
Laptop:
WLAN IP-Adresse: 192.168.2.22
WLAN Standard-Gateway: 192.168.2.1
LAN IP-Adresse: 192.168.0.1
LAN Standard-Gateway: keins
Subnetz von beiden: 255.255.255.0
Hier noch IP-Forwarding aktivieren, ggfs. über die Registry.

user profile iconHandycommander hat folgendes geschrieben Zum zitierten Posting springen:
PC mit LAN:
IP-Adresse: 192.168.0.2
Standard-Gateway: 192.168.0.1
Subnetz: 255.255.255.0
Fertig, sollte gehen. ;)

Warum das allerderdings "nötig" sein sollte, sowas zu machen, ist mir auch nicht klar... :gruebel:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Do 15.10.09 07:53 
Narses: Auf dem Notebook muss dafür noch IP-Forwarding aktiv sein, sonst droppt er fremde Pakete an der LAN-Schnittstelle nämlich ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 15.10.09 08:23 
user profile iconNarses hat folgendes geschrieben Zum zitierten Posting springen:
user profile iconHandycommander hat folgendes geschrieben Zum zitierten Posting springen:
Laptop:
Hier noch IP-Forwarding aktivieren, ggfs. über die Registry.
;)

_________________
There are 10 types of people - those who understand binary and those who don´t.