使用Jumpstart安装Solaris时,如何确定boot使用的网卡MAC地址

Solaris Jumpstart 安装教程

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

 

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

 

先检查一个设定的net别名

{0} ok devalias net
net                      /pci@0/pci@0/pci@1/pci@0/pci@2/network@0

显示所有网口信息
{0} ok show-nets
a) /pci@0/pci@0/pci@1/pci@0/pci@3/network@0,1
b) /pci@0/pci@0/pci@1/pci@0/pci@3/network@0
c) /pci@0/pci@0/pci@1/pci@0/pci@2/network@0,1
d) /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
q) NO SELECTION
Enter Selection, q to quit: q
{0} ok

查看所有网络的连接状态
{0} ok watch-net-all
/pci@0/pci@0/pci@1/pci@0/pci@3/network@0,1
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down

/pci@0/pci@0/pci@1/pci@0/pci@3/network@0
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down

/pci@0/pci@0/pci@1/pci@0/pci@2/network@0,1
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down
Timed out waiting for Autonegotation to complete
Check cable and try again
Link Down

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

检查已连接的网口MAC地址
{0} ok cd /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
{0} ok .properties
local-mac-address        00 14 4f a0 89 62
mac-addresses            00 14 4f a0 89 62
assigned-addresses       82080010 00000000 00400000 00000000 00020000
                         81080018 00000000 00000000 00000000 00000020
compatible               pciex8086,105e.108e.105e.6
                         pciex8086,105e.108e.105e
                         pciex8086,105e.6
                         pciex8086,105e
                         pciexclass,020000
                         pciexclass,0200
reg                      00080000 00000000 00000000 00000000 00000000
                         03080010 00000000 00000000 00000000 00020000
max-frame-size           00010000
address-bits             00000030
device_type              network
name                     network
interrupts               00000001
cache-line-size          00000010
class-code               00020000
subsystem-id             0000105e
subsystem-vendor-id      0000108e
revision-id              00000006

将当前link up的网口设定为net别名
{0} ok nvalias net /pci@0/pci@0/pci@1/pci@0/pci@2/network@0
{0} ok devalias net
net                      /pci@0/pci@0/pci@1/pci@0/pci@2/network@0

启动Jumpstart安装Solaris
{0} ok boot net - install
Boot device: /pci@0/pci@0/pci@1/pci@0/pci@2/network@0  File and args: - install
1000 Mbps full duplex  Link up
Requesting Internet Address for 0:14:4f:a0:89:62
Requesting Internet Address for 0:14:4f:a0:89:62
1000 Mbps full duplex  Link up
SunOS Release 5.10 Version Generic_118833-33 64-bit
Copyright 1983-2006 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.

转载于:https://www.cnblogs.com/cqubityj/archive/2011/11/09/2243312.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值