Andrew Kasza <[EMAIL PROTECTED]> writes: > I have debian 3.0. I have to change the configuration of network (I > mean I have to change IP, netmask and so on). > > I know my IP address, netmask, broadcast. > > Is there a way to figure out the network and gateway number?
The network address is your IP address bitwise-AND your netmask. IP address 18.208.0.22, netmask 255.255.0.0 ==> network 18.208.0.0 IP address 18.101.2.57, netmask 255.255.255.240 ==> network 18.101.2.48 IP address 192.168.7.34, netmask 255.255.255.0 ==> network 192.168.7.0 The gateway address is specific to your network. I'm used to seeing it being the "first" address in the network (e.g., 18.208.0.1), but I've also seen mention of a convention where it's the "last" address (192.168.7.254). In any case, whoever gave you the IP address should be able to tell you what the default gateway should be. > Is it enough to do the following three steps?: > 1step 'ifdown --all' > 2step ' to change the file /etc/network/interfaces' > 3step 'ifup --all' That should be sufficient, yeah. If I were doing it I'd just down/up the one interface I was changing (likely eth0). -- David Maze [EMAIL PROTECTED] http://people.debian.org/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]