forcing a specific IP

Robert kerplop at sbcglobal.net
Sat Oct 9 19:40:08 UTC 2004


YigalB wrote:
>>>>>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?
>>>>>
>>>>
>>>>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.
>>>
>>
>>1) you have to set the Gateway on the PC's on your network....
>>2) you have to start NAT (Network Address Translation) on the PC that
> 
> is
> 
>>the gateway to the Internet
>>3) BUT WHAT IS MORE IMPORTANT: YOU HAVE TO START A FIREWALL (IPTABLES)
>>ON THE GATEWAY BOX
>>
>>I suggest to have a look at www.netfilter.org and then come back here.
>>
>>You will be on the Internet in a really short time....
> 
> 
> [<Yigal>] I use router (edimax) - and it general it works fine. I set
> the pool to be between 192.168.2.110 till 200 (for the PCs that take the
> IP automatically).
> For the Linux machine - I want to have specific IP (e.g. 192.168.2.100).
> Currently the Linux works fine with auto-IP.
> I know how to change it to the needed IP(192.168.2.100) - what should I
> put in mask? 255.255.255.0 ? and what about the DNS field ? 
> 
> 

Netmask will be 255.255.255.0, broadcast will be 192.168.1.255, GATEWAY 
will be the router's LAN-side IP (probably 192.168.1.1) and the DNS 
Server returned by "host zahav.net.il" is 192.117.172.16

If you have problems, be sure that your choice of static IP is not 
somehow interfereing with the router's DHCP pool.  (Linksys has rules 
that I've never really understood. YMMV)

Also, I strongly suspect that you would have been happily surfing 
several hours ago, had you given all the information above in your 
original post.

Good luck!


-- 
Current Time is Sat Oct 9 14:17:20 CDT 2004
Kerry Bury begins in 2050960 seconds...
Go, Dubya, Go!





More information about the fedora-list mailing list