Connecting to the outside world

I cant connect to the outside world with linux. I used
ifconfig, I used netcfg. IT will not create an interface for my ethernet card(etherlink III). I checked everything I can think of: my kernel, my ethernet card. The problem is when I use route it tells me "host route doesn't make sense." I checked the interfaces that are there after I used ifconfig with netstat -i it shows only the loopback. Is there something I am missing?
randy101899Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rolfcCommented:
It would help if you could try configure the card with ifconfig and
tell us what the result is.

for example

ifconfig eth0 192.168.150.1

the list the result here.

wbr
rolfc
0
foxrCommented:
You must assign your ethernet card (eth0:) an ip address.  This could be done through DHCP should you have a DHCP server on you network or by hardcoding a static map.  When you set up your card through netcfg, make sure to assign you nameserver settings (DNS).  stop/restart the interface and you should be off to the races.  Hope this helps.
0
marcelvhCommented:
(mostly for slackware installation)
0) test if your card is not in conflict whith some other HW
if not you can go to 1) else you must resolve this conflict (bios setup, hw settings, ...)
a good way to see if your card can be recognized is to boot with the bootdisk net.i from slackware
1) when linux boot, detect if your card is recognized.
If not edit /etc/rc.d/modules.rc or recompile and reinstall a new kernel/module that recognize your card
2) when linux can give an ethx (x=0 for the first card) to your card, you must to attribute to this ethx an IP , a route and gw to quit your segment; for this use ifconfig and route. You need an address , a network address and a mask and a GW address if you want to quit your segment.
a good example to use ifconfig and route is give in the /etc/rc.d/inet1.rc.
If you are connect to internet whithout 'artifice' this address must be valid ( ask to your domain administrator).
If you create you standalone intranet a good way is to take a test address like 172.16.x.x for a class B .
for the tests:
'ifconfig' lets you see the configuration of your ethx
'route' lets you see the way to go out your machine
'netstat -n' the same plus some other information
'ping <IP>' if can reach an other machine
(ping 127.0.0.1 if you can get your self)
'traceroute <IP>' give you the way your paquets to go to <IP>
3) to use symbolic address you must configure /etc/hosts, or get services from a DNS
4) good lectures from LDP
system administration guide (sag)
network administration guide (nag)
the relieved HOWTO's
man
....
rem: some cards are not 'linux friendly' ( see the HW reports)
that's all ( I think ) !
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

randy101899Author Commented:
When I use ifconfig eth (ip address) netmask 255.255.255.0. It comes back and tells me "resource is temperaly unavailable." But if if type in "ifconfig eth0" it shows the ip address and the netmask. Yet when I try to add a host route to my isp's server it says host route does not make sense. The command that I used is "route add -host (ip address) netmask 255.255.255.0 dev eth0".
0
marcelvhCommented:
to connect on internet trough an ISP is an other problem !
1) dynamic address ( the general case):
you must use a DHCP service. In this case, when connecting on your ISP, DHCP try to receive the address for your session an actualize your card and the route. You must remove your manualy configuration before. The add can change from session to session - attribution " a la volee "
2) static address (not frequent, a solution more expansive):
you must install the right configuration - given by your ISP - IP add, network add and mask ( + dns, ...)
3) for installing a DHCP
you can find in SUNSITE distribution for this service ( like dhcpcd ...)
Some distributions (like slackware 7.00, Mandrake, ...)include now the automatic installation of DHCP in the net configuration menu.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
randy101899Author Commented:
What are the steps to setup to connect to the net. My ISP is using a dhcp server. What do I do.
0
marcelvhCommented:
you need to install a DHCP client
you can find in SUNSITE, packages for this service ( like dhcpcd ...)and a nice howto that describe the all configuration.
An other way is to reinstall your linuxbox with a distribution that do that in your place.
A nice distribution is the new slackware 7.00 in wich you have in the "net configuration menu" an option for automaticaly installing the DHCP client . An other reason to install this new distribution is the glibc2 support ( many precompilled package are now glibc2 linked - the rpm for redhat 6.00, StarOffice , ... ) I did that and i don't regret !
You can also install the newst REDHAT, Mandrake, .... I prefer Slackware because he is more UNIX ( manualy configurable ) - this is not userfriendly ( like windows ) but you have access to all when something go wrong.
If you have more problems I should look at my own configuration
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.