(1)挂载安装光盘,建立本地目录并挂载到本地目录(sr0为光盘,以实际为准)。
[root@DBACKUP01:/home/scutech]# mkidr /mnt/test
[root@DBACKUP01:/home/scutech]# mount /dev/sr0 /mnt/test
(2)若是需要配置vlan和bond,需要执行以下操作。
1.安装vlan软件包,通过以下指令安装
[root@DBACKUP01:/home/scutech]# dpkg -i /mnt/test/pool/main/v/vlan/vlan_1.9-3.2ubuntu1.16.04.3_amd64.deb
2.修改/etc/modules支持bond和vlan,添加如下内容
echo “8021q” >> /etc/modules
echo “bonding” >> /etc/modules
3.编辑/etc/network/interfaces文件,参考如下,配置完成后重启服务器,验证网络情况。
配置vlan和bond时网络配置编辑,修改/etc/network/interfaces(添加内容如下,管理网添加网关,其他网关不需要)
auto 网卡xx
iface 网卡xx inet manual
bond-master bond0
auto 网卡xxx
iface 网卡xxx inet manual
bond-master bond0
auto bond0
iface bond0 inet manual
bond-mode 1
bond-miimon 100
bond-slaves none
auto bond0.vlan xx
iface bond0. vlan xx inet static
address xxx.xxx.xx.xxx
netmask 255.255.255.0
gateway xxx.xxx.xx.xxx
vlan-raw-device bond0
auto bond0.vlan xxx
iface bond0.vlan xxx inet static
address xxx.xxx.xxx.xxx
netmask 255.255.255.0
vlan-raw-device bond0