Network-Debian: Difference between revisions
Jump to navigation
Jump to search
(Created page with "## Adding an IP alias") |
No edit summary |
||
| Line 1: | Line 1: | ||
===Adding an IP alias=== | |||
$ vi /etc/network/interfaces | |||
<pre>#secondary ip address | |||
auto eth0:0 | |||
iface eth0:0 inet static | |||
address 10.10.1.100 | |||
netmask 255.255.255.0</pre>$ ifup eth0:0 | |||
or | |||
$ service networking restart | |||
Latest revision as of 11:48, 15 January 2023
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