Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netzwerk : problem mit gateway
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
xerxes
n00b
n00b


Joined: 11 Sep 2003
Posts: 12

PostPosted: Thu Nov 27, 2003 9:00 am    Post subject: Netzwerk : problem mit gateway Reply with quote

hi

folgende gegebenheiten :

ich hab 2 pcs in einem netzwerk die über ein hub miteinander verbunden sind. mein dekstop rechner föhrt mit winxp und ist gleichzeitig gateway.
mein zweiter rechner ist ein laptop mit gentoo.

desktoprechner : 192.168.0.1
laptop : 192.168.0.3

folgendes hab ich schon versucht:
ich habe nachgeschaut ob der laptop nicht falsch geroutet wird...
Code:
netstat -nr | grep def

doch diese anweisung gibt nichts aus sprich die default route ist nicht gesetzt
so habe ich mit
Code:
route add default gw 192.168.0.1

eine neue default route erstellt. gebe ich nun die wieder den befehl netstat... ein so gibt es wieder nichts au...übrigens nach diesem prozedere
ging die internetverbindung immer noch nicht.

in /etc/con.f/net hab ich auch die gateway bestimmt

noch was am ende pc im netzwerk kann ich anpingen bzw ich besteht eine verbindung da ich mit meinem desktop rechner mit putty auf den laptop zugreife (SSHD)

ich suche rat bei euch ich hoffe ihr könnt mir helfen

gruß xerxes
Back to top
View user's profile Send private message
weltraumfahrer
Apprentice
Apprentice


Joined: 17 Dec 2002
Posts: 195
Location: Karlsruhe, Germany

PostPosted: Thu Nov 27, 2003 10:38 am    Post subject: Reply with quote

Hi,
'netstat -nr | grep def' gibt nie 'ne Ausgabe.
Das beste Komando dazu ist 'route' bzw. 'route -n'.
'-n steht für 'show numerical addresses'.

Frank
Back to top
View user's profile Send private message
xerxes
n00b
n00b


Joined: 11 Sep 2003
Posts: 12

PostPosted: Thu Nov 27, 2003 10:45 am    Post subject: Reply with quote

hi,

den befehl
Code:
netstat -nr | grep def
hab ich aus dem buch TCP/IP des O`Reilly
verlages aber davon abgesehen route -n wurde mir schon von anderen empfohlen :) also route -n gibt mir folgendes aus.

destination : 0.0.0.0
gateway : 192.168.0.1
genmask : 0.0.0.0

eigentlich sollte die sollte ja jetzt auch integriert sein und sollte so auch funktionieren. doch das problem besteht weiterhin.

gruß xerxes
Back to top
View user's profile Send private message
tacki
Guru
Guru


Joined: 29 Jun 2002
Posts: 418
Location: Germany

PostPosted: Thu Nov 27, 2003 12:28 pm    Post subject: Reply with quote

blöde frage: hast du bei deinem winxp/router auch die internetfreigabe aktiviert?
Back to top
View user's profile Send private message
xerxes
n00b
n00b


Joined: 11 Sep 2003
Posts: 12

PostPosted: Thu Nov 27, 2003 12:52 pm    Post subject: Reply with quote

hi

blöden fragen gibt es nicht :), hätte ja eine fehlerquelle sein können
aber diesen fehler kann ich ausschließen :)

hab mir noch extra einmal die eigenschaften der dfü verbindung angeschaut

gruß xerxes
Back to top
View user's profile Send private message
tacki
Guru
Guru


Joined: 29 Jun 2002
Posts: 418
Location: Germany

PostPosted: Thu Nov 27, 2003 12:58 pm    Post subject: Reply with quote

hmm... kannst du vielleicht mit einem anderen rechner testen ob du damit über den gateway raus kommst?

was sagt z.b. traceroute www.gentoo.de ?
Back to top
View user's profile Send private message
xerxes
n00b
n00b


Joined: 11 Sep 2003
Posts: 12

PostPosted: Thu Nov 27, 2003 1:42 pm    Post subject: Reply with quote

hi,

also eine andere rechner (winxp) kann über die gateway ins internet.

traceroute hab ich noch nicht auf dem rechner, könnte ich theoretisch mergen aber ... geht ja nicht :)

gruß xerxes
Back to top
View user's profile Send private message
tacki
Guru
Guru


Joined: 29 Jun 2002
Posts: 418
Location: Germany

PostPosted: Thu Nov 27, 2003 2:42 pm    Post subject: Reply with quote

dann musst du wohl ein paar configs posten....

/etc/conf.d/net
route -n
ifconfig
/etc/resolv.conf

usw.
Back to top
View user's profile Send private message
xerxes
n00b
n00b


Joined: 11 Sep 2003
Posts: 12

PostPosted: Thu Nov 27, 2003 6:30 pm    Post subject: Reply with quote

/etc/conf.d/net
Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.3 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/192.168.0.1"


route -n

Code:
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 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    1      0        0 eth0


ifconfig

Code:
eth0      Link encap:Ethernet  HWaddr 00:E0:98:7B:93:55
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:98ff:fe7b:9355/10 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:231 errors:0 dropped:0 overruns:0 frame:0
          TX packets:157 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:17137 (16.7 Kb)  TX bytes:15680 (15.3 Kb)
          Interrupt:3 Base address:0x300

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:336 (336.0 b)  TX bytes:336 (336.0 b)


/etc/resolf.d

Code:
nameserver192.168.0.1


das wärs :)

gruß xerxes
Back to top
View user's profile Send private message
xerxes
n00b
n00b


Joined: 11 Sep 2003
Posts: 12

PostPosted: Thu Nov 27, 2003 7:45 pm    Post subject: Reply with quote

hi,

also problem wurde gelöst :) gott sei dank

großes lob an die leute im #gentoo.de channel @qnet :)

so folgendes musste erledigt werden, in der resolv.conf musste die ip des nameservers von t-online eingetragen werden, kaum hab ich das gemacht schon lief mein gentoo rechner im kreis und konnte seiner lieblingsbeschäftigung nachgehen nämlich dem mergen :)

aber danke noch an euch

gruß xerxes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum