Jump to content

2 MDK PC network


Trio3b
 Share

Recommended Posts

very new to networking

 

PC 1 Mandriva 2005LE

eth0 is 3com NIC setup thru Mandrake CC to connect to DSL modem - all OK (auto DHCP)

eth1 is netgear NIC setup thru Mandrake CC to home net thru lynksis hub to PC 2

setup static

hostname name1.mylan

address 192.168.10.1

 

PC 2 Mandrake 10.0

eth0 is SiS NIC setup thru MCC to home net thru the linksys hub

setup static

hostname name2.mylan

address 192.168.10.2

 

each PC is able to ping itself and each other

I see hub lights indicating activity

PC1 is able to 'see' PC2 via ssh via Konqueror

 

PC2 cannot 'see' PC 1

error mssg

an error occurred while loading 192.168.10.1

could not connect to host 192.168.10.1

 

Unless it is related to the problem, I am not concerned about internet sharing right now. I think if I get these 2 PCs to see each other first, then the internet sharing will fall into place.

 

I can post some outputs

 

any help appreciated

Thanks

Edited by Trio3b
Link to comment
Share on other sites

here is the output of ifconfig for :

 

output of ifconfig on PC 2

eth0 Link encap:Ethernet HWaddr 00:0D:87:76:F4:60

inet addr:192.168.10.2 Bcast:192.168.10.255 Mask:255.255.255.0

inet6 addr: fe80::20d:87ff:fe76:f460/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:591 errors:0 dropped:0 overruns:0 frame:0

TX packets:12346 errors:0 dropped:0 overruns:0 carrier:0

collisions:96 txqueuelen:1000

RX bytes:57660 (56.3 Kb) TX bytes:917627 (896.1 Kb)

Interrupt:10 Base address:0xcc00

 

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:4396 errors:0 dropped:0 overruns:0 frame:0

TX packets:4396 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:283797 (277.1 Kb) TX bytes:283797 (277.1 Kb)

 

output of ifconfig of PC1

 

eth0 Link encap:Ethernet HWaddr 00:01:02:45:80:D2

inet addr:192.168.1.66 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::201:2ff:fe45:80d2/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:19135 errors:0 dropped:0 overruns:0 frame:0

TX packets:7338 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:5530231 (5.2 Mb) TX bytes:990385 (967.1 Kb)

Interrupt:9 Base address:0x4000

 

eth1 Link encap:Ethernet HWaddr 00:02:E3:0A:24:61

inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0

inet6 addr: fe80::202:e3ff:fe0a:2461/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:9857 errors:0 dropped:0 overruns:0 frame:0

TX packets:470 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:951041 (928.7 Kb) TX bytes:44629 (43.5 Kb)

Interrupt:10 Base address:0xe000

 

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:38 errors:0 dropped:0 overruns:0 frame:0

TX packets:38 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:3450 (3.3 Kb) TX bytes:3450 (3.3 Kb)

 

sit0 Link encap:IPv6-in-IPv4

inet6 addr: ::192.168.10.1/96 Scope:Compat

inet6 addr: ::192.168.1.66/96 Scope:Compat

inet6 addr: ::127.0.0.1/96 Scope:Unknown

UP RUNNING NOARP MTU:1480 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

 

 

 

here is resolv.conf of PC2

search mylan

# search gateway.2wire.net

nameserver 192.168.10.2

# nameserver 192.168.1.254

 

# ppp temp entry

here is resolv.conf of PC1

 

search gateway.2wire.net

nameserver 192.168.1.254

 

Firewall is disabled on PC1 (everything -no firewall is checked)

Trying to connect to the eth1 card on PC1

How do I enable sshd on PC1

 

Why is PC1 able to access files on PC2 thru sftp in Konqueror?

I set up both PCs the same way thru MCC

 

eth0 on PC1 was setup in MCC with LAN thru DSL modem for internet connection.

eth0 on PC2 and eth1 on PC1 were setup thru GUI in MCC and meant to see each other.

I am posting the outputs of PC2 thru ssh in Konqueror on PC1, so I know PC1 is 'seeing' PC2. It is PC2 that cannot access PC1.

 

Hope this helps

Thanks

Edited by Trio3b
Link to comment
Share on other sites

You can enable by:

 

urpmi ssh-server

 

this will install it.

 

To double check that shorewall is not running type:

 

service shorewall stop

 

and see if you can connect OK.

Link to comment
Share on other sites

You nailed it. ssh was not running on PC1

 

Next project is internet sharing. I have run internet sharing in MCC and applied it to eth1 on PC1, but still do not have access to 'net on PC2.

PC1 is MDV 2005LE

eth0 is NIC to DSL modem, which I think is a bridge /router that assigns me a dynamic address( DHCP during setup)

eth1 is NIC --> hub --> PC2 (setup as static 192.168.10.1 during MCC setup)

 

PC2 is MDK 10.0

eth0 is NIC --> hub --> PC1 (setup as static 192.168.10.2 during MCC setup)

 

Is this doable with the NIC --> DSL modem as DHCP and the 2 PC network as static?

 

Have heard that in Mandrake networking it is best to continue either with GUI or CL but not both. I have run across info about networks with routers and dialup, but that is not my situation.

Any good tutorials out there?

 

curious, why does the manage connections in MCC show eth connections as disconnected? If I hit connect, it does, then disconnects, but am still on the net.

Thanks

Edited by Trio3b
Link to comment
Share on other sites

Thanks for the help. At this point my internet sharing is now working, but am confused as to why.

Played around with iptables, routing , etc for a while, but I got the urge to look into firewall.

MCC has a question under firewall: Which services would you like the internet to connect to?

 

And a checkbox for "everything" (no firewall). You would think that this setting would allow for open and free networking and sharing, but apparently not. As soon as I unchecked this, and checked DNS, webserver and echo request, I had internet sharing with my PC2. 

 

Can someone please explain how this firewall checkbox list works? MCC documentation doesn't cut it.

 

Also, under MCC security, I could swear there were permissions , user, and firewall settings. Now I only have firewall. Is this MDV 2005LE defaults, and am I thinking of MDK 10.0?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...