fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


linux:netzwerk

This is an old revision of the document!


Netzwerk Konfiguration

Wichtige Dateien

Pfad Verantwortlich für
/etc/udev/rules.d/70-persistent-net.rules
/etc/sysconfig/network/ifcfg-eth0 Beinhaltet die Netzwerkkonfiguration für das Interface “eth0”
/etc/sysconfig/network/routes
/etc/resolve.conf
/etc/HOSTNAME
/etc/hosts

Route

/etc/sysconfig/network/routes

Beispiel

default 192.168.63.1 - -

Priorität der Adapter

/etc/udev/rules.d/70-persistent-net.rules

Allgemein

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC-Adresse>", ATTR{type}=="1", KERNEL=="eth*", NAME="<ADAPTERNAME>"

Beispiel

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:85:54:00", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Netzwerkadapter Einstellungen

/etc/sysconfig/network/ifcfg-eth0

Beispiel DHCP

BOOTPROTO='dhcp' 			#or static
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''				#assigned if static e.g. 10.6.7.203
MTU=''
NAME='AMD PCnet - Fast 79C971'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='rBUF.weGuQ9ywYPF'
USERCONTROL='no'
_nm_name='bus-pci-0000:02:01.0'

Beispiel Statische IP

BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='10.6.7.203'
MTU=''
NAME='AMD PCnet - Fast 79C971'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='rBUF.weGuQ9ywYPF'
USERCONTROL='no'
_nm_name='bus-pci-0000:02:01.0'

Hostname für FQDN

/etc/HOSTNAME

Allgemein

<Computername>.<Domain>

DNS-Einstellungen

/etc/resolve.conf

Allgemein

domain <Domain>
nameserver <IP_des_Servers>
nameserver <Ggf_IP_des_2._Servers>

Beispiel

domain site
nameserver 10.0.0.1
nameserver 10.0.0.2

hosts

/etc/hosts → vergleichbar wie in Windows

Allgemein

127.0.0.1   localhost
<lokale IP> <Computername>.<Domain> <Computername>

Beispiel

127.0.0.1       localhost
10.0.0.202      srstef.site srstef

iptables

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.  More information about cookies 
linux/netzwerk.1605828425.txt.gz · Last modified: (external edit)