LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [Help] Cannot connect to Internet (https://www.linuxquestions.org/questions/slackware-14/%5Bhelp%5D-cannot-connect-to-internet-272198/)

simonchen 12-31-2004 12:15 AM

[Help] Cannot connect to Internet
 
Recently, I installed the Slackware 10. And I followed the NETCONFIG installation to setup my network.


I'm using ADSL to hook up the net. The ISP provide 2 dynamic IPs for me. They only check Network Card Address(MAC address) to allowed my PC to access the Internet.

Some info. as follow, hope it will help.

Code:

ifconfig
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:82 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4532 (4.4 Kb)  TX bytes:4532 (4.4 Kb)[quote]

ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:00:E8:E7:AC:D0
          BROADCAST NOTRAILERS 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)
          Base address:0x9400

Code:

/etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY=""

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

anyone have any idea how can I slove this problem??

Thank in advance~~

BTW, as you can see,I'm a newbie in Linux. Please reply the answer fully and simply.

__J 12-31-2004 12:20 AM

I've never used ASDL so the following might be completely wrong.....

what does the output of lsmod say? Do you have the correct drivers installed? If I remember correctly, pppoe (the kernel driver) was required for DSL connections.

beanerjo 12-31-2004 02:34 AM

1. Just in case you don't get enough feedback, I think /usr/doc/Linux-HOWTOs/DSL-HOWTO might be useful.

2. It is strange that your ifconfig reports no IP address for your eth0. In my case I have
Code:

      inet addr:10.1.1.5  Bcast:10.255.255.255  Mask:255.0.0.0
on the second line.

I've got an ADSL router so the situation may be different from yours. In my case, my linux machine has the IP address 10.1.1.5, and the ADSL router is 10.1.1.1, and that router takes care of everything. Sorry for not being so helpful.

simonchen 12-31-2004 09:20 AM

Thank for reply,_J, beanerjo
I will try those info you guys provieded.

Could that be the Slack didn't recognize my NIC card at all??

Thanks again.

mdarby 12-31-2004 09:49 AM

try
Code:

dhcpcd eth0

CartersAdvocate 12-31-2004 10:17 AM

Try:

Code:

ifconfig eth0 up
It doesn't look like your ethernet card is up with an IP address, etc. That command will attempt to bring up your NIC and get an IP address through DHCP.


All times are GMT -5. The time now is 04:20 AM.