LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hostname setup for router (https://www.linuxquestions.org/questions/linux-newbie-8/hostname-setup-for-router-175718/)

RoughEdge 04-28-2004 08:07 PM

hostname setup for router
 
Hi,


Well this will be the 2nd time I have given Linux a try (man its complicated).

Anyhows to the point. I am hoping someone can help me with this. I have a zoom X4 router/modem and have installed the USB part of it fine on my windows machine but trying to use the ethernet port on my linux box just isn't happening. I am running Mandrake 9.2 and I open up Drakeconnect and try intalling it from there.

It automatically detects my ethernet card and goes to set it up. It asks me for the ip address and the subnet address (is this of the box or the router?), I got stuck at this but read I should just check the DHCP box, that went okay but then it asks me for a hostname. The standard one it comes up with is localhost.localdomain now I dont know wht else to put in there but when I leave it blank or when I leave localhost.localdomain there it wont connect to the internet.

In my LAN configuration box it says that eth0 is down.

I apologise if this has been asked but any help would be greatly appreciated.


Rough

bardinjw 04-28-2004 09:47 PM

localhost.localdomain should work fine.

does the interface successfully get an ip address assigned from the router?

you can type

# su
# ifconfig

and that will show you your interfaces.

check the connections (link lights?)
check that you have correct type of cable.

if you want to, try and set the settings manually.

the ip address of the router is your gateway

if the router is 192.168.1.1

use the first three numbers for your address

ex 192.168.1.2
and the subnet mask will be
255.255.255.0

then if the interface is stille down

ifconfig eth0 up

and see if you can ping the router

# ping rou.ter.ip.address

|2ainman 04-28-2004 11:55 PM

Also, if you have enabled your router to have a name, then I think that effectively makes it your domain, so your hostname would be <localhost>.<router name>

RoughEdge 04-29-2004 03:15 AM

Thanks for your replies. Sorry it took me so long to reply but I was catching up on my zzzzzzzzzzzzzzzzzzzzzzzz. I have tried the ifconfig and it says

Link encap:local Loopback
inet address:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX Packets:2824 errors:0 dropped:0 overrun:0 frame:0
TX Packets:2824 errors:0 dropped:0 overrun:0 carrier:0
colliions:0 txqueuelen:0
RX bytes 262296 (256.1Kb) TX bytes 262296 (256.1Kb)

I dont know if I have setup a domain name for my router (am i able to find this out on my linux box or just my windose box since that is up and running)

Thanks again folks

RoughEdge 04-29-2004 03:20 AM

Oh and sorry it says network unreachable when I type in the ifconfig eth0 81.155.224.54 (that seems to be my ip).

bardinjw 04-29-2004 10:16 AM

well, the only interface that you have right now is your loopback.
(127.0.0.1 is your computer talking to itself)

the ip address is that of your router, you need a private ip address for your computer.

without more info i'd say go through the card setup again, there doesn't seem to be a module loaded for it. hence no eth0 under ifconfig

try a search snd see if there are any quirks setting up your model nic under mandrake.


All times are GMT -5. The time now is 07:08 AM.