Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
network-config. (eth0; /etc/conf.d/net; /etc/resolv.conf)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Annie Versary
n00b
n00b


Joined: 06 Feb 2005
Posts: 10

PostPosted: Sun Feb 13, 2005 4:51 pm    Post subject: network-config. (eth0; /etc/conf.d/net; /etc/resolv.conf) Reply with quote

Hi there,

after a - at least - surprisingly successful gentoo 2004.3 installation (only stage3 ;-)) I am now facing the following problem:

I am 'wired' to the W3 via router and therefore have to send my legitimation data using a web interface. Doing this works properly. I manage to send my password pp. and can later on establish an internet connection but - that's it. Adressing to any other (real) url than that one of my router (i.e. www.gentoo.org) fails.

ifconfig eth0 leads to the following message:
Code:
eth0      Link encap:Ethernet  HWaddr 00:0C:6E:49:8E:F2
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15423 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11944 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4669727 (4.4 Mb)  TX bytes:1020804 (996.8 Kb)
          Interrupt:10 Base address:0xb000


so the card is recognized and should work.

In /etc/conf.d/net I've tried various settings and combinations of settings (DHCP, static IP's; nameserver settings in /etc/resolv.conf) but nothing worked.

Any hint's welcome.

Thanks in advance!

Annie
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sun Feb 13, 2005 4:54 pm    Post subject: Reply with quote

Check and post:
Code:
route -n
cat /etc/resolv.conf

_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Annie Versary
n00b
n00b


Joined: 06 Feb 2005
Posts: 10

PostPosted: Sun Feb 13, 2005 7:04 pm    Post subject: Reply with quote

@ adaptr:

using the suggested commands under the current 'configuration' eads to this output:
Code:
COMPUTA root # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0


COMPUTA root # cat /etc/resolv.conf
domain HOMENET
nameserver 192.168.1.1
search home


Thanks in advance...

Annie
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Sun Feb 13, 2005 8:01 pm    Post subject: Reply with quote

The outputs of ifconfig and route contradict each other; this is not possible under normal circumstances.
Are you sure they were taken from the same configuration ?

The best thing to do is to reconfigure /etc/conf.d/net and reboot the network.

Does the router use DHCP ?
If so, then it is possibly misconfigured.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2022
Location: Vegas Baby!

PostPosted: Sun Feb 13, 2005 8:12 pm    Post subject: Reply with quote

Your last output for "route -n" shows a default gateway of 192.168.0.1 while eth0 is configured with 192.168.1.2. As far as eth0 is concerned, it has no default gateway due to the fact that your default gateway is on a different network.

Your gateway IP, the last line in /etc/conf.d/net, should be the same exact IP as your LAN interface on your router.

So, your choices are:

1. Change your eth0 IP to 192.168.0.x

OR

2. Change your default gateway to 192.168.1.x and change the router LAN interface to be the same.

In other words, both the computer IP and the gateway IP must be either 192.168.1.x OR 192.168.0.x

NOTE: x = any number between 1 and 254.
Back to top
View user's profile Send private message
Annie Versary
n00b
n00b


Joined: 06 Feb 2005
Posts: 10

PostPosted: Sun Feb 13, 2005 9:01 pm    Post subject: Reply with quote

@ adaptr:

Quote:
Are you sure they were taken from the same configuration ?

Unfortunately they are!

Quote:
The best thing to do is to reconfigure /etc/conf.d/net and reboot the network.

Suppose you're right.

Quote:
Does the router use DHCP ?

Yes, it does.

Quote:
If so, then it is possibly misconfigured.

Maybe, but I think that's not very probable cause it works with every other distribution I've installed (and even with M$).



@ Ateo:

Thanks a lot. I'll try tomorrow and give a feedback!

Annie
Back to top
View user's profile Send private message
Annie Versary
n00b
n00b


Joined: 06 Feb 2005
Posts: 10

PostPosted: Mon Feb 14, 2005 7:54 pm    Post subject: network-config. (eth0; /etc/conf.d/net; ... [solved] Reply with quote

Setting iface_eth0="dhcp" in /etc/conf.d/net (although DHCP is disabled in the routers interface?!?) and disabling the obviously unnecessary default gateway at the end of the same file finally made it.

So: first time in the W3 with Gentoo :-D !

Once again: thanks to adaptr and Ateo!

Annie[/b]
Back to top
View user's profile Send private message
mserms
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 162
Location: Edinburgh

PostPosted: Tue Mar 15, 2005 4:47 pm    Post subject: Setting nameserver in /etc/conf.d/net.eth0 Reply with quote

Am I able to set the nameserver alongside my network settings somehow? Having different network settings is all very well, but if I need to edit /etc/resolv.conf everytime I change networks, it's a little annyoing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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