Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ip [2019/04/09 18:41] – [Setup with VLAN tag] admin | ip [2019/10/24 07:12] (current) – [Setup a secondary IP on the same physical device] admin | ||
|---|---|---|---|
| Line 52: | Line 52: | ||
| ip addr del 172.16.134.5/ | ip addr del 172.16.134.5/ | ||
| </ | </ | ||
| + | |||
| + | ==== To make it permanent ==== | ||
| + | |||
| + | To make it permanent, you do it using '' | ||
| + | |||
| + | <code bash> | ||
| + | IPADDR1=172.16.134.5 | ||
| + | PREFIX1=23 | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| + | |||
| + | <code bash> | ||
| + | nmcli con mod ens192 +ipv4.addresses " | ||
| + | </ | ||
| + | |||
| + | When done, just restart network: '' | ||
| + | |||
| + | |||
| ===== Remove (delete) an IP address ===== | ===== Remove (delete) an IP address ===== | ||
| Line 62: | Line 81: | ||
| In some circumstances, | In some circumstances, | ||
| - | ^What | + | ^ What |
| - | |Physical device|: | + | | Physical device |
| - | |IP address | + | | IP address |
| - | |Netmask/ | + | | Netmask/ |
| - | |VLAN interface |:|ens2f0.70 | + | | VLAN interface |
| ==== Add a vlan tag to an interface ==== | ==== Add a vlan tag to an interface ==== | ||