In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about the setting method of linux gateway. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
How to set up the linux gateway: first use xshell to log in to the linux server; then use ip add to check the local address and manually add a route; finally, write the route add command to the configuration file.
How to set the linux gateway:
Step 1: log in to our linux server using xshell, which uses centos6.5
Step 2: use route-n to view the routing table of this machine and see that there is no default route on this machine
Step 3: check the local address using ip add. The local address is 192.168.101.2, and the planned gateway is 192.168.101.254.
Step 4: manually add a route
Route add default gw 192.168.101.254 adds a default gateway, and then route-n sees that the route is already in effect
Step 5: use the route add command to add only temporary effect, restart will be lost, need to be written into the configuration file, according to the following configuration can be permanently effective
Vim/etc/sysconfig/network
GATEWAY=192.168.101.254
Thank you for reading! This is the end of the method of setting up the linux gateway. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.