Problems with firewall & IP address

Associate
Joined
28 Oct 2002
Posts
1,510
Hi


I connect through a router/firewall (Netgear DG834G) and can have up to 3 PC's connected. I think this means that at any given time my Linux PC might have a different IP???

As i want to be able to rout certain programs through my firewall is there anyway i can tell it a fixed IP address?

Thanks

DIss
 
i'd just manually set the ip to something like 192.168.1.50

the default addreses for dhcp (a router) would start 192.168.1.X (x being 1-255)

if you plug more and more pc's in, they'll be assinged X+1 until there's a space...
so if there's 4 pc's on there, they're likely to be 2,3,4,5 (leaving the 50's free)



you could set your router to always give a certain ip address to the MAC address of that network card, but in one off situations, you might as well just set it yourself..

set DNS and Gateway to 192.168.1.1 (default router address)
 
dont really know my way around linux, but i'm sure google can tell you!

its pretty similar (the ip config part) from what i can remember
 
Be warned that setting static IP leases might screw up if you dual boot - Windows and Linux report the network card's MAC address differently (to some routers, at least).

You'd normally set the IP in /etc/network/interfaces (on Debian anyway):

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# This entry denotes the loopback (127.0.0.1) interface.
auto lo
iface lo inet loopback

# This entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
# address x.x.x.x
# netmask x.x.x.x
# gateway x.x.x.x

'man interfaces' is your friend.
 
Last edited:
Back
Top Bottom