- 论坛徽章:
- 0
|
机器:cp1500(1个440MH casdZ)
系统:8 2/04
文件配置:
# 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 192.168.0.49 netmask ffffff00 broadcast 192.168.0.255
ether 8:0:20:da:20:c0
hme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.0.37 netmask ffffff00 broadcast 192.168.0.255
ether 8:0:20:da:20:c0
# more /etc/hosts
127.0.0.1 localhost
192.168.0.49 test loghost test.com
192.168.0.205 suntest
# more /etc/defaultrouter
192.168.0.1
# tail /etc/netmasks
# 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
#
192.168.0.0 255.255.255.0
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0 192.168.0.49 U 1 24 hme0
192.168.0.0 192.168.0.37 U 1 0 hme1
224.0.0.0 192.168.0.49 U 1 0 hme0
default 192.168.0.1 UG 1 0
127.0.0.1 127.0.0.1 UH 2 8 lo0
# arp -a
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
hme0 224.0.0.1 255.255.255.255 01:00:5e:00:00:01
hme1 192.168.0.37 255.255.255.255 SP 08:00:20:da:20:c0
hme0 test 255.255.255.255 SP 08:00:20:da:20:c0
hme1 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00
hme0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00
# ping 192.168.0.1
no answer from 192.168.0.1
# ping 192.168.0.49
192.168.0.49 is alive
# ping 192.168.0.37
192.168.0.37 is alive
# |
|