Unix Study--Solaris 10添加新网卡
在Solaris 10上构建Oracle RAC ,在系统上添加了新的网卡,如何识别和配置相关的参数呢?本案例结合实际应用讲述如何配置第二块网卡
1、查看网卡名称
[[email protected]:/]# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255 ether 8:0:27:28:b1:8c
2、查看新网卡名称
[[email protected]:/]# more /etc/path_to_inst
# # Caution! This file contains critical kernel state # "/iscsi" 0 "iscsi" "/pseudo" 0 "pseudo" "/options" 0 "options" "/xsvc" 0 "xsvc" "/objmgr" 0 "objmgr" "/scsi_vhci" 0 "scsi_vhci" "/isa" 0 "isa" "/isa/[email protected],60" 0 "i8042" "/isa/[email protected],60/[email protected]" 0 "kb8042" "/isa/[email protected],60/[email protected]" 0 "mouse8042" "/isa/[email protected],378" 0 "ecpp" "/ramdisk" 0 "ramdisk" "/cpus" 0 "cpunex" "/cpus/[email protected]" 0 "cpudrv" "/[email protected],0" 0 "pci" "/[email protected],0/[email protected]" 0 "vgatext" "/[email protected],0/pci106b,[email protected]" 0 "ohci" "/[email protected],0/pci106b,[email protected]/[email protected]" 0 "hid" "/[email protected],0/pci8086,[email protected]" 0 "e1000g" "/[email protected],0/pci8086,[email protected]" 0 "ahci" "/[email protected],0/pci8086,[email protected]/[email protected],0" 0 "sd" "/[email protected],0/pci8086,[email protected]/[email protected],0" 1 "sd" "/[email protected],0/pci8086,[email protected]/[email protected],0" 2 "sd" "/[email protected],0/pci8086,[email protected]" 1 "e1000g" "/agpgart" 0 "agpgart"
本机第一块网卡名称"e1000g0",则第二块网卡应为"e1000g1".
2、启用第二块网卡
[[email protected]:/]# ifconfig e1000g1 plumb [[email protected]:/]# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255 ether 8:0:27:28:b1:8c e1000g1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 inet 0.0.0.0 netmask 0 ether 8:0:27:6e:16:1
3、添加网卡配置信息
[[email protected]:/]# cat /etc/hosts # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.8.11 node1 loghost 192.168.8.13 node1-vip 10.10.10.11 node1-priv ;;第二块网卡ip [[email protected]:/]# cat /etc/hostname.e1000g1 node1-priv [[email protected]:/]# cat /etc/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 # 192.168.8.0 255.255.255.0 10.10.10.0 255.255.255.0 ;;第二块网卡子网掩码 [[email protected]:/]# cat /etc/inet/ipnodes # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.8.11 node1 loghost 192.168.8.13 node1-vip 10.10.10.11 node1-priv [[email protected]:/]# sync;sync;reboot ;;重启系统 查看网卡信息,新网卡被启用: [[email protected]:/]# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255 ether 8:0:27:28:b1:8c e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 inet 10.10.10.11 netmask ffffff00 broadcast 10.10.10.255 ether 8:0:27:6e:16:1
@至此,新网卡配置完成!
附注:
Solaris 10识别新硬盘:
添加新硬盘后,没有被识别,解决方法如下:
[[email protected]:/]# touch /reconfigure
[[email protected]:/]# sync;sync;reboot
[[email protected]:/]# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63>
/[email protected],0/pci8086,[email protected]/[email protected],0
1. c0t2d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>
/[email protected],0/pci8086,[email protected]/[email protected],0
@硬盘被识别!
时间: 2024-10-12 07:02:52