首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

solaris 11怎么设置网络,ping不通外网

2012-09-17 
solaris 11如何设置网络,ping不通外网solaris 11如何设置网络,ping不通外网我公司的网络是192.168.0.44255

solaris 11如何设置网络,ping不通外网
solaris 11如何设置网络,ping不通外网
我公司的网络是
192.168.0.44
255.255.255.0
192.168.0.1

现在solaris 11是
root@solaris11:/# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
  inet 127.0.0.1 netmask ff000000
net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
  inet 192.168.0.66 netmask ffffff00 broadcast 192.168.0.255
  ether 0:21:28:0:9d:1e
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
  inet6 ::1/128
net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
  inet6 fe80::221:28ff:fe00:9d1e/10
  ether 0:21:28:0:9d:1e

root@solaris11:/# route -p show
persistent: route add default 192.168.0.1 -ifp net0

root@solaris11:/# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet unknown 0 unknown e1000g1
net2 Ethernet unknown 0 unknown e1000g2
net0 Ethernet up 100 full e1000g0
net3 Ethernet unknown 0 unknown e1000g3

root@solaris11:/# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.0.66/24
lo0/v6 static ok ::1/128
net0/v6 addrconf ok fe80::221:28ff:fe00:9d1e/10

root@solaris11:/# cat /etc/inet/static_routes
# File generated by route(1M) - do not edit.
default 192.168.0.1 -ifp net0

现在问题是ping局域网IP没问题
root@solaris11:/# ping 192.168.0.44
192.168.0.44 is alive

外网不行
root@solaris11:/# ping www.yahoo.com
ping: getaddrinfo: temporary name resolution failure
ping: unknown host www.yahoo.com

请高手指点

[解决办法]
DNS没有设置吧?
/etc/resolv.conf

nameserver 8.8.8.8

热点排行