LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-14-2007, 09:53 PM   #1
richardg
LQ Newbie
 
Registered: Jul 2003
Location: Southwest USA
Distribution: FC25
Posts: 23

Rep: Reputation: 0
static ip address on local network sloooow...


Hi,
I have FC6 connected to a home network, a netgear router and a DSL connection. When I let the router use DCHP, connections are fine and fast.

I'm setting up MythTV (and just to learn stuff) and the recommendation is that I have a local, static IP

I use
ADDRESS 192.168.0.201
SUBNET MASK 255.255.255.0
GATEWAY 192.168.0.1

(where 192.168.0.1 is the address of the router, and DCHP on the router assigns addresses beginning at 192.168.0.206. There is also a setting on the router for 'static address', where I put in the above IP address and gateway)

In FC6, there is also a DNS setting, and I am using 192.168.0.1. I tried the DNS the router is using (Earthlink) but this didn't connect.

This setup will access the internet and the LAN, but I'net access is very slow. I haven't made any other changes, and I'm eager to understand what's happening.

Thanks
Richard
 
Old 02-15-2007, 12:23 AM   #2
callmetimmay
LQ Newbie
 
Registered: Feb 2007
Location: Bridgeview, IL
Distribution: Fedora Core 4/6, Ubuntu 5.01
Posts: 9

Rep: Reputation: 0
can you show the output of your setup in...
/etc/sysconfig/network-scripts/ifcfg-eth0
 
Old 02-17-2007, 10:54 PM   #3
richardg
LQ Newbie
 
Registered: Jul 2003
Location: Southwest USA
Distribution: FC25
Posts: 23

Original Poster
Rep: Reputation: 0
the contents of ifcfg-eth0 are

# VIA Technologies, Inc. VT6102 [Rhine-II]
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:16:17:28:A9:0F
ONBOOT=yes
DHCP_HOSTNAME=mythbox
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
IPADDR=192.168.0.201
NETMASK=255.255.255.0
GATEWAY=192.168.0.1


thanks, and sorry for the delay. Still looking to learn more...
 
Old 02-18-2007, 12:02 AM   #4
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: 2 x Arch x86_64 | OpenBSD 6.7 bridge | Fedora 31 | Virtualbox Guest windows 10 pro
Posts: 470

Rep: Reputation: 206Reputation: 206Reputation: 206
Code:
This setup will access the internet and the LAN, but I'net access is very slow. I haven't made any other changes, and I'm eager to understand what's happening.
That sounds like somekind of DNS problems.
You could try these DNS servers. (those are public DNS servers and I'm using those too, if those servers doesnt work for you you must have some configuration error somewhere.

208.67.220.220
208.67.222.222

What do you have in your /etc/resolv.conf ?

it should be: (1-3 nameservers)
Code:
nameserver [ip here]
nameserver [ip here]
nameserver [ip here]
 
Old 02-18-2007, 12:23 AM   #5
callmetimmay
LQ Newbie
 
Registered: Feb 2007
Location: Bridgeview, IL
Distribution: Fedora Core 4/6, Ubuntu 5.01
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by richardg
the contents of ifcfg-eth0 are

# VIA Technologies, Inc. VT6102 [Rhine-II]
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:16:17:28:A9:0F
ONBOOT=yes
DHCP_HOSTNAME=mythbox
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
IPADDR=192.168.0.201
NETMASK=255.255.255.0
GATEWAY=192.168.0.1


thanks, and sorry for the delay. Still looking to learn more...
I see dhcp_hostname and bootproto=none... if we aren't using dhcp, set these options... this is what I use all the time for static settings

Code:
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.201
That really should be all you need to get it working... after restarting networking add your gateway with the route command...

Code:
route add default gw 192.168.0.1

Last edited by callmetimmay; 02-18-2007 at 12:26 AM.
 
Old 02-18-2007, 01:48 AM   #6
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
I'm puzzling over your remark

Quote:
There is also a setting on the router for 'static address', where I put in the above IP address and gateway
You should not have to do anything on the router end. Just pick an IP on your LAN (you picked .201) which is out of the range of the DHCP adresses that your router assigns. In many routers this "static address" setting is there for the rare case that you get an actual static IP on the WAN side from your ISP. This has nothing to do with a static IP on your LAN.

Get on again via DHCP and capture the /etc/resolv.conf file while the dhcp IP is active. Use that info later for the static IP as well.

Good luck,
mlp
 
Old 02-19-2007, 12:45 AM   #7
richardg
LQ Newbie
 
Registered: Jul 2003
Location: Southwest USA
Distribution: FC25
Posts: 23

Original Poster
Rep: Reputation: 0
Thanks for all the replies.

Now I think I understand the static route setting on the router, thanks.

I changed ifcfg-eth0 as suggested (basically BOOTPROTO=static), the network script had already put in the default gateway to 192.168.0.1 (/sbin/route add default gw 192.168.0.1 yields "route exists", and it does show up with the naked "route" command)

The /etc/resolv.conf contains only the one nameserver that I've been connecting to for years.

I figured using the administration->network script in fc6 would allow me to use a static address on my LAN, but it is proving tricky. Where else should I be looking?
 
  


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
Network card needs static IP address reset gcscullion Linux - Networking 19 09-27-2006 05:51 PM
Problem with an external DHCP server giving address on my local department network atl02wrx Linux - Networking 2 07-12-2005 05:50 AM
why does FTP server send local network address in passive mode? edesmarais Linux - Newbie 11 03-16-2005 12:33 AM
Converting DHCP to static local network? Can I mix? renzopeco Linux - Networking 10 12-20-2003 11:30 PM
Finding Local network IP address. zaphanol Linux - Networking 9 07-25-2003 11:41 AM

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

All times are GMT -5. The time now is 06:31 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