lynksys router.... static ip?
Hi all. I have a lynksys router connecting my little network to a DSL line. I have been trying to set up static ip addresses within my network, but i can't get it to work. I set up my linux box w/ an ip of 192.168.1.101 , netmask of 255.255.255.0 and gateway of 192.168.1.1 . I don't understand why this is all not working... can somebody help?
|
is there another computer at 192.168.1.101 ? check this first.
what exactly did you do that didn't work? from the command line, as root: ifconfig <network device> 192.168.1.101 netmask 255.255.255.0 route add default gw 192.168.1.1 that *should* do it if you're using LFS you should know where the scripts are. it might be a problem of networking not being started at bootup, or an error in the ifcfg-eth0 or whatever interface it is. |
Thanks for getting back to me. Yes, i am using lfs. The only machine with that ip is my other lfs system (which is on the same computer... uses dhcp). I'm sure it's something simple that i'm not doing. I was wondering if you had to specify the dns servers? if so, how would i do that? here's some of my files:
/etc/sysconfig/network: HOSTNAME=lfs2 GATEWAY=192.168.1.1 GATEWAY_IF=eth0 /etc/sysconfig/network-devices/ifconfig.eth0: ONBOOT=yes IP=192.168.1.101 NETMASK=255.255.255.0 BROADCAST=192.168.1.255 and my bootup script is working fine. Any other suggestions? ooh yeah... I can connect to the network i.e. ping the router and what not, but i can't get outside, "unknown host"- thats why i'm thinking dns? |
You forgot to add your DNS entries to your /etc/resolv.conf file most likely.
|
Quote:
one of two things that haven't been mentioned either your default route isn't working, which it should. type netstat -nr or the linksys router isn't routing IPs it didn't had out, there should be some configuration option somewhere in that linksys regarding that. I could have sworn I saw that before.. I doubt the resolv.conf issue, it could be, if you have ever grabbed a dhcp lease it *should* update the resolv.conf and it will stay that way until you change it. Either way it is a good thing to check |
thanks tricky kid. I copied /etc/resolv.conf from my working lfs system, and it works now! (i'm writing this from lynx on my new system). Thanks a lot.
|
SInce the Linksys cable router hands out 50 dhcp addresses starting at 192.168.1.100, it might be a good idea to use static addresses either below 192.168.1.100 or above 192.168.1.49. This way you insure that you won't get a duplicate address.
A note. On versions of the bios below 1.4.27. the Linksys had a bug that would cause it to duplicate a DHCP address. For anyone using a Linksys, upgrade its bios to 1.4.27 or later. -mk |
Thanks Mike, good suggestion.
p.s.- I dig the motto |
All times are GMT -5. The time now is 03:00 AM. |