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

How to use NAT to connect to the network in centos6.5

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

Share

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

Xiaobian to share with you how to use NAT in centos 6.5 to connect to the network, I hope you have gained something after reading this article, let's discuss it together!

Virtual machine parameter settings are as shown in the figure

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=static

IPADDR=192.168.209.100

NETMASK=255.255.255.0

GATEWAY=192.168.209.2

DNS1=192.168.209.2

vi /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=master

vi /etc/resolv.conf

nameserver 192.168.209.2

search localdomain

Restart the network, verify ping baidu is connected?

service network restart

ping www.baidu.com

Thank you for reading this article carefully. I hope that the article "How to use NAT to connect to the network in centos 6.5" shared by Xiaobian will be helpful to everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!

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