Pertanyaan Apa perbedaan antara iface eth0 inet manual dan iface eth0 inet static?


Apa perbedaan antara iface eth0 inet manual dan iface eth0 inet static?

Terima kasih


16
2017-07-06 08:28


asal




Jawaban:


iface eth0 inet static: Menentukan alamat IP statis untuk eth0

iface eth0 inet manual : Untuk membuat antarmuka jaringan tanpa alamat IP sama sekali. Biasanya digunakan oleh antarmuka yang merupakan anggota jembatan atau agregasi, atau memiliki perangkat VLAN yang dikonfigurasi pada mereka

Untuk informasi lebih lanjut baca:

Lihatlah file itu /usr/share/doc/ifupdown/examples/network-interfaces.gz, Anda dapat mengetahui lebih lanjut tentang manual dan beberapa kasus untuk digunakan:

# 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

14
2017-07-06 08:43



Yah, terima kasih banyak! - Wang Xiaoyu
Penjelasan lebih detail sini. - Pablo Bianchi