Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The backup file of the network card takes effect.

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report