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

Separate parsing script for shell

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Before running the script, the separation parsing script requires VM virtual machine, Centos7, two hosts, one win10-1 as the host of the WAN and one win10-2 as the host of the area network. Before my blog, there was a tutorial #! / bin/bash// to modify and add the network card configuration file / / to set up the dual network card sed-I'4s and dhcpAccording to StaticCash'/ etc/sysconfig/network-scripts/ifcfg-ens33sed-I '15aIPADDR=192.168.17.1\ nNETMASK=255.255.255.0' / etc/sysconfig/network-scripts/ifcfg-ens33cp-p / etc/sysconfig/network-scripts/ifcfg-ens33 / etc/sysconfig/network-scripts/ifcfg-ens36sed-I' 13d '/ etc/sysconfig/network-scripts/ifcfg-ens36sed-I' 12s / etc/sysconfig/network-scripts/ifcfg-ens36sed-I '12s / etc/sysconfig/network-scripts/ifcfg-ens36sed-I' 12s / etc/sysconfig/network-scripts/ifcfg-ens36systemctl restart network / / restart the network service / / modify the main configuration file sed-I' 13sUniverse 127.0.0.1According to'/ etc/named.confsed-I '21s' / etc/named.confsed-I'54 < 57d' / etc/named.conf / / Delete the root domain of the main configuration file / / Delete the add zone profile sed-I '13legal 48d' / etc/named.rfc1912.zones / / Delete the zone configuration file cat > > / etc/named.rfc1912.zones on lines 13 to 48

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

Wechat

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

12
Report