LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-06-2009, 12:20 AM   #1
schnappy
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Rep: Reputation: 0
DNS Issues


FIXED - NEW ISSUE. SEE BELOW

Hey,
So I'm trying to use "Network Configuration" to configure my network correctly:
Static IP - 192.168.1.22
subnet mask - 255.255.255.0
DNS - 192.168.1.1
gateway (I don't actually know what a gateway is? Important?) 192.168.1.1

I have the app set to reflect these desired settings. Then, running ifconfig eth0, I get these settings:
IP - 192.168.1.22
mask - 255.255.255.254
and with /cat/resolv.conf I get the correct DNS.

Pinging .1.22 from windows I get no reply.

The reason why I'm back to setting up the network is because every time I reboot it seams to reset all the settings to DHCP...

If I set the system (using the GUI app still) to use DHCP, ifconfig and cat /etc/resolv.conf I get these results:
IP - 192.168.1.21
Mask - 255.255.255.0
DNS - 192.168.1.2

So, seeing this I figured the settings I want aren't actually correct... so I went to the GUI app again and changed my DNS to .1.2. All other settings the same (192.168.1.22, 255.255.255.0, gw 192.168.1.1). ifconfig gives:
IP - 192.168.1.21 (!?!?!?! I said .1.22!)
mask 255.255.255.0

The GUI app says .1.22, but a subnet mask of 192.168.1.1. Something that is also odd is that if I ping .1.21 and .1.22 (from my windows machine on dhcp - 192.168.1.29) I get a reply from both.

I'll keep tinkering, but if someone has a quick fix I'd love to hear it! I've tried using ifconfig to manually set my settings... but it didn't seam to work.

Cheers

Edit: Well I tried going back to NetworkManager (The applet) to do things. I don't like how it's nerfed, but hey... it's working better. It's using DHCP alright. It's assigning 192.168.1.21. I can't change it - all the fields are greyed out... and I can't seam to run it as root! Even with DHCP I'm having these troubles though:
I can ping my windows machine from fedora without issues - both by IP and host.
I can ping fedora (from windows) via IP, but not by host.

Somethings up with DNS. Fedora says it's using the nameserver 192.168.1.2 - windows says the gateway is 192.168.1.2. Windows works fine with DHCP as it is - connects to other windows systems with samba fine. But my inability to get into NM is an issue.

Edit: Tried removing the NM connection - making a new one identical so I could set my own IP and DNS - copying the MAC used in the generated eth0 entry. Got the exact same results - except I got my own IP. When running a ping from fedora to tpg.com.au (my ISP) I get a suspect result... mentioning 192.168.1.1 (my modem/router. .1.2 is my wireless AP/router. I'm not in charge of this so i can't be sure how it is setup).

Last edited by schnappy; 03-06-2009 at 03:47 AM.
 
Old 03-06-2009, 03:47 AM   #2
schnappy
LQ Newbie
 
Registered: Mar 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I laboured for hours faffing about with this... decided to try some different google terms. Found this:

http://webmaxtor.blogspot.com/2009/0...ns-issues.html

Got it all going now, EXCEPT for DNS. If I ping hostnames I can't find them, if I ping IP addresses I find them.
 
Old 03-14-2009, 08:15 PM   #3
liche24
LQ Newbie
 
Registered: Jan 2009
Posts: 29

Rep: Reputation: 15
Not sure how much I can help, but here goes. I turn off NM, I use static IP's for all my pc's and NM is really good for dhcp and wireless I'm told, but not needed. If you decide to go with out it, make sure you turn off the service and disable it, so it won't start at boot. No matter which route you go, NM or network, you will have to check your /etc/hosts and /etc/resolv.conf when you choose one, as they will change on you. I didn't see what you were using for your dns, but these links helped me A LOT:

http://www.redhat.com/magazine/025nov06/features/dns/

This is a two part series from redhat. The only issue I had, was in one part I had to use this ( ), instead of these { }.

And I saw you had a question of gateway being important? Correct?
 
Old 03-18-2009, 05:21 PM   #4
Ake Torngren
LQ Newbie
 
Registered: May 2006
Location: Cape Town, South Africa
Distribution: Fedora 20 x86_64
Posts: 16

Rep: Reputation: 0
Invalid Netmask

My two cents worth (might not be of value or not).

I'm running 2.6.27.5-117.fc10.x86_64 and I found a bug when trying to set up my network connection. The config sometimes puts in an invalid network mask (when using a static IP address). One needs to edit the file
"/etc/sysconfig/networking/devices/ifcfg-eth0"
(or whatever it might be called on your system)
and remove the line "NETMASK=xx.xx.xx.xx" (or to change it to the actual subnet mask for your network, if it is subnetted).
- I intend to report this as a bug to the Fedora Project when/if I get the time ;-) unless it's already been reported.

I can't say whether this fixes your particular problem, though.
(But if it does, please let me know.)

Last edited by Ake Torngren; 03-18-2009 at 05:49 PM. Reason: (Fixing typos)
 
  


Reply

Tags
netmask


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Fedora C2 - Wireless network drivers? Broadcom 802.11g Network Adapter FragTek Linux - Wireless Networking 7 01-22-2010 12:10 AM
Unable to connect to wifi network with network manager. Poss authorization issue openSauce Linux - Networking 14 12-13-2008 10:05 AM
LXer: Network World names Zenoss Clear Choice for Network Management LXer Syndicated Linux News 0 06-20-2007 08:01 AM
Debian 3.1r0a, Realtek RTL-8169 network controller slow on network mvr853 Linux - Networking 0 07-21-2006 08:20 PM
3c905C network card in docking station. Cannot activate network device eth0. pathelms Linux - Networking 4 04-12-2006 02:55 PM


All times are GMT -5. The time now is 11:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration