Jaka jest różnica między instrukcją iface eth0 inet manual a instrukcją iface eth0 inet static?


20

Jaka jest różnica między iface eth0 inet manuali iface eth0 inet static?

Dzięki

Odpowiedzi:


17

iface eth0 inet static: Definiuje statyczny adres IP dla eth0

iface eth0 inet manual: Aby utworzyć interfejs sieciowy bez adresu IP. Zwykle używane przez interfejsy, które są elementami mostka lub agregacji lub mają skonfigurowane na nich urządzenie VLAN

Aby uzyskać więcej informacji przeczytaj:

Spójrz na plik /usr/share/doc/ifupdown/examples/network-interfaces.gz, możesz dowiedzieć się więcej o instrukcji i niektórych przypadkach do użycia:

# Set up an interface to read all the traffic on the network. This 
# configuration can be useful to setup Network Intrusion Detection
# sensors in 'stealth'-type configuration. This prevents the NIDS
# system to be a direct target in a hostile network since they have
# no IP address on the network. Notice, however, that there have been
# known bugs over time in sensors part of NIDS (for example see 
# DSA-297 related to Snort) and remote buffer overflows might even be
# triggered by network packet processing.
# 
# auto eth0
# iface eth0 inet manual
#   up ifconfig $IFACE 0.0.0.0 up
#       up ip link set $IFACE promisc on
#       down ip link set $IFACE promisc off
#       down ifconfig $IFACE down

# Set up an interface which will not be allocated an IP address by
# ifupdown but will be configured through external programs. This
# can be useful to setup interfaces configured through other programs,
# like, for example, PPPOE scripts.
#
# auto eth0
# iface eth0 inet manual
#       up ifconfig $IFACE 0.0.0.0 up
#       up /usr/local/bin/myconfigscript
#       down ifconfig $IFACE down

2
Bardziej szczegółowe wyjaśnienie tutaj .
Pablo Bianchi
Korzystając z naszej strony potwierdzasz, że przeczytałeś(-aś) i rozumiesz nasze zasady używania plików cookie i zasady ochrony prywatności.
Licensed under cc by-sa 3.0 with attribution required.