免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1726 | 回复: 1
打印 上一主题 下一主题

使用Jumpstart安装Solaris时,如何确定boot使用的网卡MAC地址 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-23 16:39 |只看该作者 |倒序浏览
使用Jumpstart安装Solaris时,如何确定boot使用的网卡MAC地址







在使用Jumpstart安装Solaris时,需要先确定客户端网卡的MAC地址。使用以下方法可以确定目前客户端上哪个网口连接了网络及网口对应的MAC地址。



如果服务器的OBP里设定了local-mac-address?=true, 那么每个网口会使用自己单独的MAC地址。这时就需要知道服务器连接Jumpstart Server的网口的MAC地址来配置Jumpstart。



先检查一个设定的net别名

  1. {0} ok devalias net
  2. net                      /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
复制代码
显示所有网口信息
  1. {0} ok show-nets
  2. a) /pci@0/pci@0/pci@1/pci@0/pci@3/network@0,1
  3. b) /pci@0/pci@0/pci@1/pci@0/pci@3/network@0
  4. c) /pci@0/pci@0/pci@1/pci@0/pci@2/network@0,1
  5. d) /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
  6. q) NO SELECTION
  7. Enter Selection, q to quit: q
  8. {0} ok
复制代码
查看所有网络的连接状态
  1. {0} ok watch-net-all
  2. /pci@0/pci@0/pci@1/pci@0/pci@3/network@0,1
  3. Timed out waiting for Autonegotation to complete
  4. Check cable and try again
  5. Link Down
  6. Timed out waiting for Autonegotation to complete
  7. Check cable and try again
  8. Link Down
  9. Timed out waiting for Autonegotation to complete
  10. Check cable and try again
  11. Link Down
  12. Timed out waiting for Autonegotation to complete
  13. Check cable and try again
  14. Link Down

  15. /pci@0/pci@0/pci@1/pci@0/pci@3/network@0
  16. Timed out waiting for Autonegotation to complete
  17. Check cable and try again
  18. Link Down
  19. Timed out waiting for Autonegotation to complete
  20. Check cable and try again
  21. Link Down
  22. Timed out waiting for Autonegotation to complete
  23. Check cable and try again
  24. Link Down
  25. Timed out waiting for Autonegotation to complete
  26. Check cable and try again
  27. Link Down

  28. /pci@0/pci@0/pci@1/pci@0/pci@2/network@0,1
  29. Timed out waiting for Autonegotation to complete
  30. Check cable and try again
  31. Link Down
  32. Timed out waiting for Autonegotation to complete
  33. Check cable and try again
  34. Link Down
  35. Timed out waiting for Autonegotation to complete
  36. Check cable and try again
  37. Link Down
  38. Timed out waiting for Autonegotation to complete
  39. Check cable and try again
  40. Link Down

  41. /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
  42. 1000 Mbps full duplex  Link up  (此网口状态为link up)
  43. Looking for Ethernet Packets.
  44. '.' is a Good Packet.  'X' is a Bad Packet.
  45. Type any key to stop.
复制代码
...........................

检查已连接的网口MAC地址
  1. {0} ok cd /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
  2. {0} ok .properties
  3. local-mac-address        00 14 4f a0 89 62
  4. mac-addresses            00 14 4f a0 89 62
  5. assigned-addresses       82080010 00000000 00400000 00000000 00020000
  6.                          81080018 00000000 00000000 00000000 00000020
  7. compatible               pciex8086,105e.108e.105e.6
  8.                          pciex8086,105e.108e.105e
  9.                          pciex8086,105e.6
  10.                          pciex8086,105e
  11.                          pciexclass,020000
  12.                          pciexclass,0200
  13. reg                      00080000 00000000 00000000 00000000 00000000
  14.                          03080010 00000000 00000000 00000000 00020000
  15. max-frame-size           00010000
  16. address-bits             00000030
  17. device_type              network
  18. name                     network
  19. interrupts               00000001
  20. cache-line-size          00000010
  21. class-code               00020000
  22. subsystem-id             0000105e
  23. subsystem-vendor-id      0000108e
  24. revision-id              00000006
复制代码
将当前link up的网口设定为net别名
  1. {0} ok nvalias net /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
  2. {0} ok devalias net
  3. net                      /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
复制代码
启动Jumpstart安装Solaris
  1. {0} ok boot net - install
  2. Boot device: /pci@0/pci@0/pci@1/pci@0/pci@2/network@0  File and args: - install
  3. 1000 Mbps full duplex  Link up
  4. Requesting Internet Address for 0:14:4f:a0:89:62
  5. Requesting Internet Address for 0:14:4f:a0:89:62
  6. 1000 Mbps full duplex  Link up
  7. SunOS Release 5.10 Version Generic_118833-33 64-bit
  8. Copyright 1983-2006 Sun Microsystems, Inc.  All rights reserved.
  9. Use is subject to license terms.
复制代码

论坛徽章:
0
2 [报告]
发表于 2012-01-04 14:21 |只看该作者
谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP