![]() |
Static ip prob in slackware 12.2
Hi!! When im gonna change the /etc/rc.d/inet1.conf file in to this
Code:
# Config information for eth0: |
You probably need to add a nameserver to /etc/resolv.conf. dhcpd normally does this for you. If you're using static addresses you'll have to put your own in.
|
Quote:
|
SkinnerC can you be more specific ? I have put and in the resolve file the name servers but nothing happens...Thanx..
|
An easy way to do this is to run netconfig as root.
You may then have to restart networking to get it working. |
Can you show us the output of:
cat /etc/resolv.conf /sbin/ifconfig /sbin/route -n Please wrap the output in "code tags" to make it more readable when you post it on LQ. |
Code:
# Generated by dhcpcd for interface eth0Code:
eth0 Link encap:Ethernet HWaddr 00:13:d4:c6:4f:04Code:
Kernel IP routing tableQuote:
|
Where did the nameserver info come from? Is that the ISP nameservers? If so then try to replace them with your router address and see if that clears it.
The router is connecting as DHCP to the ISP but has to have the DHCP server for your internal network turned off. |
Yes these nameservers are from my isp...i ll change it in a while cuz now i have lesson :p ;) Thanx a lot :)
|
You've given the host .101 in your inet1.conf file above, but the interface has an address of .104.
Have you left the old dhcpcd daemon running? If so you might want to kill it and then try running /etc/rc.d/rc.inet1 restart. I'd be inclined to reboot myself just to make sure everything has been cleared out. Not strictly necessary, but at least you know its all good from that point on. Next step would be to check you can ping your gateway and nameservers ping -c1 192.168.1.1 ping -c1 194.219.227.1 ping -c1 193.92.150.3 and if they work ok, check dns resolution is working with something like host -r www.google.com ... but before you do those, It'd be an idea to get that inconsisten IP address on eth0 sorted first. |
So...in /etc/resolv.conf i add my router's ip
Quote:
Quote:
Quote:
|
This is an excerpt from /etc/rc.d/rc.inet1.conf
Code:
# /etc/rc.d/rc.inet1.conf |
what about:
Code:
# ifconfig -a |
| All times are GMT -5. The time now is 03:32 AM. |