Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
redhat:base-redhat:networking-redhat [2017/08/22 14:56] – created michael | redhat:base-redhat:networking-redhat [2020/05/08 15:24] (current) – [Übernehmen der neuen Netzwerk Konfiguration] michael | ||
---|---|---|---|
Line 3: | Line 3: | ||
{{ : | {{ : | ||
- | ---- | ||
===== Statische IP - Beispiel Netzkonfiguration für Redhat ===== | ===== Statische IP - Beispiel Netzkonfiguration für Redhat ===== | ||
- | Dies ist eine Beispielkonfiguration, | + | Dies ist eine Beispielkonfiguration, |
<WRAP center box 100%> | <WRAP center box 100%> | ||
< | < | ||
- | # vim / | + | # vim /etc/sysconfig/network-scripts/ifcfg-eth0 |
</ | </ | ||
- | <sxh bash; first-line: 1> | + | <sxh bash; first-line: 1; highlight: [2,14-17]> |
- | # This file describes the network interfaces available on your system | + | TYPE=Ethernet |
- | # and how to activate them. For more information, | + | BOOTPROTO=none |
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=no | ||
+ | IPV6INIT=yes | ||
+ | IPV6_AUTOCONF=yes | ||
+ | IPV6_DEFROUTE=yes | ||
+ | IPV6_FAILURE_FATAL=no | ||
+ | IPV6_ADDR_GEN_MODE=stable-privacy | ||
+ | NAME=eth0 | ||
+ | UUID=b2303a38-ba62-4325-bd42-e1f73c4e62eb | ||
+ | DEVICE=eth0 | ||
+ | ONBOOT=yes | ||
+ | IPADDR=172.168.1.20 | ||
+ | PREFIX=24 | ||
+ | GATEWAY=172.168.1.1 | ||
+ | DNS1=172.168.1.1 | ||
+ | IPV6_PEERDNS=yes | ||
+ | IPV6_PEERROUTES=yes | ||
+ | IPV6_PRIVACY=no | ||
+ | ZONE=public | ||
- | source / | ||
- | |||
- | # The loopback network interface | ||
- | auto lo | ||
- | iface lo inet loopback | ||
- | |||
- | # The primary network interface | ||
- | auto eth0 | ||
- | iface eth0 inet static | ||
- | address 192.168.1.23 | ||
- | netmask 255.255.255.0 | ||
- | gateway 192.168.1.1 | ||
- | dns-nameservers 192.168.1.1 | ||
- | |||
- | # BlackSERVhost to BlackSERV | ||
- | auto eth1 | ||
- | iface eth1 inet static | ||
- | address 10.0.0.23 | ||
- | netmask 255.255.255.0 | ||
- | broadcast 10.0.0.255 | ||
</ | </ | ||
</ | </ | ||
- | |||
- | Nach dem eintragen, eines **neuen Interfaces**, | ||
<wrap em>Zum übernehmen der Interface Änderungen unten schauen!</ | <wrap em>Zum übernehmen der Interface Änderungen unten schauen!</ | ||
- | ---- | ||
===== Dynamische IP - Beispiel Netzkonfiguration für Redhat ===== | ===== Dynamische IP - Beispiel Netzkonfiguration für Redhat ===== | ||
- | Es soll nun nur noch ein Interface | + | Das Interface **eth0** |
<WRAP center box 100%> | <WRAP center box 100%> | ||
< | < | ||
- | # vim / | + | # vim /etc/sysconfig/network-scripts/ifcfg-eth0 |
</ | </ | ||
- | <sxh bash; first-line: 1> | + | <sxh bash; first-line: 1; highlight: [2,14-15]> |
- | # This file describes the network interfaces available on your system | + | TYPE=Ethernet |
- | # and how to activate them. For more information, | + | BOOTPROTO=dhcp |
+ | DEFROUTE=yes | ||
+ | IPV4_FAILURE_FATAL=no | ||
+ | IPV6INIT=yes | ||
+ | IPV6_AUTOCONF=yes | ||
+ | IPV6_DEFROUTE=yes | ||
+ | IPV6_FAILURE_FATAL=no | ||
+ | IPV6_ADDR_GEN_MODE=stable-privacy | ||
+ | NAME=eth0 | ||
+ | UUID=b2303a38-ba62-4325-bd42-e1f73c4e62eb | ||
+ | DEVICE=eth0 | ||
+ | ONBOOT=yes | ||
+ | PEERDNS=yes | ||
+ | PEERROUTES=yes | ||
+ | IPV6_PEERDNS=yes | ||
+ | IPV6_PEERROUTES=yes | ||
+ | IPV6_PRIVACY=no | ||
+ | ZONE=public | ||
- | source | + | </sxh> |
+ | </WRAP> | ||
- | # The loopback network interface | + | <wrap em>Zum übernehmen der Interface Änderungen unten schauen!</ |
- | auto lo | + | |
- | iface lo inet loopback | + | |
- | # The primary network interface | ||
- | auto eth0 | ||
- | iface eth0 inet dhcp | ||
- | #address 192.168.1.23 | ||
- | #netmask 255.255.255.0 | ||
- | #gateway 192.168.1.1 | ||
- | # | ||
+ | ===== Übernehmen der neuen Netzwerk Konfiguration ===== | ||
+ | |||
+ | Zum übernehmen / aktivieren der neuen Netzwerkkonfiguration, | ||
+ | |||
+ | * '' | ||
+ | * ''< | ||
+ | |||
+ | |||
+ | ===== Anpassen der Netzwerk Konfiguration via CLI-GUI ===== | ||
+ | |||
+ | Zum einfachen anpassen der Netzwerkkonfiguration, | ||
+ | |||
+ | - '' | ||
+ | < | ||
+ | <sxh bash; gutter: false;> | ||
+ | 1: lo: < | ||
+ | link/ | ||
+ | inet 127.0.0.1/8 scope host lo | ||
+ | | ||
+ | inet6 ::1/128 scope host | ||
+ | | ||
+ | 2: eth0: < | ||
+ | link/ether 00: | ||
+ | inet 192.168.1.11/ | ||
+ | | ||
+ | inet6 2001: | ||
+ | | ||
+ | inet6 fe80:: | ||
+ | | ||
</ | </ | ||
</ | </ | ||
+ | - '' | ||
+ | - '' | ||
- | <wrap em>Zum übernehmen der Interface Änderungen unten schauen!</ | ||
- | ---- | ||
- | ===== Übernehmen der neuen Netzwerk Konfiguration | + | ===== Redhat Dokumentation zum Thema ===== |
- | Zum übernehmen / aktivieren der neuen Netzwerkkonfiguration, | + | |
+ | <WRAP center round download 80%> | ||
+ | '' | ||
+ | </ | ||
- | * '' | ||
- | # ifup eth0</ | ||
- | * '' | ||