LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 06-25-2005, 11:23 AM   #1
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Rep: Reputation: 15
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.
 
Old 06-25-2005, 02:22 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
as root
Post ifconfig
 
Old 06-25-2005, 02:34 PM   #3
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
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?
 
Old 06-25-2005, 02:38 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
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"

Last edited by comprookie2000; 06-25-2005 at 02:42 PM.
 
Old 06-25-2005, 03:54 PM   #5
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
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?)
 
Old 06-25-2005, 04:05 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
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
 
Old 06-25-2005, 04:23 PM   #7
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
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
 
Old 06-25-2005, 04:29 PM   #8
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
Code:
Device Drivers
        Networking support
                Ethernet (10 or 100Mbit)
                        <no gigabyte on-board ethernet cards???>
thanks.
 
Old 06-26-2005, 02:17 AM   #9
69_rs_ss
Member
 
Registered: Jan 2004
Location: NY, USA
Distribution: Arch, openSUSE 11.1
Posts: 170

Rep: Reputation: 31
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.
 
Old 06-26-2005, 03:30 AM   #10
Genjix
Member
 
Registered: Oct 2003
Location: Pico
Distribution: SUSE 9.1
Posts: 83

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo Network Problem chibiace Linux - Newbie 2 06-22-2005 02:58 AM
gentoo: network unreachable JTR Linux - Distributions 8 02-18-2005 12:41 PM
Gentoo and my Network Card rm6990 Linux - Networking 5 08-27-2004 05:17 AM
gentoo, no network after chroot exodist Linux - Distributions 23 07-22-2004 02:49 AM
Network problem in gentoo DDR extreme Linux - Distributions 7 03-06-2004 11:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration