Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to add IP addresses ?

ip addresses
0
Posted

How to add IP addresses ?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123