Unix Study--Solaris 10添加新网卡

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-08-10 10:12:52

Unix Study--Solaris 10添加新网卡的相关文章

&#8203;centos6.5添加新网卡配置

     centos6.5添加新网卡配置 查看原来的网卡eth0: 查看新添加的网卡eth1: 复制ifcfg-eth0到ifcfg-eth1新文件 vi ifcfg-eth0编辑,修改网卡名字为eth1:修改对应的mac地址,修改对应ip地址,然后保存退出 (网卡名字和对应mac一定要对应) 重启网络服务 ifconfig查看ip地址

vmware 虚拟机中添加新网卡无配置文件

系统:centos 6/7 问题: 为虚拟机添加新网卡后,/etc/sysconfig/network-scripts/下无配置文件ifcfg-eth1 #ip addr      //显示存在eth1 #ip addr eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:17:29:66 brd ff:ff:ff:ff:ff:ff in

解决CentOS添加新网卡后找不到网卡配置文件,配置多网卡并设置静态路由

参考文章 https://blog.csdn.net/qq_36512792/article/details/79787649 使用VMware Workstation虚拟机安装好CentOS7虚拟机后,添加网卡后CentOS 7无网卡配置文件的问题,添加第二块网卡以后,进入CentOS 7系统后,看不到网卡配置文件. 进入CentOS7系统后,使用ip addr 查看状态如下: 发现ens33和ens77均有IP地址,且可正常使用,ens33使用的是手动配置IP,ens37使用的是dhcp自动

在ubuntu 16.04 的vm中添加新网卡,同一网段不同ip

在ubuntu 16.04 的vm中新加了一块网卡,但是不显示,用ifcnfig -a 可以看到,执行 $ifconfig ens38 up 显示错误 在网上查看可以重新安装vmtools来重新安装网卡驱动1.加载光驱 $sudo mkdir /mnt/cdrom $sudo mount /dev/cdrom /mnt/cdrom 2.转到临时目录,复制安装文件 $cd /tmp $tar zxpf /mnt/cdrom/VMwareTools-x.x.x-yyyy.tar.gz 3.安装vmt

cnetos6,centos7添加新网卡,系统不识别的解决办法

今天做实验的时候,需要为虚拟添加一块新网卡,可系统怎么也识别不到,各种百度,google,各种重启都不成功 我以为只要新添加一块系统就会识别到的,可实事并非如此 总结:要重新写新网卡配置文件,并修改HWADDR,否则会报LSB的错误 下面是我的解决方法: 1.新添加网卡后执行ifconfig,系统并没有识别到 #ifconfig 2.获取新增网卡的真实mac #ip addr 3.复制eth0到eth1并修改配置文件 #cd /etc/sysconfig/network-scripts #cp

VMWare无法添加新网卡eth1

#2015-04-21 17:00环境:CentOS 6.4 x86_64 一.问题描述:在vmware上装有一台CentOS 6.4 x86_64的机器,本身有一块网卡,现有需求,需添加一块网卡做内部网使用.步骤:在vmware的CentOS 设置中添加一块网卡,并放在VMNet2中,成功添加,而且vmware 右下角也有两块网卡并且都处于连接状态.重启CentOS 数次,用ifconfig 查看,始终只有eth0没有eth1,用ls /etc/sysconfig/network-script

CentOS添加新网卡network-scripts目录下找不到网卡配置文件

问题描述: 使用VMware Workstation虚拟机,安装好CentOS7虚拟机后(原本只有一张网卡ifcfg-ens33),重新添加了一个新的网卡. 进入CentOS7系统后,使用ip addr 查看状态如下: 发现ens33和ens77均有IP地址,且可正常使用,ens33使用的是手动配置IP,ens37使用的是dhcp自动获取的IP地址,但是/etc/sysconfig/network-scripts/目录下找不到ifcfg-ens37配置文件 解决方案: 1.使用nmcli con

cloudstack 添加新网卡使其能上网

由于虚拟机使用了默认的网络套餐,是不能上网的.现在的需求是使其能上网. 操作步骤: 1.添加一个在能上网的网络里的网卡,使其成为默认网卡 2.复制网卡配置文件,修改网卡名称等,重启network(可能会重启失败,没有关系) 3.ifdown eth0,停掉第一张网卡 4.增加默认路由,网关为第二张网卡的IP 原文地址:https://www.cnblogs.com/hixiaowei/p/9601881.html

Ubuntu 18.04添加新网卡

在Ubuntu 18.04 LTS上配置IP地址的方法与旧方法有很大不同.与以前的版本不同,Ubuntu 18.04使用Netplan(一种新的命令行网络配置实用程序)来配置IP地址. 在这种新方法中,我们不再使用 1 /etc/network/interfaces 文件来配置IP地址,而是使用YAML文件.Netplan的默认配置文件位于 1 /etc/netplan/ 目录下. 让我们找出默认的配置文件 $ ls /etc/netplan/ 50-cloud-init.yaml 现在,让我们