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

IP configuration, restart network services, modify hostname

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

# vi / etc/sysconfig/network-scripts/ifcfg-ens33 # # modify the network configuration. The cloned virtual host needs to delete the UUID and modify the IP address. The virtual network uses NAT mode.

TYPE=Ethernet

BOOTPROTO=static

DEFROUTE=yes

PEERDNS=yes

PEERROUTES=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=yes

IPV6_DEFROUTE=yes

IPV6_PEERDNS=yes

IPV6_PEERROUTES=yes

IPV6_FAILURE_FATAL=no

IPV6_ADDR_GEN_MODE=stable-privacy

NAME=ens33

UUID=a554165c-28b4-4364-94e9-fd1da4b8a45c

DEVICE=ens33

ONBOOT=yes

IPADDR=192.168.1.131

GATEWAY=192.168.1.1

NETMASK=255.255.255.0

# systemctl restart network.service # # restart the network service

[root@luch02 ~] # hostnamectl set-hostname luch02 # # modify the host name

# hostname # # View hostname

Linux are linked to each other

# ssh-p 22 root@192.168.1.132 # #-p 22 is the port user name @ ip

# ssh 192.168.1.132 # # simplified direct input IP default port, current user

# w # # w View the system load status TTY can see the client link

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

Servers

Wechat

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

12
Report