Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The backup file of the network card takes effect.

Shulou Source: shulou.com Published: 2022-06-01 03:23:17 10月05日 Update

System: centos6.x

A segment is 192.168.199.1

A segment is 192.168.1.1

2 network segments, a network card, all effective, what's going on?

Group friends say: eth0:0 eth0:1 can be configured with many network segments. But I'm not like that.

This is because I have two configuration files in/etc/sysconfig/network-scripts/. Yeah, two profiles, both working.

ifcfg-eth0 is segment 199.

ifcfg-eth0.bak-1-wangduan is a segment 1.

And so, the configuration file takes effect, hehehe la

=============================================================

Here's what I'm looking for in ifcfg-eth0.bak-1-wangduan:

DEVICE=eth0

HWADDR=00:0c:29:66:8f:29

TYPE=Ethernet

UUID=ed611f14-5447-42cf-a7ec-ae639c91ac70

ONBOOT=yes

NM_CONTROLLED=yes

BOOTPROTO=none

IPADDR=192.168.1.21

NETMASK=255.255.255.0

DNS2=192.168.1.1

GATEWAY=192.168.1.1

DNS1=192.168.199.1

IPV6INIT=no

USERCTL=no

Tags: Network segment configuration file network card content event multiple system backup Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi Apple NVidia MySQL