LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2004, 11:32 AM   #1
ner0
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Rep: Reputation: 0
choosing web interface in slack10


Hi,

I currently have a wireless network running from my eth1, that is all fine.
I would like to connect to the internet through eth0, I've set this up in rc.modules, rc.inet1.conf, and rc.inet2. a dhcp address is assigned upon boot, as I see:

dhcpcd: your ip address: my.ip.goes.here

and the mac address of the card etc is also detected, when i run an ifconfig, under eth0... I also see the mac address, the correct ip address given by my isp i assume, the bcast and the mask (not sure about the last 2), then some packet details:

RX PACKETS: 39632 with no errors, none dropped and no overruns. this is also the same for TX packets, however only 43 packets were sent.

all this seems fine to me, i've stayed away from netconfig as it is already configured to use a dhcp server, and running the config seems to only change my eth1 (wireless) settings, and wipe the settings for the eth0...

however while all may seem fine to me, i cannot ping, connect to, or tracert anything, which is to me a sure indication that i'm offline.

any ideas as to what i've done wrong, any replies appreciated and thanks for your time
 
Old 11-17-2004, 12:05 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
check your routes.
 
Old 11-17-2004, 12:07 PM   #3
ner0
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
could you maybe point me in the right direction as to how that would be done, I've picked it up this far from what i've learnt from reading other problems etc,

tia, Paul
 
Old 11-17-2004, 04:43 PM   #4
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
the command is

/sbin/route -n
 
Old 11-17-2004, 04:51 PM   #5
ner0
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
thanks, I'm guessing theres something definitely wrong, no mention of eth0 at all there.

192.168.2.0 / 0.0.0.0 / 255.255.255.0 / U / 0 / 0 / 0 / eth1
127.0.0.0 / 0.0.0.0 / 255.0.0.0 / U / 0 / 0 / 0 / lo
0.0.0.0 / 192.168.2.1 / 0.0.0.0 / UG / 0 / 0 / 0 / eth1

fields are :

destination, gateway, genmask, flags, metric, ref, use, iface respectively...

any help or advice for using eth0 as my internet device is really appreciated

Last edited by ner0; 11-17-2004 at 05:09 PM.
 
Old 11-18-2004, 06:39 AM   #6
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
# lspci

Your 2 NICs should be shown. If only one, that could only be your eth1 for sure and your supposed eth0 NIC is not working.

or:

# ifconfig -a

eth0, eth1 and lo should all be there.

If eth0 is absent again:

# ifconfig eth0 up

Then # ifconfig -a again.

If things goes right now, put your IP (ifconfig) for eth0 and add your ISP's gateway.

# route add default gw your.isp.assigned.gateway

route -n should show:

your.isp.assigned.gateway 0.0.0.0
192.168.2.0 0.0.0.0
127.0.0.0 0.0.0.0
0.0.0.0 your.isp.assigned.gateway

I haven't noticed that your using Slackware. Edit your /etc/rc.d/rc.inte1.conf and put eth0's IP and your ISP's gateway there. It should be permanent then. It seems that Slackware can't remember sometimes the other NIC's IP configured through ifconfig. On my case it's eth1 that can't be remembered during everyboot/reboot.

I just figured it out after searching their installation page.

You should be able now to ping internet sites like www.linuxquestions.org.
 
Old 11-19-2004, 05:15 PM   #7
ner0
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks to all that replied in this thread, gani, thanks a lot, your help was great! i got it working after a few attempts, i was close before.

anyway, got the eth0 working as the net interface, now to setup eth1 for network traffic and internet connection sharing, but as thats a topic for wireless networking, off I go...

thanks again
 
Old 11-21-2004, 10:08 PM   #8
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Wired and wireless are just different access medium, operations will be the same. May be this thread could help you setup internet sharing with other workstations.

http://www.linuxquestions.org/questi...5&pagenumber=2

But this is not yet a secured setup. You will still need to refer to other tutorials but this will work as it worked for me before. I can't help you secure this iptables script since I just used iptables for less than a month upon learning that OpenBSD's PF is much easier to learn and implement.

Go to netfilter's website for howtos.
 
  


Reply



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
Web interface for Vacation? dman65 Linux - Software 2 04-19-2005 11:15 AM
different MACs in Slack10 and XP for the same interface Andruha Linux - Networking 4 03-11-2005 05:00 PM
Need Help on my web server-Slack10 wylie1001 Linux - Software 9 08-19-2004 07:16 PM
choosing the right web browser jano31coa Linux - Software 18 06-20-2004 10:32 PM
choosing a web server distro TravisB Linux - General 4 05-19-2004 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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