LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-17-2005, 12:52 AM   #1
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Rep: Reputation: 15
eth0 / eth1 and ppp0


I've been playing around with LE2005 for a few months now and after the trauma of getting my SAGEM fast 800 USB modem running ADSL on ppp0 I have been trying unsuccessfully to get the LAN working. The hardware is a Realtek RTL 8139 which runs perfectly on my 3 pc LAN under windows!

LE2005 assigns eth0 automatically and claims to be "up" despite the fact that it has no ip address. Allocating one manually does not help.

I used "control centre" to configure the LAN and assigned eth1 as offered. This installed without complaint and sure enough appears in IFCONFIG as eth1 with the manual ip I assigned.

However, pinging to or from the new address indicates packetes are not getting through and to all intents and purposes the system is not connected.

Amazingly, when I go back to "control center" and use the network connection monitor, the graphical display clearly shows the received ping activity from other machines on the network. So is it working or not? I certainly cant get any other signs of it being connected to my LAN.

To add to the confusion - my ADSL intenet connection on ppp0 is described as "eth0" in the "control center" graphical monitor and clearly displays the internet traffic.

Does anyone have ideas on how I can sort out this mess without doing a major re-install?

Regards
IK

(ps - I am currently not even trying to share the internet connection over the LAN. Just to have both working separately would be a major step forward.)
 
Old 11-17-2005, 04:11 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
post the output of
Code:
ifconfig
And post the files /etc/shorewall/interfaces /etc/shorewall/policy /etc/shorewall/zones /etc/shorewall/masq

Have you tried just going through the Mandrake internet connection sharing wizard? It might fix things up properly for you.
 
Old 11-18-2005, 01:18 AM   #3
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks for the reply tkedwards - here it is:

eth0 Link encap:Ethernet HWaddr 00:60:4C:2A:B5:75
inet6 addr: fe80::260:4cff:fe2a:b575/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:65535 Metric:1
RX packets:11392 errors:0 dropped:0 overruns:0 frame:0
TX packets:6592 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16496560 (15.7 Mb) TX bytes:543106 (530.3 Kb)

eth1 Link encap:Ethernet HWaddr 00:06:4F:05:1C:6A
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::206:4fff:fe05:1c6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:618 (618.0 b)
Interrupt:9 Base address:0xc000

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:105 errors:0 dropped:0 overruns:0 frame:0
TX packets:105 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11366 (11.0 Kb) TX bytes:11366 (11.0 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:202.123.20.23 P-t-P:202.123.20.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:11355 errors:0 dropped:0 overruns:0 frame:0
TX packets:6556 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:16473131 (15.7 Mb) TX bytes:410699 (401.0 Kb)

sit0 Link encap:IPv6-in-IPv4
inet6 addr: ::202.123.20.23/96 Scope:Compat
inet6 addr: ::127.0.0.1/96 Scope:Unknown
inet6 addr: ::192.168.0.2/96 Scope:Compat
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)

##############################################################################
#ZONE INTERFACE BROADCAST OPTIONS
#
net ppp0 detect
loc eth0 detect
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE

###############################################################################
#SOURCE DEST POLICY LOG LIMIT:BURST
# LEVEL
#
# THE FOLLOWING POLICY MUST BE LAST
#
loc net ACCEPT
loc fw ACCEPT
fw loc ACCEPT
fw net ACCEPT
net all DROP info
all all REJECT info
#LAST LINE -- DO NOT REMOVE

#ZONE DISPLAY COMMENTS
net Net Internet zone
loc Local Local
#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE

###############################################################################
#INTERFACE SUBNET ADDRESS PROTO PORT(S)
ppp0 192.168.0.0/255.255.255.0
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE

The last time I tried the internet sharing wizard it screwed my internet connection completely. I haven't dared try since!!!

IK
 
Old 11-23-2005, 01:07 AM   #4
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Original Poster
Rep: Reputation: 15
Hello all

tkedwards gave me a clue when he mentioned SHOREWALL. If I stop SHOREWALL in the control centre/services then I can both ping and browse my LAN.

When I restart SHOREWALL the LAN dissappears again.

I have looked at the various files as suggested but I'm afraid I have no idea how to set up SHOREWALL to accept the machines on my LAN.

Can anybody help with this please?

IK
 
Old 11-23-2005, 01:44 AM   #5
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Original Poster
Rep: Reputation: 15
Hello again - further to my last post - I have SHOREWALL running again with the LAN now functioning by editing the file /etc/shorewall/zones to include the line :"loc eth1 detect"

Great! the immediate problem seems solved - Thanks again to tkedwards for pointing me in the right direction.

Now to pursue the possibility of having other machines on my LAN browse the internet through this server.

"Idiot's guide" instructions for achieving this would be most appreciated.

IK
 
Old 11-23-2005, 02:26 AM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Make sure
Code:
IP_FORWARDING=On
is in /etc/shorewall/shorewall.conf
Try changing the line in /etc/shorewall/masq to
Code:
#INTERFACE              SUBNET          ADDRESS         PROTO   PORT(S) IPSEC
ppp0 eth1
 
Old 11-24-2005, 02:07 AM   #7
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Original Poster
Rep: Reputation: 15
internet connection sharing

OK many thanks. - Now have it 50% working! .........

3 PCs on the LAN, each can see the other, share files etc.

PC0 running MDK LE2005 - connected to internet thro' ADSL usb modem
PC1 running MDK 9.2 . I can browse the internet over the LAN no problem
PC2 running WinXP. Can't browse the internet but can use internet explorer to browse the Apache server running on PC0 !

It must be some setting on the windows box - I will keep on poking about.

Thanks again.
IK

PS I just checked my shorewall/Masq file and the interface line says :"ppp0 192.168.0.0/255.255.255.0 ???????
 
Old 11-24-2005, 02:53 AM   #8
ikarus
Member
 
Registered: Jun 2005
Distribution: mandrake 10.1
Posts: 97

Original Poster
Rep: Reputation: 15
OK - got the windows machine cracked - I needed to tell it about the gateway (PC0) and the DNS at the ISP. Works fine now.

***********************************************************************
Well I guess I should really start another thread, but I'll try here first:

With all three machines capable of internet connection now I can pick my mail up at any of them. But what I would really like is to have all the inboxes synchronised and containing the same mail.

Unfortunately with the current set-up, downloading mail into one box means it is then not accessible by the others.

Do I need to run some sort of a mail server to achieve this?

IK
 
Old 11-26-2005, 08:49 PM   #9
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Yes. Basically you need to do 4 things:
1) Setup postfix for local delivery. This means you should be able to send email to username@localhost and see it appear properly in your /var/spool/mail/username. Use mail from the command line (if you don't have that command install the package mailx or nail).
2) Install procmail, setup postfix to deliver through procmail and create a .procmailrc file in your home dir.
3) Install the imap package. The one that comes with Mandriva (wu-imap I think) is fairly basic and shouldn't even need any configuration. It should just pickup the mail from ~/Mail
4) Install fetchmail and fetchmail-daemon and configure fetchmailrc to collect your email from your ISP
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ppp0,eth0,eth1 question Digital_Err0r Linux - Networking 1 09-22-2005 11:41 AM
eth1 and ppp0, need to send UDP packets through ppp0 smhs Linux - Networking 2 07-12-2005 08:54 AM
Newbie Question: Route all request coming from eth1 to ppp0/dsl0/eth0 hansschmucker SUSE / openSUSE 0 02-12-2005 09:38 PM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
eth0 eth1 ppp0 janisj Linux - Networking 2 07-06-2003 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration