Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-31-2003, 09:55 AM   #1
Registered: Jan 2003
Posts: 87

Rep: Reputation: 15
eth0 in slackware

I'm trying to configure my network to acess the internet. I used netconfig and can acess other machiens on my network, but not the internet. I think the gateway isn't set.

I type route:

Destination | Gateway *

1) What is the destination? (What is it for?)

2) How do I put in a gateway?

I tried 'route add default dev eth0'

doesn't work.

Old 07-31-2003, 09:59 AM   #2
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
try running 'netconfig' as root, and after that 'ifconfig'
to check if it's up.
Old 07-31-2003, 10:09 AM   #3
Registered: Jan 2003
Posts: 87

Original Poster
Rep: Reputation: 15
Ok, it works now!

route add -net 0/0 gw netmask

but now i have a bunch of entries i don't want

1) How do I delete the other entries?

2) Why didn't netconfig do this for me? It asked for my gateway and netmask.....?
Old 07-31-2003, 10:27 AM   #4
Registered: Jan 2003
Posts: 87

Original Poster
Rep: Reputation: 15
Ok actually that didn't work, but the entry that works is the one with for the netmask...go figure.

Now, how do I delete entries?
Old 07-31-2003, 11:06 AM   #5
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
netconfig should have asked you for the details of your gateway that should be all thats needed so long as the gateway is setup with NAT/IP-Masq to allow you out onto the web.

Post the output of ifconfig, route -n and tell us what the IP address of your gateway is.


Old 08-01-2003, 03:28 AM   #6
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
edit the file /etc/rc.d/rc.inet1

Thats where all your entries IP related go

edit /etc/resolv.conf thats where your dns and search paths are

edit /etc/hosts this is your hosts file where it names your pc


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
slackware eth0 setup petezilla Linux - Newbie 3 05-20-2005 02:34 AM
Eth0 not being recognized in Slackware 9.1 Lucinda Linux - Networking 5 05-20-2004 11:52 PM
Slackware recognizes eth0 but won't use satellite modem mjewell Linux - Networking 1 01-12-2004 08:12 PM
no eth0 at slackware intellscreen Linux - Newbie 4 12-15-2003 03:51 PM
Slackware laptop cannot find eth0 kaluapig Linux - Laptop and Netbook 8 11-30-2003 11:31 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:07 AM.

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