To add new IP addresses to network interface in FreeBSD you need to manually edit /etc/sysconfig file. Just add one line per IP. Format of the file is self-explanatory. To see the current network interface configuration use: ifconfig -a. To add IPs in LINUX you need to create a new file per each IP in /etc/sysconfig/network-scripts directory. You will find in this directory file with a name 'ifcfg-eth0' or very similar. Open it in editor, you will easily recognize the first ip of your computer and figure out file format. Now copy this file: $cp ifcfg-eth0 ifcfg-eth0:0 Now edit a new file: you need to change original ip to a second one. Save edited file. To add a third ip: $cp ifcfg-eth0 ifcfg-eth0:1 Again edit it to change the first ip to a third one. Now you have three similar files in directory /etc/sysconfig/network-scripts: ifcfg-eth0, ifcfg-eth0:0, ifcfg-eth0:1. Please notice filename format: it is mandatory. Each of these files will provide IP information for a network initializing script. To activate new IPs just reboot a computer. You could activate new IPs by running network initialization script. In LINUX: /etc/rc.d/init.d/network -reload In Windows NT you add IPs in Settings > Control Panel > Network >Protocols > TCP/IP > Properties > Advanced
|