LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2005, 06:21 PM   #1
aw_wolfe
Member
 
Registered: Apr 2005
Posts: 50

Rep: Reputation: 15
Question unable to use internet with static ip


Network

[Internet]->[Cable Modem DHCP client]->[WAP Router using DHCP server]->[WGP54G]->[computer Fedora 3]

I have been able to get wireless working somewhat.

If I use 'dhclient wlan0' the card get configured and works fine.

However, I need to use a static IP on this particular computer (running webserver and port forwarding from Router). So, if I use 'ifconfig wlan0 192.168.1.2' to set the ip, the computer can not longer resolve any names or ping the dns servers (although works fine locally).

/etc/resolv.conf.....

nameserver 12.207.232.22
nameserver 12.207.234.13

if I use dhclient, it populates the /etc/resolv.conf looks the same with the exception of a comment at the beginning of the file (which says that dhclient added this).

ifconfig

wlan0 Link encap:Ethernet HWaddr 00:0C:41:14:94:90
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:41ff:ff14:9490/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16693 errors:0 dropped:0 overruns:0 frame:0
TX packets:16645 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1209622 (1.1 MiB) TX bytes:3426236 (3.2 MiB)
Memory:e7000000-e7001fff

iwconfig
wlan0 IEEE 802.11g ESSID:"blahblah"
Mode:Managed Frequency:2.437GHz Access Point: 00:0F:66:C4E:67
Bit Rate:18Mb/s Tx-Power:13 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption keyff
Power Managementff
Link Quality:90/100 Signal level:-61 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:8028 Invalid misc:17358 Missed beacon:0

What am I missing?

Thx
Tony
 
Old 04-20-2005, 06:53 PM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Not sure why this should be, but static IP only works for me when the entries I have in resolv.conf are a search entry and a nameserver entry which is the default gateway
eg
Search Belkin
nameserver 192.168.1.1
cheers
 
Old 04-20-2005, 07:02 PM   #3
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
did you set the default gateway?

route add default gw 192.168.1.1


also, you should verify udp port 53 is open to outbound traffic, for name resolution.

Last edited by mcd; 04-20-2005 at 07:04 PM.
 
Old 04-20-2005, 07:05 PM   #4
aw_wolfe
Member
 
Registered: Apr 2005
Posts: 50

Original Poster
Rep: Reputation: 15
thx.

I put the gateway's ip for the nameserver, but not sure where you are coming up with Belkin for the Search parameter?

...not working yet.....
 
Old 04-20-2005, 07:11 PM   #5
aw_wolfe
Member
 
Registered: Apr 2005
Posts: 50

Original Poster
Rep: Reputation: 15
mcd route add

mcd,

thx, adding the gw via the 'route' command seems to have worked.



tony
 
Old 04-20-2005, 07:12 PM   #6
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
awesome. i don't remember if that's permanent, but if it's not you can enter it in the same config file you put your static ip in (for me it's /etc/rc.d/rc.inet1.conf). there should be a line

GATEWAY="192.168.1.1"
 
Old 04-20-2005, 07:40 PM   #7
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Quote:
I put the gateway's ip for the nameserver, but not sure where you are coming up with Belkin for the Search parameter?
Belkin is my router. Sorry, it wasn't really relevant.
 
  


Reply


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
internet router for multiple static ips shizzilla Linux - Networking 3 11-24-2005 12:20 AM
Unable to switch from DHCP to Static IP with Slackware 10.1 dmkh Linux - Networking 9 09-15-2005 04:41 AM
Linux, Internet Radio and Static IP address webwolf70 Linux - Software 5 03-10-2005 02:10 AM
Unable to connect to Internet when using static IP on SuSE 9.2 fyhuang Linux - Networking 2 01-26-2005 02:00 PM
static ip, no internet... dslboy Slackware 4 09-19-2004 12:22 PM


All times are GMT -5. The time now is 08:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration