Network-Debian

From Mike's wiki
Revision as of 11:48, 15 January 2023 by Mike (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adding an IP alias

$ vi /etc/network/interfaces

#secondary ip address
auto eth0:0
iface eth0:0 inet static
address 10.10.1.100
netmask 255.255.255.0

$ ifup eth0:0

or

$ service networking restart