使用Jumpstart安装Solaris时,如何确定boot使用的网卡MAC地址
在使用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.
复制代码 |