Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th September 2006, 02:01 PM
rvdsabu4life Offline
Registered User
 
Join Date: Sep 2006
Posts: 3
Need help configuring WLAN and ETH0 with DNS

I am connecting to a college network with Fedora Core 5. I have used many different flavors of Linux in the past but hardly consider myself an expert. I know enough to get by and now in my free time am trying to make the switch over to Fedora on my laptop.

The laptop is custom built by me. I don't really think the specs matter because this is not a hardware problem, but I'll give them if necessary.

I live a mile away from campus in the dorms. There is no wireless internet in the dorms, only wired. For privacy sake I will not show the IP addresses. In the dorms it goes like this:

xxx.xxx.129.xxx
255.255.0.0
xxx.xxx.128.1

DNS - xxx.xxx.128.2

We do not connect to a domain. All the provided numbers are given via DCHP after we login one time to the network via the gateways IP address. All it is is a DNS redirector because you can load any IP address of any website you want and go, but type google.com and you back to the campus login. The DNS and gateway in the dorms is different then the wireless DNS and gateway which is important to know for later. I have had no issues with Fedora and wired networking.

My problem comes when I take my laptop to campus and connect to the wireless network. After many hours of searching, posting, and banging my head, I gave up on trying to install the Intel 3245ABG wireless card in the laptop and just used ndiswrapper. As of right now, these are commands I go through to connect to the network once logged on:

modprobe ndiswrapper

iwlist scan wlan0

iwconfig wlan0 essid ESSID

iwconfig wlan0 mode Managed

dhclient wlan0

--
ifconfig eth0 xxx.xxx.xxx.xxx netmask 255.255.248.0 up

route add default gw xxx.xxx.128.1

Then I manually gedit the /etc/resolv.conf to add the DNS numbers for the wireless.

I also must mention that because our network login does not support Linux, I must statically assign the IP and gateway in case you didn't already figure that out.

After these steps, everything is great and works like a charm. The problem arouses when I get back tot he dorm. As soon as I boot Fedora it hangs on MANY services starting for many minutes. Especially sendmail and sm-client. All-in-all it take a good 15 minutes to start up when going from wireless to wired and vice-versa. I googled it and found that when it stalls at those services it means that your DNS configuration is messed up. So before logging into gnome, I need to open a terminal and change the DNS numbers around in gedit. After I do that then everything works. Then when I go back to the wireless, I need to wait 15 minutes to start up then open terminal and repeat the process and commands.

To summarize:
2 different gateways. 2 Different DNS numbers. How can I change my configuration so my boot time isn't so slow and preferrably so I don't have to change DNS numbers everytime?
Reply With Quote
  #2  
Old 7th September 2006, 03:12 PM
David Becker Offline
Registered User
 
Join Date: Feb 2006
Posts: 780
Do your dorms run a DHCP server? If so then configure eth0 to obtain it's address automatically (via DHCP). Otherwise configure it's IP address and DNS settings. Use 'system-config-network' to configure eth0.

When you go back to the dorm, disable wireless (ifdown wlan0) and enable wired (ifup eth0) and vice versa. Let the dhclient manage /etc/resolv.conf for you.

David
Reply With Quote
  #3  
Old 7th September 2006, 04:30 PM
rvdsabu4life Offline
Registered User
 
Join Date: Sep 2006
Posts: 3
Hey thanks! I am going to try this when I get back today.
Reply With Quote
  #4  
Old 7th September 2006, 05:06 PM
rvdsabu4life Offline
Registered User
 
Join Date: Sep 2006
Posts: 3
It worked like a charm! Thanks!
Reply With Quote
Reply

Tags
configuring, dns, eth0, wlan

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem configuring eth0 LooNy2006 Servers & Networking 1 15th September 2006 01:01 PM
configuring wlan sleetm Servers & Networking 2 29th March 2006 12:20 AM
wireless monitor mode... wlan not eth0 Noobe_r6quick Servers & Networking 1 29th July 2005 05:25 PM
Problem configuring eth0 gkramer Servers & Networking 6 6th November 2004 02:44 PM


Current GMT-time: 15:16 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat