[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: forcing a specific IP



YigalB wrote:
Thanks

I followed the instructions and restarted the computer (was it a must?

I


thought Linux doesn't require that).
With ifconfig I saw that the new IP was given - but no internet
connection was established.
What else could I miss?

Yigal

-----Original Message-----

Did you set your gateway in your Linux box?? and what about your DNS??

[<Yigal>] The only thing I did was to set the IP.





you will also need to add the DNS servers to /etc/resolv.conf.


example: (this is for me and should not be copied)
-----
search cox.net
nameserver 68.6.16.25
nameserver 68.6.16.30
nameserver 68.2.16.30

# ppp temp entry

------

The search line is not really needed.

You also need to set the default route to your router address:
If you have a linksys the address is usually 192.168.1.1.
You can tell if this is set with the following:

[mgnoble zaphod mgnoble]$ netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0



The line starting with 0.0.0.0 is the default route.


Mike
--
Usenix member  http://www.usenix.org
Sage member    http://www.sage.org
Registered Linux User #362275	http://counter.li.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]