LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2001, 05:00 PM   #1
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Rep: Reputation: 15
Exclamation


Hey guys, I just find out this site, seems nice.
Yesterday I installed SuSE linux 7.1 professional and
I can't connect to the internet,(using cable connection)
Do you know any command to activate this connection,
or something else?
thanks in advance.
 
Old 05-27-2001, 06:00 PM   #2
CragStar
Senior Member
 
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
I assume that your cable connection is always on yes?

If so then you may find this document helpful:

http://www.linuxdoc.org/HOWTO/Cable-Modem/index.html

Sorry, I don't like sending people to the Linuxdocs,but I don't know anything about the cable modem itself. If you need anyhelp with understanding it then re-post!
 
Old 05-27-2001, 06:44 PM   #3
abyss
Member
 
Registered: May 2001
Location: New York, USA
Distribution: AIX, Ubuntu
Posts: 113

Rep: Reputation: 16
Stingreen,

We need a little more info before being able to offer suggestions here. Connecting to the internet in Linux involves more than just selecting a single check mark from a list somewhere or running a single command.

These are some key points:

1. Was your NIC card supported/recognized on install?
2. Does the ISP use DHCP or static IP addresses?
3. What options for connecting did you select during setup?
3. Type ifconfig eth0 and post back what it says.

I use a cable modem and would be happy to try to help if you can provide more info.
 
Old 05-28-2001, 12:31 AM   #4
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
Ok guys, just to remind you, I'm pretty newbie to this linux thing.I didn't even know how clear I was.(sorry)
I'll try to answer the questions that you asked first..
---abyss,
1.Linux succesfully recognized my 3COM ethernet card.
2.My ISP which is comcast, leases 1 week IP's, it's not static, I always use DHCP.However, my ip never got changed cause I didn't exceed the 1 week lease time at all.
3.I put a check to the lan/cable connection box while installing, nothing else..
And as you said I typed ifconfig eth0 it says;
<<--->>
HWaddr:00:01:03:22:F7:9B
Link encap: ethernet
BROADCAST MTU:1500
Metric:1
Rx packets:70(I pinged myself couple of times)
Tx packets:32 errors:0, dropped:0 etc.. "0"
Interrupt:3
Base address: 0Xdc00
<<--->>
One more thing, In the office I can connect to the internet but at home I can't,(home cable;comcast)
As you know in order to connect to the internet in windows you have to enter the computers name part a type of pass given bu your iss, something like "cc54****-a" if you don't enter it you can not connect to the net, I didn't enter something like that in linux,I don't know where to put it.
Thanks for the help..
 
Old 05-28-2001, 06:34 AM   #5
wouter
LQ Newbie
 
Registered: May 2001
Posts: 6

Rep: Reputation: 0
Cool

I've e had the same problem, and solved it this way: Try setting your computer's hostname to CC****-a or whatever it is for you. In mandrake 8.0 it is stored in /etc/sysconfig/network, but i don know if it is in the same location for suse. (another possibility: /etc/rc.d/rc.inet1)
 
Old 05-28-2001, 06:46 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
(Say for this example IP address is 203.2.218.29, so the FQDN or fully qualified domain name is insm05.abc.net.au)

Ok. theres basically 3 parts. I dont know any admin tools on Suse, if u dont as well ull have to edit manually.
When I switched from Windoze to linux the only parts I had to enter where the name of my box, IP address, device, gateway and DNS servers. Up in 5mins in comparison to the +20mins under Windoze...

1. open up /etc/hosts and add a line containing:
(ure IP)(tab)(FQDN)(tab)(host part of FQDN)
so it looks like, from the example:
203.2.218.29 insm05.abc.net.au insm05
save, close.

2. Open up /etc/resolv.conf and enter the 2 DNS addresses ure ISP gave u. save, close.

3. Open up /etc/sysconfig/network create/change the next lines (ill be using the example):
NETWORKING=yes
HOSTNAME="insm05"
DOMAINNAME=
GATEWAYDEV=eth0
GATEWAY=203.2.218.1

save, close

4. Open up /etc/sysconfig/network/ifcfg-eth0 create/change the next lines (ill be using the example):
DEVICE="eth0"
IPADDR="203.2.218.29"
NETMASK="225.225.254.0"
ONBOOT="yes"
BOOTPROTO="dhcp"

save, close, reboot.

Now try & run dhcpcd with the debug option (-d):
"/sbin/dhcpcd -d"
and itll put its connection info in the logs.

Quote:
(..)However, my ip never got changed cause I didn't exceed the 1 week lease time at all.
No, its a setting in the DHCP server that sets lease time.
Some server allow u a bit of tweakage but I dont think DHCP addresses change that much for administrative reasons. The only time it screws up is when u change ethernet card, cuz IP addresses are leased to a MAC address that is different for *each* card.

HTH.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
When i connect on the internet I want root not to access the internet !! skouket Linux - Security 12 07-10-2005 12:17 PM
Messed up my Internet Settings (can't connect to the internet) Almazick Linux - Wireless Networking 0 09-07-2004 06:23 PM
can't connect to the internet:linux dont read my internet address droplsh Linux - General 1 02-29-2004 07:32 PM
Can connect broadband but can't connect Internet satimis Linux - Networking 4 01-31-2004 07:58 PM
Can't connect to Internet Galphar Linux - Newbie 13 08-24-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:36 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