oracle配置ipv6_Oracle Linux 7.1 增加网卡及IP配置

由于需要给虚拟机(oracle linux 7.1)增加网卡并设置IP操作,在增加网卡后执行ifconfig命令可以看到增加的网卡信息,但没有生成网卡配置文件

[root@jytest1 ~]# ifconfig

ens34: flags=4163 mtu 1500

ether 00:50:56:a0:7e:4c txqueuelen 1000 (Ethernet)

RX packets 14332 bytes 1177864 (1.1 MiB)

RX errors 0 dropped 25 overruns 0 frame 0

TX packets 0 bytes 0 (0.0 B)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens160: flags=4163 mtu 1500

inet 10.138.130.171 netmask 255.255.255.0 broadcast 10.138.130.255

inet6 fe80::250:56ff:feb1:260 prefixlen 64 scopeid 0x20

ether 00:50:56:b1:02:60 txqueuelen 1000 (Ethernet)

RX packets 14524 bytes 1203727 (1.1 MiB)

RX errors 0 dropped 11 overruns 0 frame 0

TX packets 349 bytes 31569 (30.8 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10

loop txqueuelen 0 (Local Loopback)

RX packets 1152 bytes 89096 (87.0 KiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 1152 bytes 89096 (87.0 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099 mtu 1500

inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255

ether 52:54:00:88:ce:47 txqueuelen 0 (Ethernet)

RX packets 0 bytes 0 (0.0 B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 6 bytes 1172 (1.1 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@jytest1 ~]# cd /etc/sysconfig/network-scripts

[root@jytest1 network-scripts]# ls -lrt

total 232

-rwxr-xr-x. 1 root root 1876 Nov 6 2014 ifup-TeamPort

-rwxr-xr-x. 1 root root 1755 Nov 6 2014 ifup-Team

-rwxr-xr-x. 1 root root 1556 Nov 6 2014 ifdown-TeamPort

-rwxr-xr-x. 1 root root 1599 Nov 6 2014 ifdown-Team

-rw-r--r--. 1 root root 26134 Jan 15 2015 network-functions-ipv6

-rw-r--r--. 1 root root 15316 Jan 15 2015 network-functions

-rwxr-xr-x. 1 root root 4623 Jan 15 2015 init.ipv6-global

-rwxr-xr-x. 1 root root 1740 Jan 15 2015 ifup-wireless

-rwxr-xr-x. 1 root root 2682 Jan 15 2015 ifup-tunnel

-rwxr-xr-x. 1 root root 3263 Jan 15 2015 ifup-sit

-rwxr-xr-x. 1 root root 1925 Jan 15 2015 ifup-routes

-rwxr-xr-x. 1 root root 4154 Jan 15 2015 ifup-ppp

-rwxr-xr-x. 1 root root 2609 Jan 15 2015 ifup-post

-rwxr-xr-x. 1 root root 1043 Jan 15 2015 ifup-plusb

-rwxr-xr-x. 1 root root 642 Jan 15 2015 ifup-plip

-rwxr-xr-x. 1 root root 10430 Jan 15 2015 ifup-ipv6

-rwxr-xr-x. 1 root root 12039 Jan 15 2015 ifup-ippp

-rwxr-xr-x. 1 root root 11502 Jan 15 2015 ifup-eth

-rwxr-xr-x. 1 root root 859 Jan 15 2015 ifup-bnep

-rwxr-xr-x. 1 root root 12616 Jan 15 2015 ifup-aliases

-rwxr-xr-x. 1 root root 1462 Jan 15 2015 ifdown-tunnel

-rwxr-xr-x. 1 root root 1444 Jan 15 2015 ifdown-sit

-rwxr-xr-x. 1 root root 837 Jan 15 2015 ifdown-routes

-rwxr-xr-x. 1 root root 1068 Jan 15 2015 ifdown-ppp

-rwxr-xr-x. 1 root root 1642 Jan 15 2015 ifdown-post

-rwxr-xr-x. 1 root root 4201 Jan 15 2015 ifdown-ipv6

-rwxr-xr-x. 1 root root 781 Jan 15 2015 ifdown-ippp

-rwxr-xr-x. 1 root root 5817 Jan 15 2015 ifdown-eth

-rwxr-xr-x. 1 root root 627 Jan 15 2015 ifdown-bnep

-rw-r--r--. 1 root root 254 Jan 15 2015 ifcfg-lo

-rwxr-xr-x. 1 root root 10145 Mar 6 2015 ifup-ib

-rwxr-xr-x. 1 root root 6196 Mar 6 2015 ifdown-ib

lrwxrwxrwx. 1 root root 24 Nov 5 10:11 ifdown -> ../../../usr/sbin/ifdown

lrwxrwxrwx. 1 root root 11 Nov 5 10:11 ifdown-isdn -> ifdown-ippp

lrwxrwxrwx. 1 root root 22 Nov 5 10:11 ifup -> ../../../usr/sbin/ifup

lrwxrwxrwx. 1 root root 9 Nov 5 10:11 ifup-isdn -> ifup-ippp

-rw-r--r--. 1 root root 358 Nov 5 12:01 ifcfg-ens160

可以看到并没有生成网卡配置文件ifcfg-ens34,而之前在创建虚拟机时增加的网卡ens160是有相应的配置文件ifcfg-ens160。在oracle linux 7.1中使用nmtui来设置网络,nmtui 属于curses-based text user interface(文本用户界面), 类似Linux7以前的setup工具

[root@jytest1 ~]# nmtui

使用nmtui设置完后可以看到生成了网卡ens34的配置文件ifcfg-ens34

[root@jytest1 network-scripts]# ls -lrt

total 236

-rwxr-xr-x. 1 root root 1876 Nov 6 2014 ifup-TeamPort

-rwxr-xr-x. 1 root root 1755 Nov 6 2014 ifup-Team

-rwxr-xr-x. 1 root root 1556 Nov 6 2014 ifdown-TeamPort

-rwxr-xr-x. 1 root root 1599 Nov 6 2014 ifdown-Team

-rw-r--r--. 1 root root 26134 Jan 15 2015 network-functions-ipv6

-rw-r--r--. 1 root root 15316 Jan 15 2015 network-functions

-rwxr-xr-x. 1 root root 4623 Jan 15 2015 init.ipv6-global

-rwxr-xr-x. 1 root root 1740 Jan 15 2015 ifup-wireless

-rwxr-xr-x. 1 root root 2682 Jan 15 2015 ifup-tunnel

-rwxr-xr-x. 1 root root 3263 Jan 15 2015 ifup-sit

-rwxr-xr-x. 1 root root 1925 Jan 15 2015 ifup-routes

-rwxr-xr-x. 1 root root 4154 Jan 15 2015 ifup-ppp

-rwxr-xr-x. 1 root root 2609 Jan 15 2015 ifup-post

-rwxr-xr-x. 1 root root 1043 Jan 15 2015 ifup-plusb

-rwxr-xr-x. 1 root root 642 Jan 15 2015 ifup-plip

-rwxr-xr-x. 1 root root 10430 Jan 15 2015 ifup-ipv6

-rwxr-xr-x. 1 root root 12039 Jan 15 2015 ifup-ippp

-rwxr-xr-x. 1 root root 11502 Jan 15 2015 ifup-eth

-rwxr-xr-x. 1 root root 859 Jan 15 2015 ifup-bnep

-rwxr-xr-x. 1 root root 12616 Jan 15 2015 ifup-aliases

-rwxr-xr-x. 1 root root 1462 Jan 15 2015 ifdown-tunnel

-rwxr-xr-x. 1 root root 1444 Jan 15 2015 ifdown-sit

-rwxr-xr-x. 1 root root 837 Jan 15 2015 ifdown-routes

-rwxr-xr-x. 1 root root 1068 Jan 15 2015 ifdown-ppp

-rwxr-xr-x. 1 root root 1642 Jan 15 2015 ifdown-post

-rwxr-xr-x. 1 root root 4201 Jan 15 2015 ifdown-ipv6

-rwxr-xr-x. 1 root root 781 Jan 15 2015 ifdown-ippp

-rwxr-xr-x. 1 root root 5817 Jan 15 2015 ifdown-eth

-rwxr-xr-x. 1 root root 627 Jan 15 2015 ifdown-bnep

-rw-r--r--. 1 root root 254 Jan 15 2015 ifcfg-lo

-rwxr-xr-x. 1 root root 10145 Mar 6 2015 ifup-ib

-rwxr-xr-x. 1 root root 6196 Mar 6 2015 ifdown-ib

lrwxrwxrwx. 1 root root 24 Nov 5 10:11 ifdown -> ../../../usr/sbin/ifdown

lrwxrwxrwx. 1 root root 11 Nov 5 10:11 ifdown-isdn -> ifdown-ippp

lrwxrwxrwx. 1 root root 22 Nov 5 10:11 ifup -> ../../../usr/sbin/ifup

lrwxrwxrwx. 1 root root 9 Nov 5 10:11 ifup-isdn -> ifup-ippp

-rw-r--r--. 1 root root 346 Mar 16 12:36 ifcfg-ens160

-rw-r--r--. 1 root root 181 Mar 16 12:42 ifcfg-ens34

编辑配置文件

[root@jytest1 network-scripts]# vi ifcfg-ens34

TYPE=Ethernet

BOOTPROTO=none

IPADDR=88.88.88.1

NETMASK=255.255.255.0

PREFIX=32

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=no

NAME=ens34

UUID=f0e4fffc-668c-4b3d-b1cf-ab2b0122dd7d

DEVICE=ens34

ONBOOT=yes

重启网络

[root@jytest1 network-scripts]# systemctl restart network

[root@jytest1 network-scripts]# ifconfig

ens34: flags=4163 mtu 1500

inet 88.88.88.1 netmask 255.255.255.255 broadcast 88.88.88.1

inet6 fe80::250:56ff:fea0:7e4c prefixlen 64 scopeid 0x20

ether 00:50:56:a0:7e:4c txqueuelen 1000 (Ethernet)

RX packets 24804 bytes 2064784 (1.9 MiB)

RX errors 0 dropped 25 overruns 0 frame 0

TX packets 57 bytes 8254 (8.0 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens160: flags=4163 mtu 1500

inet 10.138.130.171 netmask 255.255.255.0 broadcast 10.138.130.255

inet6 fe80::250:56ff:feb1:260 prefixlen 64 scopeid 0x20

ether 00:50:56:b1:02:60 txqueuelen 1000 (Ethernet)

RX packets 25331 bytes 2120003 (2.0 MiB)

RX errors 0 dropped 11 overruns 0 frame 0

TX packets 767 bytes 84120 (82.1 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10

loop txqueuelen 0 (Local Loopback)

RX packets 1480 bytes 113808 (111.1 KiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 1480 bytes 113808 (111.1 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099 mtu 1500

inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255

ether 52:54:00:88:ce:47 txqueuelen 0 (Ethernet)

RX packets 0 bytes 0 (0.0 B)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 6 bytes 1172 (1.1 KiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@jytest1 network-scripts]# ping jytest1-priv

PING jytest1-priv (88.88.88.1) 56(84) bytes of data.

64 bytes from jytest1-priv (88.88.88.1): icmp_seq=1 ttl=64 time=0.419 ms

64 bytes from jytest1-priv (88.88.88.1): icmp_seq=2 ttl=64 time=0.227 ms

^C

--- jytest1-priv ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1001ms

rtt min/avg/max/mdev = 0.227/0.323/0.419/0.096 ms

配置完成

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在本地自己的操作系统上,完全模拟生产环境,让学员跟着视频一步一步搭建一套在RHEL7操作系统上面的oracle19c的rac环境。同时学员还会学会DNS服务器,DNS客户端,NTP服务器,NTP客户端等操作系统知识。让学员在短时间内,oracle和操作系统知识,有一定的提升。让学员可以独自轻松安装一套oracle rac环境。一课程主题 模拟生产环境,用多路径共享存储,用虚拟软件安装一套RHEL7.5+oracle19c+rac+打补丁二课程特色 完成模拟生产环境,用openfiler软件模拟生产惠普的3par存储,用2个虚拟网卡模拟数据库服务器的2个HBA卡。课程以实践为主,从头到尾一步一步教学员怎样操作,实践性强模拟生产需求,完全可以把这套环境拿到生产环境安装三课程内容 1.课程结束成果演示    1.1 用workstation,安装一套rhel7+oracle19c+rac+multipath+共享存储+DNS服务器+DNS客户端+NTP服务器+NTP客户端的生产环境    1.2 怎样打oracle19c的rac补丁(包括GI补丁,oracle补丁,数据库补丁,OJVM补丁,bug补丁)2.安装openfiler软件,模拟共享存储+配置多路径访问    2.1安装openfiler软件   2.2配置openfiler软件(配置2个虚拟网卡,模拟服务器的2个HBA卡)   2.3创建ocr磁盘   2.4创建mgmt磁盘   2.5创建数据文件磁盘   2.6创建归档日志磁盘3.安装2台数据库服务器    3.1安装2台数据库服务器RHEL7.5   3.2配置服务器双网卡绑定+配置服务器心跳线4.安装多路径软件识别共享存储中的磁盘     4.1安装服务器本地yum源    4.2安装iscsi软件,配置多路径配置文件,识别共享存储中的磁盘    4.3识别ocr磁盘    4.4识别mgmt磁盘    4.5识别数据文件磁盘    4.6识别归档日志磁盘5.oracle19c的rac环境系统参数官方说明     5.1如何配置oracle19c的rac的系统参数(我们参考官方说明)    5.2oracle19c+rac环境Best Practices 官方说明文档6.安装oracle19c+rac之前的准备工作     6.1修改/etc/hosts文件    6.2配置DNS服务器+DNS客户端+NTP服务器+NTP客户端    6.3创建用户和组    6.4创建目录    6.5修改用户环境变量    6.6安装相关软件包    6.7配置ssh互信    6.9禁用服务器透明大页7.安装oracle+19c+rac软件    7.1安装GI软件   7.2创建ASM磁盘,主要是数据文件磁盘和归档日志磁盘   7.3安装数据库软件   7.4创建数据库实例   7.5日常常用维护集群命令(启停数据库,启停集群,查看监听,教同学们怎样不死记命令,而且命令还正确)8.打补丁   8.1打GI和ORACLE的操作系统补丁  8.2打OJVM补丁  8.3打ORA600的bug补丁9.课程总结和成果演示  9.1课程总结和成果演示 四学习必要工具 安装workstation软件  官网下载openfiler,rhel7.5软件下载oracle软件(包括19.3的rac安装包,19.4的补丁)以上软件我都已经在视频里面做了下载地址说明五课程纠错1)rac的私有ip应该是不同的网段,我在视频中设置错误。Ensure all private Ethernet interfaces are set to different subnets on each node. If different subnets are not used and connectivity is lost, this can cause a node reboot within the cluster2)配置好multipath,以及多路径的别名后,还要增加如下配置文件。[root@hellorac1 rules.d]# cat /etc/udev/rules.d/99-persistent.rulesENV==data, OWNER:=grid, GROUP:=asmadmin, MODE:=660上面的配置文件增加成功后,运行如下命令:#udevadm control --reload-rules#/sbin/udevadm trigger --type=devices --action=change执行完成之后,会发现/dev/dm*相应的磁盘权限变成grid.asmadmin. 视频中只运行了udevadm control --reload-rules。3)安装GI部分1和部分2,先看部分2,再看部分1.特此纠正上面的3个错误。谢谢大家的支持和厚爱。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值