?
Solved

Internet Fails with Static IP on Fedora 7

Posted on 2007-11-27
9
Medium Priority
?
734 Views
Last Modified: 2013-12-06
I have Fedora 7 installed and am not able to get internet access when I configure static IP.  My router is DDWRT and has a lease range of 100-255, so I set my static IP to 192.168.1.99 and netmask to 255.255.255.0 and default gateway to 192.168.1.1.

I can access the internet with system-network-config set to DHCP and Automatically obtain DNS from server, but outbound traffic fails if I switch to static.

# if config
eth0      Link encap:Ethernet  HWaddr 00:18:F3:65:0A:08  
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::218:f3ff:fe65:a08/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8687 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4763228 (4.5 MiB)  TX bytes:1291750 (1.2 MiB)
          Interrupt:22 Base address:0xc000 
 
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:17026 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17026 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:43923989 (41.8 MiB)  TX bytes:43923989 (41.8 MiB)

Open in new window

0
Comment
Question by:daveokst
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 11

Accepted Solution

by:
tvman_od earned 2000 total points
ID: 20363137
1. Try to ping 192.168.1.1
2. Try to ping 216.109.112.135 (av.com)

If it goes through, so the problem with DNS settings. Most likely it has to be 192.168.1.1
0
 
LVL 11

Expert Comment

by:tvman_od
ID: 20363157
BTW it's located in /etc/resolv.conf

nameserver 192.168.1.1
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 20363220
Hi,

Why don't you just look at the configuration you get from DHCP for default gateway, subnet mask, dns server, etc.?

It could be that a firewall / ACL not allowing your static IP address.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:daveokst
ID: 20363602
I'll check these things tomorrow after work... can you describe which configuration you are speaking of?  I took a look at /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-etho0... they look normal.
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 20363621
Hi,

if you run the ifconfig -a info you will see:

allocated ip
subnet mask
default gateway

if you run nslookup you should see the dns server ip
0
 

Author Comment

by:daveokst
ID: 20365997
Ah.. right, Ive done that, but Ill copy the results tonight... the strange part is that dhcp works fine, so dunno how firewall would interfere.  

Some more background, I have had this working before ok.  I recently reinstalled Fedora again due to partition sizing problems, but during the install this time I enabled eth1 during the process.  But now I have it removed.
0
 
LVL 19

Expert Comment

by:alextoft
ID: 20369001
Just to be pedantic, ifconfig does NOT display the default gateway. You use the route command for that :)

As mentioned, if you can ping an IP outside your subnet, it's probably a DNS issue. If you can't, you've probably not configured your default route correctly.
0
 

Author Comment

by:daveokst
ID: 20400804
Hurray...

Ok, well apologies on two counts.  

1) Sorry for taking so long to get back, but my requirements changed.  See I ordered a 1U dual m-itx chassis with barebones that is intended to serve as a redundant router using VRRP.  I decided to go with Vyatta Community edition since it supports VRRP and has a lot of configuration options.  So that showed up in the mail, and I have been learning how to use it the past few days.

2) I should have tested tvman_od's original post.  I was trying to pint www.google.com with no replies.  Once I got Vyatta configured, I could ping my local network and the internet within the CLI, but not from a statically configured server on the network.  Finally it dawned on me that I needed to specify name servers so www.google.com would resolve.  If I had typed 216.109.112.135 listed above, I would have figured it out alot sooner.

All in all it taught me a bit more how this strange thing called a network works!  :)
0
 

Author Closing Comment

by:daveokst
ID: 31411346
Thanks for everyones help!
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 3 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question