linux:netzwerk:interfaces_redhat
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:netzwerk:interfaces_redhat [2021/06/29 13:51] – [Config eines Bonds als LACP] stone | linux:netzwerk:interfaces_redhat [2021/11/11 14:47] (current) – [Beispiel Interface mit VLAN und IP] stone | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| NAME=enp1s0.10 | NAME=enp1s0.10 | ||
| DEVICE=enp1s0.10 | DEVICE=enp1s0.10 | ||
| - | TYPE=Ethernet | ||
| ONBOOT=yes | ONBOOT=yes | ||
| - | BOOTPROTO=static | + | BOOTPROTO=none |
| NM_CONTROLLED=no | NM_CONTROLLED=no | ||
| IPADDR=10.0.0.10 | IPADDR=10.0.0.10 | ||
| Line 50: | Line 49: | ||
| \\ | \\ | ||
| + | **VLAN Kernel Module** | ||
| + | < | ||
| + | modprobe 8021q | ||
| + | lsmod | grep 8021q | ||
| + | 8021q 36864 0 | ||
| + | garp | ||
| + | mrp 20480 1 8021q | ||
| + | echo " | ||
| + | </ | ||
| + | ===== Beispiele LACP Bond mit IP ===== | ||
| + | |||
| + | **ifcfg-enp1s0** | ||
| + | < | ||
| + | NAME=enp1s0 | ||
| + | DEVICE=enp1s0 | ||
| + | TYPE=Ethernet | ||
| + | ONBOOT=yes | ||
| + | BOOTPROTO=none | ||
| + | MASTER=bond0 | ||
| + | SLAVE=yes | ||
| + | NM_CONTROLLED=no | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | **ifcfg-enp1s1** | ||
| + | < | ||
| + | NAME=enp1s1 | ||
| + | DEVICE=enp1s1 | ||
| + | TYPE=Ethernet | ||
| + | ONBOOT=yes | ||
| + | BOOTPROTO=none | ||
| + | MASTER=bond0 | ||
| + | SLAVE=yes | ||
| + | NM_CONTROLLED=no | ||
| + | </ | ||
| + | \\ | ||
| + | |||
| + | **ifcfg-bond0** | ||
| + | < | ||
| + | NAME=bond0 | ||
| + | DEVICE=bond0 | ||
| + | BONDING_MASTER=yes | ||
| + | TYPE=Bond | ||
| + | ONBOOT=yes | ||
| + | BOOTPROTO=none | ||
| + | BONDING_OPTS=" | ||
| + | NM_CONTROLLED=no | ||
| + | IPADDR=10.0.0.10 | ||
| + | NETMASK=255.255.255.0 | ||
| + | GATEWAY=10.0.0.1 | ||
| + | DNS1=9.9.9.9 | ||
| + | DNS2=1.1.1.1 | ||
| + | MTU=1500 | ||
| + | VLAN=yes | ||
| + | </ | ||
| + | \\ | ||
| ===== Beispiele LACP Bond mit VLAN ===== | ===== Beispiele LACP Bond mit VLAN ===== | ||
| Line 70: | Line 125: | ||
| </ | </ | ||
| \\ | \\ | ||
| + | |||
| **ifcfg-enp1s1** | **ifcfg-enp1s1** | ||
| < | < | ||
| Line 81: | Line 137: | ||
| NM_CONTROLLED=no | NM_CONTROLLED=no | ||
| </ | </ | ||
| + | \\ | ||
| **ifcfg-bond0** | **ifcfg-bond0** | ||
| Line 95: | Line 152: | ||
| \\ | \\ | ||
| - | ==== Config eines Bonds als LACP mit VLAN's ==== | ||
| **ifcfg-bond0.10** | **ifcfg-bond0.10** | ||
| < | < | ||
| Line 105: | Line 161: | ||
| NETMASK=255.255.255.0 | NETMASK=255.255.255.0 | ||
| GATEWAY=10.0.0.1 | GATEWAY=10.0.0.1 | ||
| + | DNS1=9.9.9.9 | ||
| + | DNS2=1.1.1.1 | ||
| MTU=1500 | MTU=1500 | ||
| VLAN=yes | VLAN=yes | ||
linux/netzwerk/interfaces_redhat.1624974712.txt.gz · Last modified: by stone
