View previous topic :: View next topic |
Author |
Message |
Annie Versary n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Feb 2005 Posts: 10
|
Posted: Sun Feb 13, 2005 4:51 pm Post subject: network-config. (eth0; /etc/conf.d/net; /etc/resolv.conf) |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Feb 13, 2005 4:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Annie Versary n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Feb 2005 Posts: 10
|
Posted: Sun Feb 13, 2005 7:04 pm Post subject: |
|
|
@ 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 |
|
![](templates/gentoo/images/spacer.gif) |
adaptr Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/17218567054377b9b6104ea.jpg)
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Sun Feb 13, 2005 8:01 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Ateo Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 02 Jun 2003 Posts: 2022 Location: Vegas Baby!
|
Posted: Sun Feb 13, 2005 8:12 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Annie Versary n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Feb 2005 Posts: 10
|
Posted: Sun Feb 13, 2005 9:01 pm Post subject: |
|
|
@ 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 |
|
![](templates/gentoo/images/spacer.gif) |
Annie Versary n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Feb 2005 Posts: 10
|
Posted: Mon Feb 14, 2005 7:54 pm Post subject: network-config. (eth0; /etc/conf.d/net; ... [solved] |
|
|
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 !
Once again: thanks to adaptr and Ateo!
Annie[/b] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mserms Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/524189919421cf93cbd221.gif)
Joined: 13 Jan 2005 Posts: 162 Location: Edinburgh
|
Posted: Tue Mar 15, 2005 4:47 pm Post subject: Setting nameserver in /etc/conf.d/net.eth0 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|