Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to configure network ifconfig works route fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
akshay
n00b
n00b


Joined: 16 May 2004
Posts: 4

PostPosted: Sat May 22, 2004 8:22 am    Post subject: unable to configure network ifconfig works route fails Reply with quote

Hi,

I am having a strange problem with configuring the network, before I can get the installation going. I have the ipaddress, netmask, gateway address. During bootup eth0 is detected. I use ifconfig to setup the parameters as shown in the handbook :
ifconfig eth0 192.168.14.55 broadcast 192.168.14.255 netmask 255.255.255.0
This goes smoothly, but when I give the route command :
route add default gw 192.168.0.100

If gives the following error message for that :
"SIOCADDRT: network is unreachable"

I cannot ping any machine except my own. Running "ifconfig eth0" shows eth0 is UP.

Is there something I am missing?

lsmod shows the forcedeath module as loaded (which I think is the module for my lan card, which is an nvidia nforce2)

I am using the 2004.0 live cd.

Any help will be appretiated,
:)
Akshay.
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Sat May 22, 2004 8:25 am    Post subject: Reply with quote

I thought your gateway needs to be on your subnet. Are you sure about the netmask/broadcast?
Back to top
View user's profile Send private message
akshay
n00b
n00b


Joined: 16 May 2004
Posts: 4

PostPosted: Sat May 22, 2004 10:19 am    Post subject: Reply with quote

Geez ! I never thought of that. The ISP told me the netmask and I assumed it was correct! grrr! feel like an idiot..
I gotta rush and try it out. Thanks a ton. I shall come back and confirm if that was the problem.

:)


I see light at the end of the tunnel .....
Back to top
View user's profile Send private message
akshay
n00b
n00b


Joined: 16 May 2004
Posts: 4

PostPosted: Sat May 22, 2004 10:38 am    Post subject: Reply with quote

That fixed it. Thanks a ton.

Im off to install gentoo.


:D
Back to top
View user's profile Send private message
phreaqy
n00b
n00b


Joined: 03 May 2004
Posts: 16
Location: Canada

PostPosted: Thu Jun 03, 2004 12:11 am    Post subject: Reply with quote

Hey I am having the same problem with route. Unfortanately I am not up on the lingo of networking. So I don't understand how the problem was fixed. So here is my problem

On my Gentoo Box,
I have my eth1 connected to the internet using dhcp
I have my eth0 connected to my other computer through a crossover cable. Eth0 is a dhcp server, which is working.

My other computer is running off the gentoo livecd (its an old computer) and it is recieving its IP and the such (from dhcp server, eth0). I can ping from my other computer to my gentoo box. BUT I cannot ping from my gentoo box to my other computer. When I do a
$ route add default gw x.x.x.x
on my other computer i get a "network unavailable"

On my gentoo box I have firestarter.


What I would like to do is do file sharing between the computers using NFS. I would also like to setup up NAT on my gentoo box so that I can surf the internet on my "other" computer. Here is the info from my gentoo box

$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:95:30:0B:91
inet addr:192.168.1.0 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::240:95ff:fe30:b91/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1846 errors:0 dropped:0 overruns:0 frame:0
TX packets:2413 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:182674 (178.3 Kb) TX bytes:146348 (142.9 Kb)
Interrupt:10 Base address:0xdc00

eth1 Link encap:Ethernet HWaddr 00:50:BF:91:B4:18
inet addr:24.222.209.107 Bcast:24.222.209.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fe91:b418/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:154344 errors:0 dropped:0 overruns:0 frame:0
TX packets:4690 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12962372 (12.3 Mb) TX bytes:691948 (675.7 Kb)
Interrupt:11 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:33254 errors:0 dropped:0 overruns:0 frame:0
TX packets:33254 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3954756 (3.7 Mb) TX bytes:3954756 (3.7 Mb)

$ route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
24.222.209.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost 255.0.0.0 UG 0 0 0 lo
default u209n1.eastlink 0.0.0.0 UG 0 0 0 eth1

/etc/resolv.conf
nameserver 24.222.0.91
nameserver 24.222.0.75


On my "other" computer i have /etc/resolv.conf the same as my gentoo box, and it is getting the info from the dhcp server


I have searched and i don't know what else to do.
_________________
AMD TBIRD 1.33
256 mb RAM
kenel 2.6.7-love2
Soundblaster 16 PCI
Nvidia GeForce 3 Ti
Back to top
View user's profile Send private message
akshay
n00b
n00b


Joined: 16 May 2004
Posts: 4

PostPosted: Thu Jun 03, 2004 6:33 pm    Post subject: Reply with quote

Hi,

I think that your eth0 has an ip address od 192.168.1.0. If I remember correctly numbeers ending in 0 and 255 are reserved for the network and broadcast addresses. Maybe you can give eth0 an address like 192.168.1.13 (or any other number instead of 13) using

ifconfig eth0 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255

Also from what I understood of what mseigneurin had mentioned, I think the gateway needs to be on the same subnet, which means that your gateway should also have an address of the form 192.168.1.14 (or some other number instead of 14). I suppose gateways need to have more than one IP address on for the network that they are on (which should be your network of 192.168.1.0 ) and one external network (24.222.209.10 or something, again you have a number ending in zero there).

I am not sure about what I have said above, its only what I understand of things. I hope im not way off the mark :)

Hope that helps.
Akshay.
Back to top
View user's profile Send private message
anderiv
Tux's lil' helper
Tux's lil' helper


Joined: 29 Mar 2004
Posts: 79

PostPosted: Thu Jun 03, 2004 6:37 pm    Post subject: Reply with quote

akshay wrote:
If I remember correctly numbeers ending in 0 and 255 are reserved for the network and broadcast addresses.

Yep - that's correct!
Back to top
View user's profile Send private message
phreaqy
n00b
n00b


Joined: 03 May 2004
Posts: 16
Location: Canada

PostPosted: Fri Jun 04, 2004 2:10 am    Post subject: Reply with quote

OH MY GOD, YOU GUYS ARE GENIUSES. IT WORKED, I CAN'T BELIEVE THAT IT WORKED. WOW, I WAS SURFING THE NET ON THE OTHER COMPUTER
THANK YOU SOOOOOOO MUCH
:lol:
_________________
AMD TBIRD 1.33
256 mb RAM
kenel 2.6.7-love2
Soundblaster 16 PCI
Nvidia GeForce 3 Ti
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum