iface eth0 inet manual和 和有iface eth0 inet static什么区别?
谢谢
May*_*hux 19
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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
54557 次 |
| 最近记录: |