- 论坛徽章:
- 0
|
一机器的
en0网卡地址是10.13.1.21,状态up;
en1网卡地址是192.168.128.200,状态down;
/etc/hosts文件配置如下
# /etc/hosts
#
# This file contains the hostnames and their address for hosts in the
# network. This file is used to resolve a hostname into an Internet
# address.
#
# At minimum, this file must contain the name and address for each
# device defined for TCP in your /etc/net file. It may also contain
# entries for well-known (reserved) names such as timeserver
# and printserver as well as any other host name and address.
#
# The format of this file is:
# Internet Address Hostname # Comments
# Items are separated by any number of blanks and/or tabs. A '#'
# indicates the beginning of a comment; characters up to the end of the
# line are not interpreted by routines which search this file. Blank
# lines are allowed.
# Internet Address Hostname # Comments
# 192.9.200.1 net0sample # ethernet name/address
# 128.100.0.1 token0sample # token ring name/address
# 10.2.0.2 x25sample # x.25 name/address
127.0.0.1 loopback localhost # loopback (lo0) name/address
192.168.128.200 localhost
10.13.1.21 p550a
我的问题是:/etc/hosts中已经有“127.0.0.1 loopback localhost”,
后加入的“192.168.128.200 localhost”可能是什么用意,并且“192.168.128.200”的网卡是DOWN状态? |
|