- 论坛徽章:
- 0
|
我在/etc/netmasks文件里看到的子网掩码是255.255.255.224,但用ifconfig -a看到的却是FF000000,并用ifconfig将子网掩码改为255.255.255.224后,重新启动系统后子网掩码又变成FF000000,谁能告诉我怎样才能将子网掩码永久改成255.255.255.224
谢!
下面是相关文件的内容:
gmlzws04o{root} #: ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4>; mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4>; mtu 1500 index 2
inet 10.212.18.165 netmask ff000000 broadcast 10.212.18.191
ether 8:0:20:88:60:49
gmlzws04o{root} #: more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
10.212.18.165 gmlzws04o loghost
10.212.18.114 gmlzmas1o mailhost
gmlzws04o{root} #: more /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
10.212.18.165 255.255.255.224
|
|