LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   DSL connection just not working with 10.2 Slackware... (https://www.linuxquestions.org/questions/slackware-installation-40/dsl-connection-just-not-working-with-10-2-slackware-457857/)

Xeroking 06-24-2006 10:10 AM

DSL connection just not working with 10.2 Slackware...
 
I have no idea what to do to be honest... I have tried and tried, and Im near ready to give up. Can any one give me a walk through, or walk me through setting up an internet connection with Slackware 10.2

multios 06-24-2006 10:14 AM

have you run netconfig?

Xeroking 06-24-2006 10:23 AM

Yes I have, and I put in the neccesary info.. I make up the Host name and the computer name, then I set up Dhcp and I don't have to input anymore data...

Brian1 06-24-2006 11:02 AM

What hardware are you using?
Is it using a USB or Ethernet connection from modem to computer?
Or is there a router between the computer and modem?

Brian1

cwwilson721 06-24-2006 11:53 AM

And, does your ISP require PPoE? Check what your ISP requires, too.

Plus, can you post the results of both:
Code:

lspci
lsmod

That will give us an idea if the hardware is working or not (first step) then software (2nd step)

manishsingh4u 06-24-2006 12:12 PM

Can you post the output of these commands?
Code:

lspci
Code:

dmesg | grep eth
Code:

ifconfig -a
It would make us clear with nearly all the common facts about the problem.

Xeroking 06-25-2006 09:43 PM

Lscpi
Quote:

00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host Bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 12)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 12)
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 (rev 12)
00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #1) (rev 12)
00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus (rev 12)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 12)
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 12)
01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF
02:07.0 Ethernet controller: Lite-On Communications Inc LNE100TX (rev 20)
02:0c.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
dmesg | grep eth
Quote:

eth1: Lite-On 82c168 PNIC rev 32 at 0xdc00, 00:A0:CC:D2:DB:59, IRQ 11.
ifconfig -a
Quote:

eth0 Link encap:Ethernet HWaddr 00:06:5B:53:43:30
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:5
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:2420 (2.3 Kb)
Interrupt:11 Base address:0xd880

eth1 Link encap:Ethernet HWaddr 00:A0:CC:D2:DB:59
BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xdc00

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:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1196 (1.1 Kb) TX bytes:1196 (1.1 Kb)
Thats the out put for each of the things u asked...

manishsingh4u 06-26-2006 03:54 AM

Alright, you have got 2 nic cards and as per the output of the ifconfig command, we see that both of them have their drivers installed. I expect to see eth0 too in the dmesg command too. Anyway, let's proceed.

I am assuming that you get your ipaddress from you internet service provider through their dhcp server.
I am also assuming that your eth0 is connected to the dsl modem whereas eth1 is used to connect to your local area network.

First of all, we will configure /etc/rc.d/rc.inet1.conf. Look in this for a section similar to the code below and make the changes indicated in red color. The text in blue color are just hints from my side.

Code:

# Config information for eth0: Hint:Use ur real ipadd/subnet
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1: Hint:Use ur local ipadd/subnet
IPADDR[1]="192.168.0.1"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Default gateway IP address:
GATEWAY="eth0"


Now, we will edit your /etc/resolv.conf You might need to consult your isp to
get these values. Replace X.X.X.X with the ipaddresses of your dns servers
Code:

search yourispdomain.com # hint - your isp's domain
namserver X.X.X.X        # your primary dns server
namserver X.X.X.X        # your secondary dns server


Now, restart your network
Code:

/etc/rc.d/rc.inet1 restart
And there u r done.

now, if you wish to share this connection with other users on your local area network,
run these commands. Remember, these rules are lost on every boot. So, if u want the connection to be share automatically, add these lines to your /etc/rc.d/rc.local file
Code:

iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

If you find any part of the above confusing, please feel free to ask.

Xeroking 06-26-2006 09:57 AM

I have 2 nic cards, but im only using eth1, and thats input from a LAN connection with my router.

Also, when I input the
Code:

/etc/rc.d/rc.inet1.conf.
I get permision denied...

manishsingh4u 06-26-2006 12:30 PM

Quote:

Originally Posted by Xeroking
I have 2 nic cards, but im only using eth1, and thats input from a LAN connection with my router.

Then we need to configure only eth1 in /etc/rc.d/rc.inet1.conf

What is the local ipaddress of your router?
Do you want to use a static ipaddress for eth1 or through a dpcp server?
Quote:

Originally Posted by Xeroking
Also, when I input the
Code:

/etc/rc.d/rc.inet1.conf.
I get permision denied...

You need to edit this file by using a text editor like "kwrite" or something. And to edit this file, you must be logged in as root


All times are GMT -5. The time now is 09:04 PM.