ubuntuusers.de

Internetverbindung über Windows 7 PC

Status: Gelöst | Ubuntu-Version: Ubuntu 11.04 (Natty Narwhal)
Antworten |

if100032

Anmeldungsdatum:
25. September 2011

Beiträge: Zähle...

Hallo!

Folgendes Problem: Ich möchte einen Ubuntu Laptops mit Hilfe eines Cross-Over Kabels zu einem Windows 7 Rechners verbinden. Ziel ist es dadurch ans Internet zu gelangen.Beim Windows 7 PC habe ich bereits für die Drahtlosenetzwerkverbindung eingestellt, dass sie gemeinsam genutzt wird und die Lan-Verbindung als Heimnetzwerkverbindung eingestellt! Beim Ubuntu Laptop habe ich die "Auto eth 0" verbindung aktiviert! Meine Frage jetzt: Was muss ich beim Laptop alles einstellen um erfolgreich ins Internet zu kommen?

Infos zum Laptop:

uname -a:

Linux flo 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
_________________________________________________________________________________________________________
lspci -nnk | grep -i net -A2:

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)
	Subsystem: ASUSTeK Computer Inc. L8400B or L3C/S notebook [1043:1045]
	Kernel driver in use: 8139too
--
01:04.0 Network controller [0280]: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller [14e4:4320] (rev 03)
	Subsystem: ASUSTeK Computer Inc. Device [1043:120f]
	Kernel driver in use: b43-pci-bridge
________________________________________________________________________________________________________________________

lsusb:

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
Bus 001 Device 002: ID 0402:5603 ALi Corp. M5603 Video Camera Controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
________________________________________________________________
egrep -v "^$|^#" /etc/network/interfaces:

auto lo
iface lo inet loopback
_____________________________________________________________________
egrep -v "^$|^#" /etc/resolv.conf:

 => Keine Ausgabe
_________________________________________________________________________
egrep -v "^$|^#" /etc/hosts:


127.0.0.1	localhost
127.0.1.1	flo
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
_____________________________________________________________

cat /etc/udev/rules.d/70-persistent-net.rules:

# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:d4:1f:06:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x14e4:0x4320 (b43-pci-bridge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:d4:51:aa:5a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
__________________________________________________________________________________________________________________
ifconfig:


eth0      Link encap:Ethernet  HWaddr 00:13:d4:1f:06:43  
          inet addr:192.168.137.2  Bcast:192.168.137.255  Mask:255.255.255.0
          inet6 addr: fe80::213:d4ff:fe1f:643/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1077 errors:0 dropped:0 overruns:0 frame:0
          TX packets:301 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:103660 (103.6 KB)  TX bytes:52723 (52.7 KB)
          Interrupt:18 Base address:0xc800 

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:4904 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4904 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:390064 (390.0 KB)  TX bytes:390064 (390.0 KB)
__________________________________________________________________________

route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.137.0   0.0.0.0         255.255.255.0   U     1      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
_________________________________________________________________________________

iwconfig:


lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

Ubunux

Avatar von Ubunux

Anmeldungsdatum:
12. Juni 2006

Beiträge: 17492

Auf dem Ubuntu-PC muss schlicht im Network-Manager DHCP eingestellt sein bei der Netzwerkkarte ( was imho die Normaleinstellung ist)

Ich frage mich gerade woher die IP-Adresse 192.168.137.2 kommt, meines Wissens verwendet ICS in Windows den Bereich 192.168.0.x/24, d.h. bei korrekter Funktion sollte Dein Ubuntu-Client eine IP-Adresse aus diesem Bereich erhalten

Welche IP-Adressen hat der Windows PC? (sowohl WLAN als auch Lan)

if100032

(Themenstarter)

Anmeldungsdatum:
25. September 2011

Beiträge: 4

Die Adresse habe ich statisch vergeben! Offensichtlich ein Fehler! Aber ich dachte mir ich muss im Netzwerk Ip's vergeben.

Windows PC: Lan: 192.168.137.1 WLAN: 162.186.0.190 ⇒ Wlan Ip wird dynamisch vergeben!

Vielen Dank Internet funktioniert. Frag mich nur wieso das vorher nicht funktioniert hat?! Ich habe nämlich alle Einstellungen ausprobiert ! Aber egal. Danke nochmals!

Ubunux

Avatar von Ubunux

Anmeldungsdatum:
12. Juni 2006

Beiträge: 17492

if100032 schrieb:

Frag mich nur wieso das vorher nicht funktioniert hat?! Ich habe nämlich alle Einstellungen ausprobiert !

schau Dir die Ausgabe von route -n jetzt nochmal an und vergleiche, dann sollte Dir etwas auffallen ☺

Lan: 192.168.137.1 WLAN: 162.186.0.190

dies erklärt einiges, Wenn Dein WLAN-Router bereits den Adressbereich 192.168.0.x verwendet ist der Bereich natürlich für ICS nicht mehr frei, offensichtlich weicht Windows dann auf den Bereich 192.168.137-x aus

letzter Nachtrag: siehe auch hier

if100032

(Themenstarter)

Anmeldungsdatum:
25. September 2011

Beiträge: 4

Ah ok Danke ☺

Echt toll, dass man hier so schnell Hilfe bekommt! 😀

Antworten |