+ -
当前位置:首页 → 问答吧 → 【求助】solaris9的双网卡问题,共同讨论

【求助】solaris9的双网卡问题,共同讨论

时间:2006-08-03

来源:互联网

sun fire440 安装的solaris9,有两个网卡,一个接内网,一个接外网,内网的可以正常访问,但是外网的网卡能ping出去,外部ping不通。百思不得其解,另外一台sun主机也有类似问题。特把配置文件贴出来,请高手指教。

$ more hosts
#
# Internet host table
#
127.0.0.1 localhost
192.168.199.71 buptdes01 loghost
218.249.255.61 buptdes02


$ more hostname.ce0
buptdes01

$ more hostname.ce1
buptdes02


$ more defaultrouter
192.168.199.1 218.249.255.1

$ more 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.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
#59.64.177.128 255.255.255.128
192.168.199.1 255.255.255.0
218.249.255.61 255.255.255.128


$ more nsswitch.conf
#
# /etc/nsswitch.files:
#
# An example file that could be copied over to /etc/nsswitch.conf; it
# does not use any naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
hosts: files
ipnodes: files
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
sendmailvars: files
printers: user files

auth_attr: files
prof_attr: files
project: files



# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.199.71 netmask ffffff00 broadcast 192.168.199.255
ether 0:3:ba:9:44:d1
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 218.249.255.61 netmask ffffff00 broadcast 218.249.255.255
ether 0:3:ba:9:44:d1

# ping -s -i ce0 218.249.255.1
PING 218.249.255.1: 56 data bytes
64 bytes from 218.249.255.1: icmp_seq=0. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=1. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=2. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=3. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=4. time=2. ms
64 bytes from 218.249.255.1: icmp_seq=5. time=4. ms
64 bytes from 218.249.255.1: icmp_seq=6. time=1. ms
^C
----218.249.255.1 PING Statistics----
7 packets transmitted, 7 packets received, 0% packet loss
round-trip (ms) min/avg/max = 1/1/4


ping -s -i ce1 218.249.255.1
PING 218.249.255.1: 56 data bytes
64 bytes from 218.249.255.1: icmp_seq=0. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=1. time=1. ms
64 bytes from 218.249.255.1: icmp_seq=2. time=2. ms
64 bytes from 218.249.255.1: icmp_seq=3. time=1. ms
^C
----218.249.255.1 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms) min/avg/max = 1/1/2

ip分别是
192.168.199.71          255.255.255.0           192.168.199.1
218.249.255.61           255.255.255.128         218.249.255.1      

作者: yuio654   发布时间: 2006-08-03

在线等
偶的msn:[email="[email protected]"][email protected][/email]      

作者: yuio654   发布时间: 2006-08-03