Skip to main content

Creating an additonal IP in Debian

It's extremely simple, but there are two things you need to note
1) make sure you have it set in auto
2) The ip details themselves

The file is at /etc/network/interfaces

after editing the file, restart the network /etc/init.d/networking restart

An example of auto..
auto lo eth0 eth0:1 eth0:2 eth0:3 eth1

iface eth0 inet static
        address x.x.x.x
        netmask x.x.x.x
        network x.x.x.x
        broadcast x.x.x.x
        gateway x.x.x.x
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers x.x.x.x
        dns-search XX_name.com.local

iface eth0:1 inet static
        address x.x.x.x
        netmask x.x.x.x

Comments

Popular posts from this blog

Javascript Form Validation

It's real simple. All you need to do is call a javascript function in a html  " onsubmit " in the form tag as a javascript return, like this       <form method="post" action="dosomething.php" onsubmit="return validateForm();"> If the code completes ok, the form is then sent to the page listed in "action" http://www.w3schools.com/js/js_form_validation.asp If the function specified in the onsubmit returns false, then the form is not sent to the page mentioned in action.