View previous topic :: View next topic |
Author |
Message |
jbaesner n00b
Joined: 18 Feb 2004 Posts: 14
|
Posted: Sat Jun 26, 2004 5:23 pm Post subject: network configuration |
|
|
Hi!
I've a problem with my network configuration. Perhaps there's someone out there who can help me:
I've a computer [1] with 2 network devices (eth0, eth1) and a second computer [2] with one network card.
computer [1] is connected to computer [2] using eth0
computer [1] eth1 is used for dsl modem connection.
My problem is that internet over the eth1 dsl modem connection is working well, but i could not connect from computer [1] to computer [2] using eth0!
computer [1] has the following:
eth0: 192.168.0.1 -> 255.255.255.0
eth1: 192.168.0.200 -> 255.255.255.128
computer [2] has the following configuration:
ip 192.168.0.3 -> 255.255.255.0
Can anyone tell me why this is not working?
Thank you
Jörg
additional informations for computer [1] with the 2 network devices:
Code: |
gandalf conf.d # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
217.5.98.60 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.128 * 255.255.255.128 U 0 0 0 eth1
172.16.97.0 * 255.255.255.0 U 0 0 0 vmnet1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.156.0 * 255.255.255.0 U 0 0 0 vmnet8
loopback localhost, 255.0.0.0 UG 0 0 0 lo
default 217.5.98.60 0.0.0.0 UG 0 0 0 ppp0
gandalf conf.d # ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:AD:46:E8:57
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:587 dropped:0 overruns:0 carrier:1158
collisions:9843 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:98621 (96.3 Kb)
Interrupt:12 Base address:0xdc00
eth1 Link encap:Ethernet HWaddr 00:30:84:3D:26:07
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:87619 errors:0 dropped:0 overruns:0 frame:0
TX packets:69195 errors:0 dropped:0 overruns:0 carrier:0
collisions:19 txqueuelen:1000
RX bytes:116122049 (110.7 Mb) TX bytes:6736710 (6.4 Mb)
Interrupt:5 Base address:0xaf00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:658 errors:0 dropped:0 overruns:0 frame:0
TX packets:658 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:48054 (46.9 Kb) TX bytes:48054 (46.9 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:217.229.129.28 P-t-P:217.5.98.60 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:18733 errors:0 dropped:0 overruns:0 frame:0
TX packets:18252 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:25443744 (24.2 Mb) TX bytes:1083520 (1.0 Mb)
vmnet1 Link encap:Ethernet HWaddr 00:50:56:C0:00:01
inet addr:172.16.97.1 Bcast:172.16.97.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:136 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmnet8 Link encap:Ethernet HWaddr 00:50:56:C0:00:08
inet addr:192.168.156.1 Bcast:192.168.156.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|
Last edited by jbaesner on Sun Jun 27, 2004 12:16 pm; edited 1 time in total |
|
Back to top |
|
|
linux_weenie Guru
Joined: 25 Jun 2003 Posts: 365
|
Posted: Sat Jun 26, 2004 6:02 pm Post subject: |
|
|
are you connecting [1] to [2] using a cross-over cable or through a hub?
-Will _________________ There are only 10 types of people in the world. Those who understand binary and those who don't. |
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Sat Jun 26, 2004 6:53 pm Post subject: |
|
|
Quote: | [1] has the following configuration:
ip 192.168.0.3 -> 255.255.255.0
| Is this PC1?
Quote: | [2] has the following:
eth0: 192.168.0.1 -> 255.255.255.0
eth1: 192.168.0.200 -> 255.255.255.128 | is this PC2?
my understandng was pc1 had 2 nics and pc2 had 1.
Which of these Ip's belong to who and what one is the dsl modem? Are you belind a router?
If you can clear this up I'll take a crack at it. _________________ Come and play in my land |
|
Back to top |
|
|
jbaesner n00b
Joined: 18 Feb 2004 Posts: 14
|
Posted: Sun Jun 27, 2004 12:22 pm Post subject: |
|
|
@linux_weenie:
I'm connecting computer [1] to computer [2] using a cross-cable, no hub, no switch...
@maletek:
I had some errors in my first post, so I've edited the text above to be correct now (hopefully!)...
I'm not behind a router, but when setting up the dsl connection using 'adsl-setup', i was asked this:
Code: |
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
|
and I've chosen '1-STANDALONE'!
I hope this will help you, otherwise ask and I'll try to answer! |
|
Back to top |
|
|
nobspangle Veteran
Joined: 23 Mar 2004 Posts: 1318 Location: Manchester, UK
|
Posted: Sun Jun 27, 2004 2:03 pm Post subject: |
|
|
you needed
Quote: | 2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN |
As that's what you're trying to do |
|
Back to top |
|
|
jbaesner n00b
Joined: 18 Feb 2004 Posts: 14
|
Posted: Mon Jun 28, 2004 5:49 pm Post subject: |
|
|
Ok, I've switched, but it's still not working!
Do I have to configure something else? |
|
Back to top |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Wed Jun 30, 2004 2:18 pm Post subject: |
|
|
Do you have connectivity of any sort from host2 to host1? I.e can you ping it? Also, I assume that both nics (on the different hosts) are on the same subnet, correct? _________________ The realOTW: http://forums.realotw.org/index.php
Registered Linux user#364538 |
|
Back to top |
|
|
DaveArb Guru
Joined: 29 Apr 2004 Posts: 510 Location: Texas, USA
|
Posted: Wed Jun 30, 2004 2:36 pm Post subject: Re: network configuration |
|
|
jbaesner wrote: | computer [1] has the following:
eth0: 192.168.0.1 -> 255.255.255.0
eth1: 192.168.0.200 -> 255.255.255.128
|
Those two NICs are on the same network, at least as far as eth0 is concerned. I cannot imagine that is good.
Dave |
|
Back to top |
|
|
jbaesner n00b
Joined: 18 Feb 2004 Posts: 14
|
Posted: Wed Jun 30, 2004 5:24 pm Post subject: |
|
|
Ok, to clear some things up, Computer [2] is not really a computer, it's my digital satelite receiver running a linux os and having a network connection.
I don't want to access the internet from that machine at the moment. I just want to connect from my computer [1] to the receiver (computer [2]).
But this is not working with Gentoo at the moment. When I've set up the same within WinXP everything works.
Maybe I've something to configure within the /etc/ppp/firewall-masq? But what do I have to configure and how? |
|
Back to top |
|
|
|