LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Gentoo - no network! (https://www.linuxquestions.org/questions/linux-distributions-5/gentoo-no-network-337060/)

Genjix 06-25-2005 11:23 AM

Gentoo - no network!
 
here is the routing table for the computer I'm currently on

Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    0      0        0 eth0
link-local      *              255.255.0.0    U    0      0        0 eth0
loopback        *              255.0.0.0      U    0      0        0 lo
default        192.168.1.1 0.0.0.0        UG    0      0        0 eth0

I can ping 192.168.1.2 (myself) and localhost and I can ping 192.168.1.1 and perform DNS name lookups and ping external ip addresses.

On my fresh gentoo install, my routing table is exactly the same without the link-local entry.
Code:

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
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        192.168.1.1 0.0.0.0        UG    0      0        0 eth0

except now I can only ping 192.168.1.2 (myself) and localhost, NOT 192.168.1.1 or anything else for that matter.

I know its not the ethernet card (on board gigabyte) because the previous SUSE 9.3 install worked perfectly fine.

thanks for your time.

comprookie2000 06-25-2005 02:22 PM

as root
Post ifconfig

Genjix 06-25-2005 02:34 PM

eth0
link encap:Ethernet HWaddr (hardware address here)
inet addr: 192.168.1.2 Bcast: 192.168.1.255 Mask: 255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric: 1
RX packets: 0 ...(all 0's)
TX packets: 6 ...(all 0's)
collisions: 0 txqueuelen: 1000
RX bytes....
Interrupt....

lo .....

seems to be fine to me. could it be a kernel option? (I still have the config if needed) wouldn't it error if that was the case?

comprookie2000 06-25-2005 02:38 PM

192.168.1.1 is that a router?post /etc/resolv.conf
also while we are at it post /etc/conf.d/net this part;
# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.1.96 broadcast 192.168.1.255 netmask 255.255.255.0"
iface_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

gateway="eth0/192.168.1.254"

Genjix 06-25-2005 03:54 PM

for /etc/resolv.conf
Code:

domain network
nameserver 192.168.1.2

and as for /etc/conf.d/net
Code:

iface_eth0="192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0"
gateway="eth0/192.168.1.1"

there are two computers (which I refer to by ip's). 192.168.1.1 has internet access and ip forwarding. 192.168.1.2 wants to connect to the internet through 192.168.1.1 using eth0.
192.168.1.2 cannot even ping 192.168.1.1.

thanks for your time (this is wearing me thin). could this be a kernel problem (could I have missed a kernel option?)

comprookie2000 06-25-2005 04:05 PM

Did you do this;
http://abbottdavid.no-ip.info/fluxbox/index8.html
also a good guide here;
http://gentoo-wiki.com/HOWTO_setup_a...basic_firewall
And for the kernel;
http://www.gentoo.org/doc/en/home-router-howto.xml
Good Luck and if you have any questions ask away as I have been getting this to work lately and it is somewhat fresh on this burnt brain

Genjix 06-25-2005 04:23 PM

thank you but that doesn't help :'( as all those assume I want to make a gentoo router

[Internet] <-------> [linux box with ip forwarding] <-------> [newly installed gentoo]

when I was running SUSE on that gentoo box, everything worked. When I ran net-setup on the livecd everything works. but when I try to configure the network as per the configurations above, it doesn't work.

I am using an on-board gigabyte network card, but I didn't see a kernel driver for it.

Thank you again, I would love to get gentoo working and move away from a commercial distro :(

Genjix 06-25-2005 04:29 PM

Code:

Device Drivers
        Networking support
                Ethernet (10 or 100Mbit)
                        <no gigabyte on-board ethernet cards???>

thanks.

69_rs_ss 06-26-2005 02:17 AM

One problem I am noticing is that your /etc/resolv.conf file is pointing to your box as the DNS server instead of your ISP's DNS server.

Genjix 06-26-2005 03:30 AM

Quote:

Originally posted by 69_rs_ss
One problem I am noticing is that your /etc/resolv.conf file is pointing to your box as the DNS server instead of your ISP's DNS server.
yeah, well 192.168.1.2 gets 192.168.1.1 to resolve the ip addresses for it. As I said these settings worked withe previous SUSE setup and with the gentoo livecd.


All times are GMT -5. The time now is 09:13 PM.