Unix Study--Solaris 10添加新网卡

傷城~ 2022-08-07 10:40 241阅读 0赞

Unix Study—Solaris 10添加新网卡

  1. ** Solaris 10上构建Oracle RAC ,在系统上添加了新的网卡,如何识别和配置相关的参数呢?本案例结合实际应用讲述如何配置第二块网卡**

1、查看网卡名称

  1. [root@node1:/]# ifconfig -a
  2. lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
  3. inet 127.0.0.1 netmask ff000000
  4. e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
  5. inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255
  6. ether 8:0:27:28:b1:8c

2、查看新网卡名称

[root@node1:/]# more /etc/path_to_inst

  1. #
  2. # Caution! This file contains critical kernel state
  3. #
  4. "/iscsi" 0 "iscsi"
  5. "/pseudo" 0 "pseudo"
  6. "/options" 0 "options"
  7. "/xsvc" 0 "xsvc"
  8. "/objmgr" 0 "objmgr"
  9. "/scsi_vhci" 0 "scsi_vhci"
  10. "/isa" 0 "isa"
  11. "/isa/i8042@1,60" 0 "i8042"
  12. "/isa/i8042@1,60/keyboard@0" 0 "kb8042"
  13. "/isa/i8042@1,60/mouse@1" 0 "mouse8042"
  14. "/isa/lp@1,378" 0 "ecpp"
  15. "/ramdisk" 0 "ramdisk"
  16. "/cpus" 0 "cpunex"
  17. "/cpus/cpu@0" 0 "cpudrv"
  18. "/pci@0,0" 0 "pci"
  19. "/pci@0,0/display@2" 0 "vgatext"
  20. "/pci@0,0/pci106b,3f@6" 0 "ohci"
  21. "/pci@0,0/pci106b,3f@6/input@1" 0 "hid"
  22. "/pci@0,0/pci8086,1e@3" 0 "e1000g"
  23. "/pci@0,0/pci8086,2829@d" 0 "ahci"
  24. "/pci@0,0/pci8086,2829@d/disk@0,0" 0 "sd"
  25. "/pci@0,0/pci8086,2829@d/cdrom@1,0" 1 "sd"
  26. "/pci@0,0/pci8086,2829@d/disk@2,0" 2 "sd"
  27. "/pci@0,0/pci8086,1e@8" 1 "e1000g"
  28. "/agpgart" 0 "agpgart"

本机第一块网卡名称”e1000g0”,则第二块网卡应为”e1000g1”.

2、启用第二块网卡

  1. [root@node1:/]# ifconfig e1000g1 plumb
  2. [root@node1:/]# ifconfig -a
  3. lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
  4. inet 127.0.0.1 netmask ff000000
  5. e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
  6. inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255
  7. ether 8:0:27:28:b1:8c
  8. e1000g1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
  9. inet 0.0.0.0 netmask 0
  10. ether 8:0:27:6e:16:1

3、添加网卡配置信息

  1. [root@node1:/]# cat /etc/hosts
  2. #
  3. # Internet host table
  4. #
  5. ::1 localhost
  6. 127.0.0.1 localhost
  7. 192.168.8.11 node1 loghost
  8. 192.168.8.13 node1-vip
  9. 10.10.10.11 node1-priv ;;第二块网卡ip
  10. [root@node1:/]# cat /etc/hostname.e1000g1
  11. node1-priv
  12. [root@node1:/]# cat /etc/netmasks
  13. #
  14. # The netmasks file associates Internet Protocol (IP) address
  15. # masks with IP network numbers.
  16. #
  17. # network-number netmask
  18. #
  19. # The term network-number refers to a number obtained from the Internet Network
  20. # Information Center.
  21. #
  22. # Both the network-number and the netmasks are specified in
  23. # "decimal dot" notation, e.g:
  24. #
  25. # 128.32.0.0 255.255.255.0
  26. #
  27. 192.168.8.0 255.255.255.0
  28. 10.10.10.0 255.255.255.0 ;;第二块网卡子网掩码
  29. [root@node1:/]# cat /etc/inet/ipnodes
  30. #
  31. # Internet host table
  32. #
  33. ::1 localhost
  34. 127.0.0.1 localhost
  35. 192.168.8.11 node1 loghost
  36. 192.168.8.13 node1-vip
  37. 10.10.10.11 node1-priv
  38. [root@node1:/]# sync;sync;reboot ;;重启系统
  39. 查看网卡信息,新网卡被启用:
  40. [root@node1:/]# ifconfig -a
  41. lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
  42. inet 127.0.0.1 netmask ff000000
  43. e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
  44. inet 192.168.8.11 netmask ffffff00 broadcast 192.168.8.255
  45. ether 8:0:27:28:b1:8c
  46. e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
  47. inet 10.10.10.11 netmask ffffff00 broadcast 10.10.10.255
  48. ether 8:0:27:6e:16:1

@至此,新网卡配置完成!

附注:

Solaris 10识别新硬盘:

添加新硬盘后,没有被识别,解决方法如下:

[root@node1:/]# touch /reconfigure

[root@node1:/]# sync;sync;reboot

[root@node1:/]# format

Searching for disks…done

AVAILABLE DISK SELECTIONS:

  1. 0. c0t0d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63>
  2. /pci@0,0/pci8086,2829@d/disk@0,0
  3. ** 1. c0t2d0 <DEFAULT cyl 2608 alt 2 hd 255 sec 63>**

/pci@0,0/pci8086,2829@d/disk@2,0

@硬盘被识别!

本文出自 “天涯客的blog” 博客,请务必保留此出处http://tiany.blog.51cto.com/513694/1606712

发表评论

表情:
评论列表 (有 0 条评论,241人围观)

还没有评论,来说两句吧...

相关阅读

    相关 centos8添加网卡

    centos7改分辨率 这个分辨率的情况下 你可以去上实体店 找一些维修人员 让他们去帮你看看这个是否能够更改 如果更改不了的情况下 应该就是更改不了这个应该就是可以调解