Sự khác biệt giữa hướng dẫn sử dụng iface eth0 inet và iface eth0 inet tĩnh là gì?


Câu trả lời:


17

iface eth0 inet static: Xác định địa chỉ IP tĩnh cho eth0

iface eth0 inet manual: Để tạo giao diện mạng hoàn toàn không có địa chỉ IP. Thường được sử dụng bởi các giao diện là thành viên cầu nối hoặc tập hợp hoặc có thiết bị Vlan được cấu hình trên chúng

Để biết thêm thông tin đọc:

Hãy xem tập tin /usr/share/doc/ifupdown/examples/network-interfaces.gz, bạn có thể biết thêm về hướng dẫn sử dụng và một số trường hợp để sử dụng:

# 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
Giải thích chi tiết hơn tại đây .
Pablo Bianchi
Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.