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

RE: forcing a specific IP [RESOLVED]



>>>>>>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!
[<Yigal>] Thanks. The problem is solved. In order to move from auto-IP
to dynamic I needed to do 3 steps:
1- enter the requested IP
2- write the sub mask 255.255.255.0
3- take the DNS from /etc/resolv.conf - in my case it's 192.168.2.1

Now I wonder why couldn't I just write the IP and let the Fedora do the
rest - after all there is a simple algorithm to follow.  


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