LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2005, 08:33 AM   #1
Fraggle
LQ Newbie
 
Registered: Feb 2005
Location: Ghent - Belgium
Posts: 9

Rep: Reputation: 0
Fedora network problem


Hello,

I have a little network with two computers. The first one is a Windows XP/Fedora Core 4-machine and the second is a Windows 98/Damn Small Linux-machine.

I Can't share my internetconnection when the first machine is running Fedora. The first computers' internetconnection is ok, but with te second computer I get DNS-errors. Pinging 66.102.11.99 works, but google.be fails.
The two computers can ping eachother too

Can someone tell me what I'm doing wrong?

This is the outcome of ifconfig and route for the first computer. Eth1 is my connection to the internet and eth0 connects to the second computer

-------- ifconfig

eth0 Link encap:Ethernet HWaddr 00:08:54:36:7B:87
inet addr:10.1.1.1 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::208:54ff:fe36:7b87/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19882 (19.4 KiB) TX bytes:15165 (14.8 KiB)
Interrupt:11 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:50:BF:97:AB:7E
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fe97:ab7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2623 errors:0 dropped:0 overruns:0 frame:0
TX packets:2789 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1758840 (1.6 MiB) TX bytes:473035 (461.9 KiB)
Interrupt:10 Base address:0xe000

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:2607 errors:0 dropped:0 overruns:0 frame:0
TX packets:2607 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4754422 (4.5 MiB) TX bytes:4754422 (4.5 MiB)

------route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
10.1.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default dsldevice.lan 0.0.0.0 UG 0 0 0 eth1
 
Old 10-30-2005, 09:31 AM   #2
Fraggle
LQ Newbie
 
Registered: Feb 2005
Location: Ghent - Belgium
Posts: 9

Original Poster
Rep: Reputation: 0
Anyone? Please
I have to do this for school, so a little help would be appreciated.
 
Old 10-30-2005, 11:07 PM   #3
kenwih
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
i'm having a similar problem, but haven't been able to figure it out yet. try turning of dhcp(if you have it) and set everything manually. have you checked /etc/resolv.conf?
 
Old 10-31-2005, 08:05 AM   #4
Fraggle
LQ Newbie
 
Registered: Feb 2005
Location: Ghent - Belgium
Posts: 9

Original Poster
Rep: Reputation: 0
dhcp is off, except for the ethernetcard that is connected to my router. That one recieves an ip-adres from the router (always the same: 192.168.1.64)
The second ethernetcard has 10.1.1.1 (manually) and the second computer has 10.1.1.2 (also set manually).

This is my resolv.conf:

; generated by /sbin/dhclient-script
search lan
nameserver 192.168.1.254

Anything missing here? Or too much information? I heard that the 'search lan' could cause problems but removing it doesn't make a difference.


resolv.conf on the second computer is:

nameserver 192.168.1.254


But I really think the problem lies with fedora
 
Old 10-31-2005, 09:28 AM   #5
technick
LQ Newbie
 
Registered: Sep 2005
Location: Atlanta, Ga
Distribution: Dapper Drake
Posts: 10

Rep: Reputation: 0
I think I might be able to help you but I need to know everything you did to set this up? Did you turn on IPv4 fowarding in the kernel? Are you running iptables / netfilter? Do you have another router sitting behind your internet connection? Are you running bind?

Layout everything you did to set it up, and I think you probably missed something obscure.
 
Old 10-31-2005, 11:57 AM   #6
kenwih
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
Quote:
Originally posted by Fraggle
dhcp is off, except for the ethernetcard that is connected to my router. That one recieves an ip-adres from the router (always the same: 192.168.1.64)
The second ethernetcard has 10.1.1.1 (manually) and the second computer has 10.1.1.2 (also set manually).

This is my resolv.conf:

; generated by /sbin/dhclient-script
search lan
nameserver 192.168.1.254

Anything missing here? Or too much information? I heard that the 'search lan' could cause problems but removing it doesn't make a difference.


resolv.conf on the second computer is:

nameserver 192.168.1.254


But I really think the problem lies with fedora
i am pretty sure that those nameservers are your problem. first off, you are supposed to set two of them, an im suprised that dhclient didn't. those are internal ip's in your resolv.conf. i've never used that search lan thing, but that doesn't seem right. try taking out the 'search lan' thing, and putting two real dns ips there. try booting into windows or something to get the ips. or turn on dhcpcd, or something like that.
 
Old 11-01-2005, 08:12 AM   #7
Fraggle
LQ Newbie
 
Registered: Feb 2005
Location: Ghent - Belgium
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the help

I just reinstalled Fedora. Probably not necessary but I want to do it right this time.

The only thing I changed until now is ifcfg-eth0. It now looks like this (configuration taken from Fedoranews.org):

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
NETMASK=255.255.255.0
USERCTL=yes
PEERDNS=no
GATEWAY=eth1
TYPE=Ethernet
IPADDR=10.1.1.1

ifcfg-eth1:

DEVICE=eth1
BOOTPROTO=dhcp
HWADDR=00:50:BF:97:AB:7E
ONBOOT=yes
TYPE=Ethernet

ifconfig:

eth0 Link encap:Ethernet HWaddr 00:08:54:36:7B:87
inet addr:10.1.1.1 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::208:54ff:fe36:7b87/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83 errors:0 dropped:0 overruns:0 frame:0
TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5884 (5.7 KiB) TX bytes:4956 (4.8 KiB)
Interrupt:11 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 00:50:BF:97:AB:7E
inet addr:192.168.1.64 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fe97:ab7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1633 errors:0 dropped:0 overruns:0 frame:0
TX packets:1833 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:868991 (848.6 KiB) TX bytes:285703 (279.0 KiB)
Interrupt:10 Base address:0xe000

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:1400 errors:0 dropped:0 overruns:0 frame:0
TX packets:1400 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1812728 (1.7 MiB) TX bytes:1812728 (1.7 MiB)

route:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
10.1.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default dsldevice.lan 0.0.0.0 UG 0 0 0 eth1

resolv.conf:

; generated by /sbin/dhclient-script
search lan
nameserver 192.168.1.254


This nameserver should be ok. It's my router which forwards the requests.
Changing resolv.conf doesn't help because it gets overwritten by the dhcp every time I restart the network

Oh yeah, I also changed the net.ipv4.ip_forward-setting to 1
 
Old 11-01-2005, 08:22 AM   #8
Fraggle
LQ Newbie
 
Registered: Feb 2005
Location: Ghent - Belgium
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by technick
I think I might be able to help you but I need to know everything you did to set this up? Did you turn on IPv4 fowarding in the kernel? Are you running iptables / netfilter? Do you have another router sitting behind your internet connection? Are you running bind?
Iptables is running. I dont know about bind, but I don't think it is running.
My configuration is an adsl modem/router connected to eth1; eth0 is connected to the second computer.
 
  


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
wireless network card problem for Fedora Core 2 JohnLow Linux - Wireless Networking 2 11-01-2005 08:03 PM
Fedora Core network problem Saxu Linux - Networking 8 05-14-2005 02:34 PM
Fedora 2 - Network ARP Problem?!? D-Devil Linux - Networking 4 08-13-2004 08:59 PM
Fedora Network Problem awheeler Linux - Networking 4 05-09-2004 10:14 AM
Network connection problem Fedora Core 1 - Kernel issues too! skybolt_1 Fedora 3 11-11-2003 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:51 AM.

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