- 论坛徽章:
- 0
|
机器:cp1500(1个440MH casdZ)\r\n系统:8 2/04\r\n文件配置:\r\n# ifconfig -a\r\nlo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1\r\n inet 127.0.0.1 netmask ff000000 \r\nhme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2\r\n inet 192.168.0.49 netmask ffffff00 broadcast 192.168.0.255\r\n ether 8:0:20:da:20:c0 \r\nhme1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3\r\n inet 192.168.0.37 netmask ffffff00 broadcast 192.168.0.255\r\n ether 8:0:20:da:20:c0\r\n\r\n\r\n# more /etc/hosts\r\n127.0.0.1 localhost \r\n192.168.0.49 test loghost test.com\r\n192.168.0.205 suntest\r\n\r\n\r\n# more /etc/defaultrouter\r\n192.168.0.1\r\n# tail /etc/netmasks\r\n# A, B, or C network number. In the future we should be able to support\r\n# arbitrary network numbers per the Classless Internet Domain Routing\r\n# guidelines.\r\n#\r\n# Both the network-number and the netmasks are specified in\r\n# \"decimal dot\" notation, e.g:\r\n#\r\n# 128.32.0.0 255.255.255.0\r\n#\r\n192.168.0.0 255.255.255.0\r\n\r\n\r\n# netstat -rn\r\n\r\nRouting Table: IPv4\r\n Destination Gateway Flags Ref Use Interface\r\n-------------------- -------------------- ----- ----- ------ ---------\r\n192.168.0.0 192.168.0.49 U 1 24 hme0\r\n192.168.0.0 192.168.0.37 U 1 0 hme1\r\n224.0.0.0 192.168.0.49 U 1 0 hme0\r\ndefault 192.168.0.1 UG 1 0 \r\n127.0.0.1 127.0.0.1 UH 2 8 lo0\r\n\r\n\r\n# arp -a\r\n\r\nNet to Media Table: IPv4\r\nDevice IP Address Mask Flags Phys Addr \r\n------ -------------------- --------------- ----- ---------------\r\nhme0 224.0.0.1 255.255.255.255 01:00:5e:00:00:01\r\nhme1 192.168.0.37 255.255.255.255 SP 08:00:20:da:20:c0\r\nhme0 test 255.255.255.255 SP 08:00:20:da:20:c0\r\nhme1 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00\r\nhme0 224.0.0.0 240.0.0.0 SM 01:00:5e:00:00:00\r\n\r\n\r\n# ping 192.168.0.1\r\nno answer from 192.168.0.1\r\n# ping 192.168.0.49\r\n192.168.0.49 is alive\r\n# ping 192.168.0.37\r\n192.168.0.37 is alive\r\n# |
|