iface eth0 inet manual 和 iface eth0 inet static 有什么区别?

iface eth0 inet manual 和 iface eth0 inet static 有什么区别?

iface eth0 inet manual和有什么区别iface eth0 inet static

谢谢

答案1

iface eth0 inet static:为 eth0 定义静态 IP 地址

iface eth0 inet manual:创建完全没有 IP 地址的网络接口。通常由桥接或聚合成员接口使用,或者在其上配置了 VLAN 设备

更多信息请阅读:

查看该文件/usr/share/doc/ifupdown/examples/network-interfaces.gz,您可以了解有关手册的更多信息以及一些使用案例:

# 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

相关内容