[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

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?
1 Solution
It would help if you could try configure the card with ifconfig and
tell us what the result is.

for example

ifconfig eth0

the list the result here.

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.
(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 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
rem: some cards are not 'linux friendly' ( see the HW reports)
that's all ( I think ) !
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

randy101899Author Commented:
When I use ifconfig eth (ip address) netmask 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 dev eth0".
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.
randy101899Author Commented:
What are the steps to setup to connect to the net. My ISP is using a dhcp server. What do I do.
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now