In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to configure default routing for suse linux10 hosts. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Q: how to configure default gateways and routes to specific networks or hosts in SLES8
Q: how to configure default gateways and routes to specific networks or hosts in SLES8
A: yast network can be used in SLES8 to configure default gateways and routes to specific networks or hosts, or by modifying the
Method and run the command to achieve this goal
Method 1. Configure through yast2 management tools
Run the yast2 tool in console to select routes and add routes configured to specific networks or hosts in expert mode
# yast2 network
For configuring unconfigured network cards
"Configure..." in "Network cards configuration" in "Network cards configuration"
For modifying the settings of the configured network card
"Changev..." in "Network cards configuration" in "Network cards configuration"
"Detailed settings" in "Network address setup" Click "Routing"
Enter the default gateway in the "Default gateway" input box.
If you want to set a route to a specific network or host, select "Expert configuration" in "Routing table"
In the dialog window for "Add" and "Edit", fill in "Destination", "Dummy or Gateway" and "Netmask"
You don't have to fill in "Device".
Example 1: the gateway for the network 192.168.2.128Gateway 255.255.255.128 is 192.168.2.129
"Destination" enter the destination network address 192.168.2.128
"Dummy or Gateway" fill in the gateway address 192.168.2.129
"Netmask" fill in 255.255.255.128
Example 2: the gateway of host 192.168.3.20Universe 255.255.255.255 is 192.168.3.20
"Destination" enter the destination host address 192.168.3.20
"Dummy or Gateway" fill in the gateway address 192.168.3.20
Fill in 255.255.255.255 for "Netmask"
Method 2. Configure by modifying the configuration file and running the command
Modify the file / etc/sysconfig/network/routes to configure default gateways and routes to specific networks or hosts
Format of the file:
The lines starting with # are comments, and each line is a routing record, consisting of multiple columns separated by spaces
Example / etc/sysconfig/network/routes file
# default gw
Default 192.168.0.1--
# network 192.168.2.128/255.255.255.128 gateway set to 192.168.2.129
192.168.2.128 192.168.2.129 255.255.255.128
# host 192.168.3.20/255.255.255.255 gateway set to 192.168.3.20
192.168.3.20 192.168.3.20 255.255.255.255
This configuration file will be loaded when / etc/rc.d/network start is executed
Run the command to add the above route
# route add default gw 192.168.0.1
# route add-net 192.168.2.128 netmask 255.255.255.128 gw 192.168.2.129
# route add-host 192.168.3.20 gw 192.168.3.20
Delete the above route
# route del-net 0.0.0.0
# route del-net 192.168.2.128 netmask 255.255.255.128
# route del-host 192.168.3.20
On the suse linux10 host how to configure the default route to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.