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

NMAP

It's been about 15 years since I used NMAP, I forgot how useful the tool is. To find out what services are running on an IP address simply use something like nmap -n -v -p1-10000 x.x.x.x -n tells nmap not to do name resolution (saves about 13 seconds if the IP you're scanning isn't in DNS_ -v verbose -p1-10000 says scan ports 1 to 10,000 (otherwise nmap will only scan the first 1000 ports)