Unix Study--Solaris 10添加新网卡
创新互联专注于庆城企业网站建设,响应式网站开发,商城网站建设。庆城网站建设公司,为庆城等地区提供建站服务。全流程定制网站,专业设计,全程项目跟踪,创新互联专业和态度为您提供的服务在Solaris 10上构建Oracle RAC ,在系统上添加了新的网卡,如何识别和配置相关的参数呢?本案例结合实际应用讲述如何配置第二块网卡
1、查看网卡名称
[root@node1:/]# ifconfig -a lo0: flags=20010008492、查看新网卡名称
[root@node1:/]# 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/i8042@1,60" 0 "i8042" "/isa/i8042@1,60/keyboard@0" 0 "kb8042" "/isa/i8042@1,60/mouse@1" 0 "mouse8042" "/isa/lp@1,378" 0 "ecpp" "/ramdisk" 0 "ramdisk" "/cpus" 0 "cpunex" "/cpus/cpu@0" 0 "cpudrv" "/pci@0,0" 0 "pci" "/pci@0,0/display@2" 0 "vgatext" "/pci@0,0/pci106b,3f@6" 0 "ohci" "/pci@0,0/pci106b,3f@6/input@1" 0 "hid" "/pci@0,0/pci8086,1e@3" 0 "e1000g" "/pci@0,0/pci8086,2829@d" 0 "ahci" "/pci@0,0/pci8086,2829@d/disk@0,0" 0 "sd" "/pci@0,0/pci8086,2829@d/cdrom@1,0" 1 "sd" "/pci@0,0/pci8086,2829@d/disk@2,0" 2 "sd" "/pci@0,0/pci8086,1e@8" 1 "e1000g" "/agpgart" 0 "agpgart"本机第一块网卡名称"e1000g0",则第二块网卡应为"e1000g1".
2、启用第二块网卡
[root@node1:/]# ifconfig e1000g1 plumb [root@node1:/]# ifconfig -a lo0: flags=20010008493、添加网卡配置信息
[root@node1:/]# 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 [root@node1:/]# cat /etc/hostname.e1000g1 node1-priv [root@node1:/]# 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 ;;第二块网卡子网掩码 [root@node1:/]# 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 [root@node1:/]# sync;sync;reboot ;;重启系统 查看网卡信息,新网卡被启用: [root@node1:/]# ifconfig -a lo0: flags=2001000849@至此,新网卡配置完成!
附注:
Solaris 10识别新硬盘:
添加新硬盘后,没有被识别,解决方法如下:
[root@node1:/]# touch /reconfigure
[root@node1:/]# sync;sync;reboot
[root@node1:/]# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0,0/pci8086,2829@d/disk@0,0
1. c0t2d0
/pci@0,0/pci8086,2829@d/disk@2,0
@硬盘被识别!
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
售后响应及时
7×24小时客服热线数据备份
更安全、更高效、更稳定价格公道精准
项目经理精准报价不弄虚作假合作无风险
重合同讲信誉,无效全额退款