Skip to content

Commit e5e2d73

Browse files
authored
Add SUSE Section to Doc & clean up distro names.
Added "SUSE Linux Enterprise and openSUSE" section and removed "Linux" from start of each Linux-based distro
1 parent a5d28b1 commit e5e2d73

File tree

1 file changed

+61
-4
lines changed

1 file changed

+61
-4
lines changed

includes/virtual-network-multiple-ip-addresses-os-config.md

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,64 @@ ping -S 10.0.0.7 outlook.com
5252
5353
</details>
5454

55-
### Linux (Ubuntu 14/16)
55+
### SUSE Linux Enterprise and openSUSE
56+
57+
<details>
58+
<summary>Expand</summary>
59+
60+
##### YaST Method
61+
62+
1. For a graphical (GTK) interface, open YaST in a VNC or RDP session and go to the "System" > "Network Settings" module. For command-line (ncurses) interface, run <code>yast2 lan</code> from a terminal window or Azure Serial Console.
63+
64+
> [!TIP]
65+
> The ncurses YaST interface highlights a letter of each selectable YaST option which can be selected with Alt + letter.
66+
> The GTK interface provides a similar feature but uses an underline for this letter instead.
67+
68+
2. In the "Overview" tab, highlight the interface and select the "Edit" option to open a NIC-specific dialog.
69+
70+
3. In the "Address" tab, select "Add" on the "Additional IPs" box.
71+
72+
4. Add a Label for the IP alias, IP Address and Subnet Mask. Select "OK" then "Next" and finally "OK".
73+
74+
##### Manual Method
75+
76+
Add the IPADDR_0 and LABEL_0 entries to the respective `/etc/sysconfig/network/ifcfg-*` interface file.
77+
78+
For example, to add "10.0.0.128" as an IP alias with the label "eth0a" to an existing `eth0` interface on a "/24" network.
79+
80+
[A]. Use VIM to edit the file in place
81+
82+
```bash
83+
vim /etc/sysconfig/network/ifcfg-eth0
84+
```
85+
86+
Insert <code>i</code> the following lines at the end of the ifcfg file.
87+
88+
```vim
89+
IPADDR_0='10.0.0.128/24'
90+
LABEL_0='eth0a'
91+
```
92+
Use the "Esc" key to exit insert mode and run the write and quit vim commands:
93+
94+
```vim
95+
:wq
96+
```
97+
98+
[B]. Use bash to append these values in a single command
99+
100+
```bash
101+
echo -e "IPADDR_0='10.0.0.128/24'\nLABEL_0='eth0a'" >> /etc/sysconfig/network/ifcfg-eth0
102+
```
103+
104+
Instruct wicked network service to reload the interface:
105+
106+
```bash
107+
sudo wicked ifreload eth0
108+
```
109+
110+
</details>
111+
112+
### Ubuntu 14/16
56113

57114
<details>
58115
<summary>Expand</summary>
@@ -143,7 +200,7 @@ ip route add default via 10.0.0.1 dev eth2 table custom
143200

144201
</details>
145202

146-
### Linux (Ubuntu 18.04+)
203+
### Ubuntu 18.04+
147204

148205
<details>
149206
<summary>Expand</summary>
@@ -247,7 +304,7 @@ ip route add default via 10.0.0.1 dev eth2 table custom
247304

248305
</details>
249306

250-
### Linux (Red Hat, CentOS, and others)
307+
### Red Hat Enterprise Linux, CentOS, and others
251308

252309
<details>
253310
<summary>Expand</summary>
@@ -415,4 +472,4 @@ You should see the IP address you added as part of the list. Example:
415472
valid_lft forever preferred_lft forever
416473
```
417474

418-
</details>
475+
</details>

0 commit comments

Comments
 (0)